Custom Components 2017
Custom Components 2017
Custom components
March 2017
2
Market size function.........................................................................................................64
Framing condition functions........................................................................................... 65
How to avoid cyclic dependencies in formulas.................................................................. 67
4.7 Examples of parametric variables and variable formulas......................... 68
Example: Set the end plate material................................................................................... 69
Example: Create new component objects.......................................................................... 70
Example: Replace sub-components.................................................................................... 71
Example: Modify a sub-component by using a component attribute file...................... 73
Example: Define the stiffener position using construction planes..................................74
Example: Determine the bolt size and bolt standard....................................................... 77
Example: Calculate the bolt group distance....................................................................... 78
Example: Calculate the number of bolt rows..................................................................... 80
Example: Link variables to user-defined attributes...........................................................82
Example: Calculate the number of handrail posts using a template attribute.............. 84
Example: Link an Excel spreadsheet to a custom component.........................................87
3
Advanced tab properties.................................................................................................... 126
10.2 Default properties of a custom component.............................................. 128
Default properties of custom parts...................................................................................128
Default properties of custom connections, details, and seams.................................... 130
10.3 Plane types.....................................................................................................132
Examples of component planes....................................................................................... 134
10.4 Variable properties ...................................................................................... 136
4
1 What is a custom component
You can create customized connections, parts, seams, and details for your
project. These are called custom components. You can use custom components
in the same way as any Tekla Structures system component. You can even
create intelligent custom components that automatically adjust to changes in
the model.
When to use
Create a custom component if you cannot find a predefined system
component that meets all your needs. Especially if you need to create a large
number of complex model objects and copy them across several projects.
Benefits
Once you store a custom component in the Applications & components
catalog, you can easily access it from the catalog and use it in another location
in the same model. If you must modify the custom component, you only need
to make the changes once. When you save the changes, they will be
automatically applied to all copies of that custom component in the model.
You can also import and export custom components as .uel files between
models and share the custom components with your colleagues.
symbol in
the model.
Custom parts
have the same
position
properties as
beams have.
Custom Creates
connection connection
(page 9) objects and
connects the
secondary parts
to the main part.
The main part
may be
continuous at the
connection point.
Castellated
beam and cell
beam
Built-up beams/
columns
Built-up beams
Standard glazing
fixings
Lifters
Standard
embeds/inserts
Standard beams
See also
Custom connections (page 9)
Custom details (page 11)
Custom seams (page 13)
Shear plate
Typical japanese
post connections
Double tee to L
profile
Wall panel
connections
See also
Custom parts (page 7)
Custom details (page 11)
Custom seams (page 13)
Timber base
Out rigger
(stiffeners) and
out rigger plate
(stiffeners)
Column patterns
Lifting details
Mock joint/reveal
Side pocket
See also
Custom parts (page 7)
Custom connections (page 9)
Custom seams (page 13)
Turnbuckles
Panel to panel
grout tube
connection
See also
Custom parts (page 7)
Custom connections (page 9)
Custom details (page 11)
You can create customized components that have all the details you need.
Start by creating a simple custom component which you can modify later. In
the following example, we will create a simple custom connection.
1. In the model, create a sample component that contains all the necessary
component objects, such as parts, cuts, fittings, and bolts.
To do this quickly, explode and modify (page 19) a similar existing
component.
You can use area selection to select multiple objects simultaneously. The
main and secondary parts and the grids are ignored when you select
objects for the custom component.
NOTE If you cannot select desired objects in the model, check the
selection switches and the selection filter settings.
8. Click Next.
9. Select the main part for the component.
To select multiple secondary parts, hold down Shift when you select
them. The maximum number of secondary parts in a custom component
is 30.
NOTE Pay attention to the order in which you select secondary parts.
Tekla Structures will use the same picking order when you use the
custom component in a model.
12. Define any other properties required for this custom component, such as
detail or seam position. The properties depend on the component type
that you selected in step 4.
See also
Create a nested custom component (page 19)
Example: Create a custom end plate component (page 23)
Tips for creating custom components (page 141)
7. Click Next.
8. Select the objects you want to use in the custom component, and then
click Next.
NOTE When you select multiple secondary parts, pay attention to the
order of selection. The custom component will use the same
selection order when you add the component in a model. The
maximum number of secondary parts in a custom component is
30.
You have now defined a simple custom component, which you can use in
locations similar to where it was originally created. This component is not
intelligent and Tekla Structures does not adjust dimensions to suit any
changes in the model. To make the custom component intelligent, you
need to modify (page 31) it in the custom component editor.
4. Create a nested custom component that contains the stiffeners and the
end plate objects.
g. Click Next.
h. Choose the column as the main part of the nested component, and
then click Next.
i. Choose the beam as the secondary part of the nested component,
and then click Finish. Tekla Structures creates the nested component.
See also
Protect a custom component with a password (page 32)
Variables are the properties of a custom component. You can create variables
in the custom component editor and use them to adapt custom components
to changes in the model. Some of the variables appear in the custom
component's dialog box, while others are hidden and are only used in
calculations.
Variable types
There are two types of variables:
• Distance variable: The distance between two planes, or between a point
and a plane. A distance variable binds parts together, or works as a
reference distance.
• Parametric variable: Controls all the other properties in a custom
component, such as name, material grade, and bolt size. Parametric
variables are also used in calculations.
Distance variables
Use distance variables to bind custom component objects to a plane, so that
the component objects stay at a fixed distance even if the surrounding objects
change. You can create distance variables manually or automatically.
You can bind the following objects to a plane:
• construction planes
• reference points of parts (only custom component objects)
• reference points of bolt groups
• chamfers
• part and polygon cut handles
• line cuts
• reference points of reinforcing bars
Parametric variables
Use parametric variables to to set properties for any object the custom
component creates (page 48). After creating the variable, you will be able to
change the value directly in the custom component's dialog box.
You can also create formulas to calculate values. For example, you can
calculate the position of a stiffener relative to the beam length.
You can decide which parametric variables are shown in the custom
component's dialog box. Show the variables if you want to edit their values in
the dialog box. Hide the variables if you only use them in calculations.
NOTE You cannot bind custom parts (page 7) automatically, because they do
not have a main part.
automatically button .
2. Select an object that has handles.
5. In the custom component editor, click the Add fixed distance button
NOTE If you cannot highlight the correct plane, change the plane type
(page 132) on the Custom component editor toolbar. Boundary
and component planes work for most profile types, so try to use
them whenever you can.
TIP Alternatively, you can test the binding in the (page 136) dialog box:
a. Enter a new value in the Formula box.
b. Press Enter.
You should see the binding change in the model.
Delete a binding
Bindings cannot be modified, but you can delete the existing bindings and
then create new ones to rebind the objects.
1. Select the binding in a custom component view.
NOTE If you cannot highlight the desired plane, change the plane type
(page 132) on the Custom component editor toolbar.
.
The Variables dialog box opens.
b. In the Label in dialog box box, enter Plate Top to Flange Top
as the name of the new binding.
NOTE Only the objects whose reference points are directly on the
magnetic construction plane are affected. By default, the
magnetic distance is 0.2 mm. To change this setting, use the
advanced option XS_MAGNETIC_PLANE_OFFSET.
2. In the custom component editor, click the Add reference distance button
.
3. Move the mouse pointer in the view to highlight a plane.
This will be the end point for your measurement. If you cannot highlight
the correct plane, change the plane type (page 132) on the Custom
component editor toolbar.
Note that the Add reference distance command remains active. You can
click more planes if you want to measure other distances.
5. To stop measuring, press Esc.
6. To check that the reference distance works correctly, move the handle.
Add variables to a custom component 48 Set object properties using parametric variables
6. In the Label in dialog box box, enter a descriptive name for the
parametric variable.
This label will be shown in the custom component's dialog box. In our
example, we will enter Weld size as the label.
7. In the Visibility list, define whether the variable will be visible in the
custom component's dialog box.
Hide the variable if you only use it in calculations. Show the variable if you
want to be able to edit the value in the custom component's dialog box. In
our example, we will select Show.
8. Click Close.
In our example, we have now created a parametric variable with the
following settings:
Add variables to a custom component 49 Set object properties using parametric variables
c. After the equal sign, enter the name of the parametric variable.
In our example, we will enter Weldsize here.
You can now modify the Size above line property by using the Weld
size box in the custom component's dialog box.
10. Repeat step 9 for any other property of the same type, if needed.
Add variables to a custom component 50 Set object properties using parametric variables
In our example, we will repeat the procedure for the other welds as well,
so that they will all be linked to the Weld size box in the custom
component's dialog box.
If we change the weld size value now, the size of all welds within the
custom component will change accordingly.
See also
Copy properties and property references from another object (page 51)
Add variables to a custom component 51 Copy properties and property references from
another object
4.5 Copy properties and property references from
another object
You can copy properties, such as names and values, from other objects and
use them to determine the properties of a custom component. You can also
copy property references. The link is dynamic, so when the property changes,
the reference reflects the change. For example, you can use a beam length
reference in variable formulas. Even if the length changes, the correct value is
always used in calculations.
1. In the Custom component browser, browse for the object property you
want to copy.
To find the required component object more easily, select it in a custom
component view. Tekla Structures highlights the selected object in the
Custom component browser.
2. Right-click the property and select one of the following:
• Copy Name
Copies the name of the object. For example, Material.
• Copy Value
Copies the value the object currently has. For example, S235JR.
• Copy Reference
Copies the link to the property. For example,
fP(Material,"ID57720EEE-0000-000E-3134-363730393237").
Add variables to a custom component 52 Copy properties and property references from
another object
3. Right-click where you want to insert the object property, and then select
Paste.
For example, you can paste a reference to the Formula box in the
(page 136) dialog box to use it in a calculation.
See also
Examples of parametric variables and variable formulas (page 68)
Arithmetic operators
Use arithmetic operators to combine expressions that return numeric values.
You can use the following arithmetic operators:
For example:
=if (D1>200) then 20 else 10 endif
You can use the following operators inside if statements:
Reference functions
Use reference functions to refer to the property of another object, such as the
plate thickness of a secondary part. Tekla Structures refers to the object on the
system level, so if the object property changes, so does the reference function
value.
1. model
2. ..\TeklaStructuresModels\<model>
\CustomComponentDialogFiles\
3. project (set with advanced option XS_PROJECT)
4. firm (set with advanced option XS_FIRM)
5. system (set with advanced option XS_SYSTEM)
The format for reading files is the following:
fVF("filename", "key_value_of_row", column_number)
• Key value of row is a unique text value.
• Column number is an index starting from 1.
NOTE Enter a space at the end of each row in the ASCII file. Otherwise the
information is not read correctly.
Mathematical functions
Use mathematical functions to create more complex mathematical
expressions. You can use the following functions:
1. side1
2. hypotenuse
3. side2
n!(parameter) Returns the factorial of the =n!(P2) returns 24
parameter
if P2 = 4
(1*2*3*4)
round(parameter, Returns the parameter =round(P1, 0.1)
accuracy) rounded off to the given returns 10.600
accuracy
if P1 = 10.567
PI Returns the value of pi to 31 =PI returns
decimal places 3.1415926535897932
384626433832795
Statistical functions
Use statistical functions to calculate sums and averages, and to round values.
You can use the following statistical functions:
• "mm"
• "rad"
• "deg"
NOTE The units depend on the settings in File menu --> Settings -->
Options --> Units and decimals.
String operations
Use string operations to manipulate character strings. Strings must be inside
quotation marks in variable formulas.
Example 1
To define profile size PL100*10 with two variables P2 = 100 and P3 = 10, enter
the formula as follows:
="PL"+P2+"*"+P3
Example 2
Tekla Structures handles bolt spacings as strings. To define bolt spacing, set
Value type to Distance list and enter the formula as follows:
=P1+" "+P2
This results in 100 200, if P1 = 100 (length) and P2 = 200 (length).
Trigonometric functions
Use trigonometric functions to calculate angles. You can use the following
trigonometric functions:
NOTE When you use trigonometric functions in variable formulas, you need
to include a prefix to define the unit. If you do not include a prefix,
Tekla Structures uses radians as the default unit.
• d is degree. For example, sin(d180)
• r is radians (default). For example, sin(r3.14) or sin(3.14)
NOTE • These functions do not return positive and negative slope and
skew values. It is not possible to determine up or down slope and
left or right skew with these functions.
• The maximum skew angle to return is 45 degrees.
• Tekla Structures calculates the angles in 2D so that slope and skew
are isolated from each other. For example, the skew angle is not
taken into consideration when calculating the slope angle, which
means that the slope angle value stays the same regardless of the
secondary part's rotation around the primary part.
To find out the true 3D slope with the skew included, you can use
the following mathematical formula:
TRUE_SLOPE = atan( tan(SLOPE) * cos(SKEW))
Example 1
The slope and skew are relative to a beam framing into a column.
1. Column
2. Beam
Example 2
With two beams, the slope is actually the horizontal skew of the beam framing
into the other beam, and the vertical slope of the beam relative to the main is
actually the skew angle.
1. Skew
2. Slope
Cyclic dependencies may also occur when binding handles to other objects or
when using magnetic construction planes. When you create new formulas,
bindings, or magnetic construction planes, Tekla Structures checks if they
create cyclic dependency chains in a custom component. If that happens, a
warning message "Caution. Operation created cycle." is displayed.
NOTE The component name and the component attribute file variables
must always have the same prefix, otherwise they do not work.
button .
b. Pick the required points and then click the middle mouse button to
create a construction plane in the center of a stiffener at one end.
NOTE The bolt size and bolt standard variables must always have
the same prefix, otherwise they do not work.
In the formula,
fP(Height,"ID50B8559A-0000-00FD-3133-353432363133") is the
beam height reference copied from the Custom component browser.
The variable gets its value in the following way:
• If the beam height is under 301 mm, the value is 2.
• If the beam height is over 501 mm, the value is 4.
• If the beam height is between 300 and 500 mm, the value is 3.
7. Click Add to create another parametric variable.
8. In the Value type list, select Distance list for the new variable.
9. In the Formula box, enter =P1+"*"+100 for the new variable.
10. In the Custom component browser, browse for Bolt group distance x.
11. Right-click Bolt group distance x and select Add Equation.
12. Enter P2 after the equal sign, and then press Enter.
13. Save the custom component.
14. Close the custom component editor.
When you now change the beam height, the number of bolt rows changes as
well.
8. Create two new parametric variables and link them to the user-defined
attributes of the other two panels.
9. Save the custom component.
10. Close the custom component editor.
You can now create a view filter in the model to hide or show panels using the
User field 1 attribute and the Formula values you entered for the parametric
variables in the filter.
To Do this
Save changes to all copies of 1. In the custom component editor, click the
the custom component
Save component button .
2. In the Save confirmation dialog box, click
Yes.
Tekla Structures saves the changes and
applies them to all copies of the custom
component in the model.
Save the component with a 1. In the custom component editor, click the
new name
Save with new name button .
2. Enter a new name for the component.
Save and close the component 1. In the custom component editor, click the
Close button .
2. In the Close custom component editor
message, click Yes.
If you click No, the custom component editor
closes without saving the changes.
See also
Tips for sharing custom components (page 142)
To Do this
View and edit object properties 1. Select a dialog box element. For
example, a text box.
2. Click Modify --> Properties.
Now you can view and edit the
current properties of the dialog
box element. For example, you
Modify the dialog box of a custom component 89 Examples of parametric variables and variable
formulas
To Do this
can check that you have the
correct text box under each label
in the dialog box.
Alternatively, you can double-click the
dialog box element. If the dialog box
element will not open for viewing and
editing, try double-clicking the space
right underneath the check box:
Modify the dialog box of a custom component 90 Examples of parametric variables and variable
formulas
To Do this
Modify the dialog box of a custom component 91 Examples of parametric variables and variable
formulas
To Do this
6. Repeat steps 4–5 for any other
images you want to use.
7. Click OK to save the changes.
Save the changes Click File --> Save.
NOTE If you are an advanced user, you may also modify the dialog box input
(.inp) files manually in a text editor. Be careful when modifying an
input file, as errors may cause the dialog box to disappear.
See also
Dialog editor settings (page 116)
Example: Modify the dialog box of a stiffener detail (page 93)
See also
Lock or unlock the custom component input file (page 92)
Modify the dialog box of a custom component 92 Custom component input files
1. In the model, select the custom component whose input file (page 92) you
want to lock or unlock.
2. Right-click and select Edit Custom Component Dialog Box.
Do this
1. Create a custom stiffener detail with all the needed variables that control
the creation of stiffener plates.
2. Add a list with images.
3. Arrange text boxes and labels.
4. Dim unavailable options.
Modify the dialog box of a custom component 93 Example: Modify the dialog box of a stiffener
detail
Example: Create a custom stiffener detail with variables
In this example, we will create a stiffener detail with variables that control the
shape and position of the stiffeners.
TIP To create the stiffeners, you can use the Stiffeners (1003)
component and then explode the component.
Modify the dialog box of a custom component 94 Example: Modify the dialog box of a stiffener
detail
6. Click Next.
7. Select the stiffeners and the beam as the objects that form the custom
component.
8. Click Next.
9. Select the beam as the main part.
10. Click Next.
11. Select the middle point of the beam as the reference point.
TIP Switch to the plane view to select the middle point more easily.
Modify the dialog box of a custom component 95 Example: Modify the dialog box of a stiffener
detail
12. Click Finish to finish creating the stiffener detail.
Tekla Structures displays a component symbol for the new custom
component and adds the stiffener detail to the component catalog.
Modify the dialog box of a custom component 96 Example: Modify the dialog box of a stiffener
detail
2. On the View tab, click Rendering --> Parts rendered.
Part surfaces and available planes can be selected only when they are
rendered.
3. On the custom component editor toolbar, select Outline planes from the
list.
Modify the dialog box of a custom component 97 Example: Modify the dialog box of a stiffener
detail
Use the same method as in step 5.
7. Bind the two bottom handles of the stiffener to the inside face of the
bottom flange.
Use the same method as in step 5.
8. Bind the two top handles of the stiffener to the inside face of the top
flange.
Use the same method as in step 5.
Modify the dialog box of a custom component 98 Example: Modify the dialog box of a stiffener
detail
10. In the custom component editor, click the Display variables button .
The Variables dialog box opens.
11. Click Add to create a new parametric variable P1.
12. Modify the variable P1 as follows:
a. In the Formula box, enter 10.
b. In the Label in dialog box box, enter Stiffener set back.
13. In the Formula box, enter =P1 for all variables that got values during the
binding of the handles.
For example:
Modify the dialog box of a custom component 99 Example: Modify the dialog box of a stiffener
detail
Create bindings to control the stiffener position
In this example, we will bind custom component handles to a plane to control
the position of the stiffeners.
1. Open the stiffener detail in the custom component editor.
a. Right-click the custom component in the model.
b. Select Edit Custom Component.
The custom component editor opens showing the custom component
editor toolbar, the component browser, and four views of the custom
component.
2. On the custom component editor toolbar, select Component planes from
the list.
Modify the dialog box of a custom component 100 Example: Modify the dialog box of a stiffener
detail
We have now created distance variables that control the position of the
stiffeners.
Modify the dialog box of a custom component 101 Example: Modify the dialog box of a stiffener
detail
6. In the Custom component browser, select Web thickness of the
primary part.
7. Right-click and select Copy Reference.
Modify the dialog box of a custom component 102 Example: Modify the dialog box of a stiffener
detail
12. Repeat step 11 for the second contour plate.
We have now created and linked all required variables that control the
stiffener thickness according to the web thickness.
Modify the dialog box of a custom component 103 Example: Modify the dialog box of a stiffener
detail
6. Modify the variable P5 as follows:
a. In the Formula box, enter =if P4==0 then 0 else 1 endif.
b. In the Value type list, select Yes/No.
c. In the Visibility list, select Hide.
d. In the Label in dialog box box, enter Do not create right.
7. Click Add to create a new parametric variable P6.
8. Modify the variable P6 as follows:
a. In the Formula box, enter =if P4==1 then 0 else 1 endif.
b. In the Value type list, select Yes/No.
c. In the Visibility list, select Hide.
d. In the Label in dialog box box, enter Do not create left.
9. Click Add to create a new parametric variable P7.
10. Modify the variable P7 as follows:
a. Rename P7 as LeftC.
b. In the Formula box, enter 4.
c. In the Value type list, select Number.
d. In the Visibility list, select Show.
e. In the Label in dialog box box, enter Left plate class.
11. Click Add to create a new parametric variable P8.
12. Modify the variable P8 as follows:
a. Rename P8 as RightC.
b. In the Formula box, enter 5.
c. In the Value type list, select Number.
d. In the Visibility list, select Show.
e. In the Label in dialog box box, enter Right plate class.
13. In the Custom component browser, link the variables P5 and RightC to
the right stiffener plate.
Modify the dialog box of a custom component 104 Example: Modify the dialog box of a stiffener
detail
14. Link the variables P6 and LeftC to the left stiffener plate.
We will replace the text box with a list that is easier to use:
Modify the dialog box of a custom component 105 Example: Modify the dialog box of a stiffener
detail
Add a list by using the dialog editor
1. Create a custom stiffener detail (page 93) with all the needed variables
that control which stiffener plates are created.
In our example, the variable is called Plates created.
2. Open the stiffener dialog box for editing.
a. In the model, select the custom stiffener detail.
b. Right-click and select Edit Custom Component Dialog Box.
3. Check the name of the parametric variable that controls the plate
creation.
a. In the dialog editor, double-click the Plates created box.
The Object Properties dialog box opens.
b. Check the name of the parametric variable.
Modify the dialog box of a custom component 106 Example: Modify the dialog box of a stiffener
detail
In our example, the name is P4.
Modify the dialog box of a custom component 107 Example: Modify the dialog box of a stiffener
detail
12. In the Edit Attribute Values dialog box, select the image of both plates
and then click Default to make the attribute the default value.
Modify the dialog box of a custom component 108 Example: Modify the dialog box of a stiffener
detail
5. Remove the following line:
parameter("Plates created", "P4", integer, number, 2)
6. Add a new Plates created attribute with the following settings:
The list now contains three options, and Both is the default value. The list
options are linked to the variable P4 that controls the creation of the
stiffener plates.
Modify the dialog box of a custom component 109 Example: Modify the dialog box of a stiffener
detail
8. Edit the line numbers so that there are no empty rows between the
variables in the dialog box.
9. Browse for the images you want to use in the dialog box.
If you make new images, make sure they are in the bitmap (.bmp) format.
Save the images in the ..\ProgramData\Tekla Structures
\<version>\Bitmaps folder.
10. Replace the option texts with the actual filenames of the images, but with
the filename extension .xbm.
Modify the dialog box of a custom component 110 Example: Modify the dialog box of a stiffener
detail
When we begin, the dialog box looks like the following:
We will arrange the dialog box elements more nicely, in the following manner:
Modify the dialog box of a custom component 111 Example: Modify the dialog box of a stiffener
detail
Arrange the elements by editing the .inp file
1. Create a custom stiffener detail (page 93) with all the needed parametric
variables that control the creation of stiffener plates.
2. In the model, click File --> Open the model folder to open the current
model folder.
3. Go to the CustomComponentDialogFiles folder.
4. Open the .inp file in a text editor.
5. Edit the file as follows:
We will define that the Left plate class text box is unavailable if only the right
plate is created, and vice versa.
Modify the dialog box of a custom component 112 Example: Modify the dialog box of a stiffener
detail
Dim unavailable options by using the dialog editor
1. Create a custom stiffener detail (page 93) with all the needed parametric
variables that control the creation of stiffener plates.
2. Open the stiffener dialog box for editing.
a. In the model, select the custom stiffener detail.
b. Right-click and select Edit Custom Component Dialog Box.
3. Define that the Left plate class text box must be dimmed if only the right
stiffener plate is created.
a. In the Plates created list, select the image for the right plate class.
Note that a blue selection border must be displayed for the image:
b. Hold down the Ctrl key and click the Left plate class text box.
Modify the dialog box of a custom component 113 Example: Modify the dialog box of a stiffener
detail
The Left plate class text box is now dimmed:
4. Unselect the Left plate class text box by clicking the Right plate class
text box.
5. Define that the Right plate class text box must be dimmed if only the left
stiffener plate is created.
a. In the Plates created list, select the image for the left plate class.
Note that a blue selection border must be displayed for the image:
b. Hold down the Ctrl key and select the Right plate class text box.
6. In the dialog editor, click File --> Save to save the changes.
7. Close and reopen the model for the change to take effect.
Modify the dialog box of a custom component 114 Example: Modify the dialog box of a stiffener
detail
Dim unavailable options by editing the .inp file
1. Create a custom stiffener detail (page 93) with all the needed parametric
variables that control the creation of stiffener plates.
2. In the model, click File --> Open the model folder to open the current
model folder.
3. Go to the CustomComponentDialogFiles folder.
4. Open the .inp file in a text editor.
5. Add the following line to the end of the attribute P4 line:
"toggle_field:LeftC=0;RightC=1"
TIP If you want to hide unavailable options instead of dimming them in the stiffener
dialog box, add an exclamation mark in the conditions:
"toggle_field:!LeftC=0;!RightC=1"
The option is now completely hidden when unavailable:
Modify the dialog box of a custom component 115 Example: Modify the dialog box of a stiffener
detail
6.4 Dialog editor settings
Click Tools --> Options in the Custom Component Dialog Editor to view and
modify some basic settings of the dialog editor.
Option Description
Image folder The location of the image folder. To
restore the default folder setting, click
Default.
Project folder The location of the project folder.
When you create a completely new
input file by clicking File --> New and
then save it, the file is saved in the
project folder. Note that existing input
files are saved under the model
folder.
Parameter width The default width for text boxes.
Attribute width The default width for lists.
Grid spacing X The spacing of the pixel grid (page 89)
in the X and Y directions. The default
Grid spacing Y
value is 5.
Snap to grid Select to show or hide the pixel grid.
See also
Modify the dialog box of a custom component (page 89)
Modify the dialog box of a custom component 116 Dialog editor settings
7 Add a custom component to a
model
Use the Applications & components catalog to add your custom component
to a model.
Type Symbol
Custom part
Custom detail
3. Select the custom component you want to add.
4. Follow the instructions on the status bar to add the custom component in
the model.
5. To modify the properties, double-click the custom component in the
model.
See also
Add or move a custom part in the model (page 119)
Use the direct modification handles and dimensions when you add or move
custom parts. If you are unable to select custom parts in the model, ensure
NOTE This method cannot be used when adding custom parts to surfaces
that have cuts or edge chamfers. You need to hide the cutting parts
and edge chamfer objects from the view before you add custom parts
on cut or chamfered surfaces using direct modification.
We do not recommend using this method with custom parts that are
parametric, and in which the input points define the dimensions of the
custom part. The preview is simplified, based on the default custom
part dimensions, and snapping has a different focus than usually.
Add or move a custom part in the model 119 Dialog editor settings
Tekla Structures shows the coordinate axes, rotation handles, and location
dimensions that you can use to fine-tune the location and rotation of the
custom part. The handles are red, green, and blue, according to the local
coordinate system of the custom part.
6. Click the middle mouse button to confirm the location and rotation.
Tekla Structures adds the custom part to the model.
7. To move the custom part along any of its coordinate axes, drag the
relevant axis handle to a new location.
8. To rotate the custom part around any of its coordinate axes, drag the
relevant rotation handle to a new location.
Add or move a custom part in the model 120 Dialog editor settings
Press Tab to rotate the custom part in 90-degree steps in the direction of
the selected rotation handle.
Add or move a custom part in the model 121 Dialog editor settings
9 Import and export custom
components
You can import and export custom components as .uel files between models.
TIP You can share your custom components in Tekla Warehouse, and also download
custom components made by other users.
2. Click the Access advanced features button , and then select Import.
3. Browse for the folder that contains the export file.
4. Select the export file.
5. Click Open to import the custom components.
You can define the position for custom connections and seams. You have the
following options:
Right
Left
Front
Behind
Above
On the left
Tekla Structures uses variables with custom components (page 34), sketched
cross sections, and parametric modeling. The examples below are given for
custom components, but the same principles apply also to sketched cross
sections and parametric modeling.
Option Description
Name A unique name of a variable. Use this name to refer to the
variable in the custom component editor.
The maximum length is 19 characters.
Formula Use this box to enter a value or a formula.
Formulas begin with =.
Value Shows the current value of Formula.
Value type Select a value type from the list. The type determines what kind
of value you can enter for the variable.
For more information, see the table below.
Variable type This property can be either Distance or Parametric.
Visibility Use this setting to control the visibility of a variable.
Set to Show to display the variable in the custom component
dialog box.
Label in dialog box The name of the variable that Tekla Structures displays in the
custom component dialog box.
The maximum length is 30 characters.
Option Description
Number A whole (integer) number. Use for quantity and multiplier.
Length A decimal (floating point) number. Use for lengths and distances.
Length numbers have unit (mm, inch, etc.) and they are rounded
to two decimal places.
Text A text (ASCII) string.
Factor A decimal value without a unit. You can set the number of
decimals for the value type in File menu --> Settings --> Options
--> Units and decimals .
Angle A decimal number type for storing angles, stored to one decimal
place, in radians.
Bolt type For determining the bolt type (site/workshop) in the custom
component dialog box. Linked to the Bolt type property of bolts
in the Custom component browser.
Stud size Data types linked to the bolt catalog. Stud size, Stud standard
and Stud length work together. They have a fixed naming
Stud standard
format: Px_size, Px_standard and Px_length. Do not change
Stud length the fixed names.
To show values for these in the component’s dialog box, x must
be the same for all of them. For example, P9_size,
P9_standard, and P9_length.
Distance list Use with options that have several length values, such as bolt
spacings.
Use space as a separator between the distances.
Rebar hook type Used for rebar set end detail modifiers, to specify the hook type.
Rebars to split Used for rebar set splitters, to specify how the bars are to be split
(1/1, 1/2, and so on).
Bitmask For defining bolt assembly (nuts and washers) and parts with
slotted holes. Linked to the Bolt structure and Parts with
Here you will find some useful tips on how to create and use custom
components more efficiently.
• Tips for creating custom components (page 141)
Follow these guidelines when creating new custom components.
• Tips for sharing custom components (page 142)
Follow these guidelines when sharing custom components with colleagues.
• Tips for updating custom components to a new version (page 142)
When you start using a new version of Tekla Structures, always check that
custom components created in older versions work correctly in the new
version.
Hints and tips for using custom components 141 Tips for creating custom components
• Use the simplest part you can.
For example, if all you need is a rectangular shape, use a rectangular plate,
not a contour plate. Rectangular plates only have two handles, so you only
need to create a few bindings to manipulate them. Contour plates require
more bindings because they have four handles.
1. Rectangular plate
2. Contour plate
• Model parts only as accurately as you need.
If the only part information required is a part mark in a general
arrangement drawing, plus a quantity on a materials list, create a simple
bar or plate. If you need to include the part in a detailed view later on,
simply re-model the part more accurately at that point.
• Model embeds as custom parts and include them in components.
Hints and tips for using custom components 142 Tips for sharing custom components
11.3 Tips for updating custom components to a new
version
When you start using a new version of Tekla Structures, always check that
custom components created in older versions work correctly in the new
version.
When you edit custom components created with an older version of Tekla
Structures, and the new version contains improvements that require an
update, Tekla Structures asks whether you want to update the component. If
you do not update the component, it works in the same manner as in the
version where it was originally created, but you do not gain the benefits of the
new improvements.
If you choose to update the component, you need to check and sometimes
recreate dimensions depending on the improvements. When you delete a
dimension and create a new one (even with the same name), the equations
that contain the dimension also need to be modified, because the dependency
created by the equation is lost when a dimension is deleted. You can recreate
dimensions and modify equations in the custom component editor.
Hints and tips for using custom components 143 Tips for updating custom components to a new
version
Hints and tips for using custom components 144 Tips for updating custom components to a new
version
Index
145
details exploding
custom details...................................... 5,11 components............................................. 19
dialog boxes exporting
modifying................................................. 89 custom components.............................122
dialog editor...................................................89
distance variables.................................... 34,35
distance
reference distance...................................45
F
formulas
arithmetic operators...............................55
E in custom components...........................53
functions........................................................ 53
editing
custom components............................... 31
editors
Custom component dialog editor......... 89
G
examples grid planes................................................... 132
adding option to create object in custom
component...............................................70
component planes................................ 133 I
creating custom connection.................. 23 importing
creating parametric variable..................69 custom components.............................122
determining bolt group distance from inp files
beam flange............................................. 78 in custom components..................... 89,92
determining bolt size and bolt standard
................................................................... 77
determining number of bolt rows in
custom component.................................80 L
exploding components...........................23 linking
modifying custom component dialog box parametric variables to object properties
................................................................... 93 ................................................................... 48
modifying dialog box of stiffener detail.... locking and unlocking
93 custom components............................... 92
nested components................................ 26
replacing sub-components in custom
component...............................................71
sub-components..................................... 26
M
using construction planes in custom magnetic construction planes and lines.... 43
component...............................................74 modifying
using Excel spreadsheets with custom custom components..........................16,31
components............................................. 86
using properties file in custom
component...............................................73 N
using template attributes in custom nested
components............................................. 84 components........................................19,26
using user-defined attributes in custom
components............................................. 82
Excel
using with custom components............ 86
146
O V
operators........................................................53 value types...................................................136
outline planes..............................................132 variable formulas.......................................... 53
variables
creating dependencies........................... 48
P dependencies.......................................... 67
distance variables....................................35
parametric variables.....................................34 in custom components...........................34
creating.....................................................48 parametric variables............................... 48
linking....................................................... 48 value types............................................. 136
parts variable properties................................136
custom parts........................................... 5,7
passwords
protecting custom components............ 32
plane types.................................................. 132
properties
Custom Component Wizard................ 124
custom components.............................127
variable properties................................136
R
reference distance variables.................. 34,45
S
saving
custom component.................................88
seams
custom seams.......................................5,13
settings
custom components.............................124
dialog editor settings............................ 116
sub-components........................................... 19
examples.................................................. 26
T
thumbnail image
of custom component............................ 21
tips
creating custom components..............141
custom components in new Tekla
Structures version................................. 142
sharing custom components...............142
147
148