Custom Components Guide 211 Enu
Custom Components Guide 211 Enu
2
4.7 Construction planes in custom components........................................................................ 36
Create a construction plane in the custom component editor...........................................................................36
3
Example: Seam component planes............................................................................................................................. 82
Example: Part component planes................................................................................................................................ 83
8.4 Variables properties................................................................................................................83
Value types.........................................................................................................................................................................84
8.5 Functions in variable formulas..............................................................................................87
Arithmetic operators.......................................................................................................................................................88
Logical and comparison operators.............................................................................................................................. 89
Reference functions........................................................................................................................................................ 89
ASCII file as a reference function................................................................................................................................90
Mathematical functions.................................................................................................................................................91
Statistical functions........................................................................................................................................................ 93
Data type conversion functions................................................................................................................................... 93
String operations..............................................................................................................................................................94
Trigonometric functions.................................................................................................................................................96
Market size function....................................................................................................................................................... 96
Framing condition functions........................................................................................................................................ 97
Example: Skew and slope framing conditions......................................................................................................... 98
Example: Ceil and floor statistical functions........................................................................................................... 99
Example: Market size function.................................................................................................................................. 100
10 Disclaimer.......................................................................................................104
4
1 What is a custom component
Tekla Structures contains a set of tools for defining connections, parts, seams and details,
called custom components. You can create your own custom components.Tekla Structures
creates a dialog box for the custom component and you can customize the dialog box to suit
your needs.
You can then use custom components in the same way as any Tekla Structures system
component.
See also
Create custom components on page 7
Custom component editor on page 19
This section explains how to create custom components and add them to a model.
Click the links below to find out more:
See also
Create custom components on page 7
Create a custom component on page 9
To explode a component:
1. Click Detailing --> Component --> Explode component .
2. Select the component to explode.
Tekla Structures separates the objects in the component.
You can now remove and modify the objects separately.
See also
Create custom components on page 7
Example: Explode an end plate component on page 8
You can now modify the properties of the objects as required. Then you can create a custom
connection that is made of the modified end plate component objects.
See also
Create custom components on page 7
Explode components on page 8
TIP To quickly create a custom component, explode a similar existing component, then
change the component objects to suit your needs.
See also
Create custom components on page 7
Custom component types on page 10
Example: Create an end plate connection on page 12
Custom Component Wizard properties on page 70
Custom detail Creates detail objects and connects Stiffeners, holes, studs, cleats and
them to a single part at the location lifting brackets
you picked.
TIP To explode a component, select the component, right-click and select Explode
Component from the pop-up menu.
6. 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 it in the custom component editor.
See also
Create custom components on page 7
Create a custom component on page 9
Explode components on page 8
Custom component editor on page 19
1. Click the Applications and Components button in the upper-right corner of the
Tekla Structures main window to open the Applications and Components catalog.
2. In the catalog, select the custom component you want to add.
3. Follow the instructions on the status bar to add the custom component in the model.
4. If needed, double-click the custom component in the model to modify its properties.
See also
Create custom components on page 7
Add a custom part to a model and move it using direct modification on page 16
1. Click the Applications and Components button in the upper-right corner of the
Tekla Structures main window to open the Applications and Components catalog.
2. Select Custom in the list to view custom components.
3. Select the End Plate custom connection.
Tekla Structures displays instructions on the status bar.
4. Select the column as the main part.
5. Select the beam as the secondary part.
Tekla Structures adds the end plate connection to the model.
See also
Create custom components on page 7
Example: Create an end plate connection on page 12
Add a custom component to a model on page 15
Limitations:
• Direct modification cannot be used to add 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 direct modification 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.
2. Click the Applications and Components button in the upper-right corner of the
Tekla Structures main window to open the Applications and Components catalog.
3. Select Custom in the list to view all custom components in the catalog.
4. Select the custom part you want to add.
5. Move the mouse pointer over part faces and edges in the model, and see how the custom
part turns over and adjusts to the part faces.
If you are adding a custom part to another part, Tekla Structures shows location
dimensions from the first input point of the custom part to the nearest part faces.
6. If you are adding a custom part that has only one input point, you can rotate the custom
part in 90-degree steps around the work plane y axis by pressing Tab.
7. Depending on the number of the custom part input points, pick one or two points to
place the custom part in the model.
Create custom components 16 Add a custom part to a model and move it using direct
modification
Tekla Structures shows coordinate axes, rotation handles, and location dimensions that
you can use to fine-tune the location and rotation of the custom part.
• To rotate the custom part around any of its coordinate axes, drag the relevant
rotation handle to a new location.
Create custom components 17 Add a custom part to a model and move it using direct
modification
You can also press Tab to rotate the custom part in 90-degree steps in the direction
of the selected rotation handle.
• To change a location dimension, drag the relevant dimension arrowhead to a new
location.
• To move or rotate the custom part by specifying a distance or angle:
1. Select an axis handle, a rotation handle, or a dimension arrowhead.
2. Using the keyboard, enter the value with which you want the dimension to
change.
To start with the negative sign (-), use the numeric keypad.
To enter an absolute value for the dimension, first enter $, then the value.
3. Press Enter, or click OK in the Enter a Numeric Location dialog box.
9. Click the middle mouse button to confirm the location and rotation, and to add the
custom part to the model.
10. If you want to modify an existing custom part in a model:
See also
Create custom components on page 7
Create custom components 18 Add a custom part to a model and move it using direct
modification
3 Custom component editor
See also
Custom component editor on page 19
NOTE Custom parts do not have a component symbol. To select custom parts, ensure
The custom component editor opens showing the Custom component editor toolbar,
Custom component browser and four views of the custom component. When you select
an object in the Custom component browser, Tekla Structures highlights the object in
the views. When you select an object in a custom component view, Tekla Structures
highlights the object in the Custom component browser.
See also
Custom component editor on page 19
The Custom component browser works with the custom component editor views. When you
select an object in the Custom component browser, Tekla Structures highlights the object in
See also
Custom component editor on page 19
.
2. Modify the settings in the Custom component settings dialog box as required.
3. Click OK.
See also
Custom component editor on page 19
Type/Notes tab properties on page 70
Position tab properties on page 71
Advanced tab properties on page 71
To Do this
Save changes in all copies of the
custom component 1. Click the Save component button in the custom
component editor.
See also
Custom component editor on page 19
See also
Custom component editor on page 19
This section explains what variables are and how they are created in the custom component
editor.
Click the links below to find out more:
• About variables on page 24
• View variables on page 25
• Distance variables on page 25
• Parametric variables on page 31
• Reference distance variables on page 33
• Property references on page 35
• Construction planes in custom components on page 36
See also
Variables in custom components on page 24
1. Click the Display variables button on the Custom component editor toolbar.
The Variables dialog box opens.
As the Component parameters category is active by default, the dialog box displays all
variables in the custom component that you are modifying.
2. If you want to see variables in the current model, such as bindings between a part’s end
point and a grid plane, select the Model parameters category on the left of the dialog
box.
See also
Variables in custom components on page 24
See also
Variables in custom components on page 24
Create a distance variable manually on page 26
Test a distance variable on page 27
Example: Create a distance variable to bind an end plate on page 28
Create distance variables automatically on page 30
Delete a distance variable on page 31
Hide variables in a custom component dialog box on page 57
TIP Hold down the Alt key and use area selection (from left to right) to select multiple
reference points.
• Click the Add fixed distance button on the Custom component editor toolbar.
• Right-click a reference point and select Bind to Plane on the menu.
3. Move the pointer in a custom component editor view to highlight the plane that you
want to bind with the reference points.
TIP Hide parts and their reference lines if they are obscuring the required plane:
Hold down the Shift key, select the part, right-click and select Hide in the list.
See also
Distance variables on page 25
Plane types on page 78
Example: Create a distance variable to bind an end plate on page 28
See also
Distance variables on page 25
Here you use the boundary plane type. If the part profile changes, the boundary plane is
always found.
5. Click the upper side of the beam flange.
A distance symbol appears in the custom component editor views.
See also
Distance variables on page 25
Plane types on page 78
See also
Distance variables on page 25
Create distance variables automatically on page 30
Construction planes in custom components on page 36
Plane types on page 78
See also
Distance variables on page 25
Automatic distance variables on page 30
TIP You can also delete variables in the Variables dialog box by selecting the variable and clicking
the Delete button.
See also
Distance variables on page 25
See also
Variables in custom components on page 24
Create and link a parametric variable on page 32
TIP To find the required object more easily in the Custom component browser, select
the object in a custom component editor view to highlight the object in the
Custom component browser.
See also
Variables in custom components on page 24
Parametric variables on page 31
Example: Create a parametric variable to set end plate material on page 32
See also
Variables in custom components on page 24
Parametric variables on page 31
Create and link a parametric variable on page 32
See also
Variables in custom components on page 24
Create a reference distance variable on page 34
2. Click the Add reference distance button on the Custom component editor
toolbar.
3. Move the pointer in a custom component editor view to highlight the plane that you
want to bind with the reference point.
NOTE If you cannot highlight the correct plane, change the plane type on the Custom
component editor toolbar.
See also
Variables in custom components on page 24
Reference distance variables on page 33
See also
Variables in custom components on page 24
Copy a property reference on page 35
TIP To find the required object more easily in the Custom component browser, select
the object in a custom component editor view to highlight the object in the
Custom component browser.
See also
Property references on page 35
Example: Determine the number of bolt rows on page 43
See also
Variables in custom components on page 24
Create a construction plane in the custom component editor on page 36
1. Click the Add construction plane button on the Custom component editor
toolbar.
2. Pick four points in a custom component editor view.
3. Click the middle mouse button.
Tekla Structures draws the construction plane.
This section presents examples on how to modify custom components to make them adapt to
changes in models. The examples are independent from each other.
Click the links below to find out more:
• Example: Add an option to create an object on page 38
• Example: Determining the bolt group distance from the beam flange on page 39
• Example: Determine the bolt size and bolt standard on page 41
• Example: Determine the number of bolt rows on page 43
• Example: Use construction planes for determining the stiffener position on page 44
• Example: Replace sub-components on page 47
• Example: Use properties files to modify a sub-component on page 49
• Example: Use user-defined attributes in custom components on page 50
• Example: Determine the number of handrail posts using a template attribute on page
52
• Example: Use Excel spreadsheets with custom components on page 56
See also
Examples of modifying custom components on page 38
Create and link a parametric variable on page 32
Variables properties on page 83
Examples of modifying custom components 39 Example: Determining the bolt group distance from the
beam flange
5.2 Example: Determining the bolt group distance from the beam
flange
In this example, you will determine the bolt group distance from the beam flange.
Examples of modifying custom components 40 Example: Determining the bolt group distance from the
beam flange
A new distance variable appears in the Variables dialog box.
3. Open the Variables dialog box in the custom component editor.
4. Create a new parametric variable.
5. Modify the parametric variable.
a. Enter a distance value in Formula.
b. Enter Vertical distance to bolt in Label in dialog box.
6. Enter =-P1 in Formula to for the distance variable.
See also
Examples of modifying custom components on page 38
Create a distance variable manually on page 26
Create and link a parametric variable on page 32
Variables properties on page 83
Examples of modifying custom components 41 Example: Determine the bolt size and bolt standard
3. Modify the first parametric variable.
• Change Value type to Bolt size.
Tekla Structures automatically adds the suffix _diameter to the name of the
variables. Do not delete the suffix.
• Enter Bolt Size in Label in dialog box.
4. Modify the second parametric variable.
a. Change Value type to Bolt standard.
Tekla Structures automatically adds the suffix _screwdin to the name of the
variable. Do not delete the suffix.
b. Change the prefix in Name of the second variable so that the prefixes for the two
variables are same.
NOTE The bolt size and bolt standard variables must always have the same prefix,
otherwise they do not work.
Examples of modifying custom components 42 Example: Determine the bolt size and bolt standard
8. Close the custom component editor.
You can now determine the bolt size and bolt standard for the custom component in the
custom component dialog box.
See also
Examples of modifying custom components on page 38
Create and link a parametric variable on page 32
Variables properties on page 83
Examples of modifying custom components 43 Example: Determine the number of bolt rows
• 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. Create a new parametric variable.
8. Change Value type of the new variable to Distance list.
9. Enter =P1+"*"+100 in Formula of the new variable.
In the formula, 100 is the bolt spacing and the P1 value is the number of bolt rows.
See also
Examples of modifying custom components on page 38
Create and link a parametric variable on page 32
Property references on page 35
Variables properties on page 83
Examples of modifying custom components 44 Example: Use construction planes for determining the
stiffener position
To position the stiffeners using the construction planes:
1. Open the Variables dialog box in the custom component editor.
2. Create a new parametric variable.
3. Get the GUID of the beam.
a. Click Tools --> Inquire --> Object .
b. Select the beam.
The Inquire Object dialog box opens.
c. Check the GUID of the beam in the Inquire Object dialog box.
4. Modify the parametric variable.
• Enter
=fTpl("LENGTH","ID4C8B5E24-0000-017D-3132-383432313432"
) in Formula.
ID4C8B5E24-0000-017D-3132-383432313432 is the GUID of the beam.
The value of the variable is now the same as the beam length. If you change the
beam length, the value also changes.
• Enter Beam Length in Label in dialog box.
5. Create a new parametric variable.
6. Modify the new parametric variable.
• Enter =P1/3 in Formula.
• Enter 3rd Points in Label in dialog box.
7. Create a construction plane.
a. Click the Add construction plane button on the Custom component editor
toolbar.
Examples of modifying custom components 45 Example: Use construction planes for determining the
stiffener position
b. Pick the points and then click the middle mouse button to create a construction
plane in the center of a stiffener at one end.
Examples of modifying custom components 46 Example: Use construction planes for determining the
stiffener position
10. Repeat steps 7 to 9 for the stiffener at the other end.
11. Change Formula to =P2 for the two distance variables that bind the construction planes
to the beam ends.
12. Save the custom component.
13. Close the custom component editor.
When you change the beam length, the position of the stiffeners changes so that the
stiffeners divide the beam into three equally long sections.
See also
Examples of modifying custom components on page 38
Create and link a parametric variable on page 32
Create a construction plane in the custom component editor on page 36
Create a distance variable manually on page 26
Variables properties on page 83
See also
Examples of modifying custom components on page 38
Create and link a parametric variable on page 32
Variables properties on page 83
Examples of modifying custom components 49 Example: Use properties files to modify a sub-component
NOTE The component name and component attribute file variables must always
have the same prefix, otherwise they do not work.
See also
Examples of modifying custom components on page 38
Create and link a parametric variable on page 32
Variables properties on page 83
9. Create two new parametric variables and link them to the user-defined attributes of the
other two panels.
10. Save the custom component.
11. Close the custom component editor.
You can now create a view filter and hide or show panels using the User field 1 attribute
and the Formula values you entered for the parametric variables in the filter.
See also
Examples of modifying custom components on page 38
Create and link a parametric variable on page 32
Variables properties on page 83
Examples of modifying custom components 52 Example: Determine the number of handrail posts using a
template attribute
To determine the number of handrail posts:
1. Open the Variables dialog box in the custom component editor.
2. Create three new parametric variables.
3. Modify parametric variable P1.
• Enter 250 in Formula.
• Enter End Distance in Label in dialog box.
4. Modify parametric variable P2.
• Enter 900 in Formula.
• Enter Spacing in Label in dialog box.
5. Modify parametric variable P3.
• Change Value type to Number.
• Enter Number of Posts in Label in dialog box.
6. Inquire the GUID of the beam.
a. Click Tools --> Inquire --> Objects .
b. Select the beam.
The Inquire Object dialog box opens.
c. Check the GUID of the beam in the Inquire Object dialog box.
7. Change Formula of P3 to
=(fTpl("LENGTH","ID50B8559A-0000-010B-3133-353432373038")
-(P1*2))/P2.
Examples of modifying custom components 53 Example: Determine the number of handrail posts using a
template attribute
fTpl("LENGTH","ID50B8559A-0000-010B-3133-353432373038") is
the length template attribute of the beam and
ID50B8559A-0000-010B-3133-353432373038 is the GUID of the beam.
The number of the posts is calculated as follows: first the end distances are subtracted
from the beam length and the result is divided by the post spacing.
8. Open the Custom component browser in the custom component editor.
9. Link parametric variable P2 and P3 to the properties of Array of objects (29).
Examples of modifying custom components 54 Example: Determine the number of handrail posts using a
template attribute
11. Bind the last post to the other beam end following the instructions in step 10.
12. Modify all distance variables.
• Change Formula to =P1.
• Change Visibility to Hide.
See also
Examples of modifying custom components on page 38
Create and link a parametric variable on page 32
Create a distance variable manually on page 26
Examples of modifying custom components 55 Example: Determine the number of handrail posts using a
template attribute
Variables properties on page 83
See also
Examples of modifying custom components on page 38
Create and link a parametric variable on page 32
Variables properties on page 83
Examples of modifying custom components 56 Example: Use Excel spreadsheets with custom components
6 Modify the custom component dialog
box
This section explains how to modify the custom component dialog box. For example, you can
decide which variables are visible in the dialog box, and you can add images, tabs and lists to
the dialog box.
Click the links below to find out more:
• Hide variables in a custom component dialog box on page 57
• Custom component dialog box file on page 57
• Custom Component Dialog Editor on page 58
See also
Modify the custom component dialog box on page 57
View variables on page 25
Modify the custom component dialog box 57 Hide variables in a custom component dialog box
6.2 Custom component dialog box file
When you create a new custom component, Tekla Structures automatically creates the input
file that defines the custom component dialog box. The input file is located in the
CustomComponentDialogFiles folder under the model folder. The input file has the
same name as the custom component and the file name extension is .inp.
When you modify a custom component, Tekla Structures automatically creates a backup file
of the input file. The backup file has the extension .inp_bak, and it is located in the
CustomComponentDialogFiles folder under the model folder. Tekla Structures
displays a notification when the backup file is created.
See also
Open a custom component dialog box file in Custom Component Dialog Editor on page 59
Prevent modifications of the custom component dialog box on page 65
See also
Open a custom component dialog box file in Custom Component Dialog Editor on page 59
Move items in a custom component dialog box on page 59
Add an image in a custom component dialog box on page 59
Add and rename a tab in a custom component dialog box on page 60
Example: Modify the dialog box of a stiffener detail on page 60
Modify the custom component dialog box 58 Custom Component Dialog Editor
Set the options for Custom Component Dialog Editor
To set the options for Custom Component Dialog Editor:
1. Click Tools --> Options .
2. Define the options as needed.
By default, the image folder is ..\ProgramData\TeklaStructures
\<version>\Bitmaps. You can revert to the default folder by clicking Default.
3. Click Apply and OK.
TIP You can also right-click a custom component in the model or in the Applications and
Components catalog and select Edit Custom Component Dialog Box from the pop-up menu to
open the custom component dialog file for editing.
See also
Custom component dialog box file on page 57
TIP You can select multiple items by holding down the Ctrl key and clicking the items, or
by using area selection. You can then drag all the items at once.
You can also use the copy, cut and paste commands. For example, to move items to another
tab, select the items, press Ctrl + X, go to another tab and press Ctrl + V.
Modify the custom component dialog box 59 Custom Component Dialog Editor
Add an image in a custom component dialog box
You can add images in a custom component dialog box to make your custom component
easier to use.
Modify the custom component dialog box 60 Custom Component Dialog Editor
Example: Add a list with images in a stiffener dialog box
Start by adding a list with images in the stiffener dialog box. This task is phase 1 in the
workflow Example: Modify the dialog box of a stiffener detail on page 60.
The dialog box of the stiffener has the text box shown below. The user needs to know the
values (0 is left, 1 is right and 2 is both plates) that control the creation of stiffener plates.
You will replace the text box with a list that is easier to use.
Modify the custom component dialog box 61 Custom Component Dialog Editor
2. Select the text box and press Delete.
3. Add a new attribute (list).
a. Click Insert --> Attribute .
b. Drag the attribute to a suitable location.
4. Double-click the new attribute to edit its properties.
5. Enter P4 as Name for the attribute.
Now the attribute is linked to the parametric variable that controls the plate creation.
6. Click Edit Values to add the list items.
7. Add the image for the left plate.
a. Click Browse Add....
b. Browse to the correct folder.
c. Select a suitable image.
d. Click Open.
8. Add the image for right plate and then for both plates in the same way as for the left
plate.
9. 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 custom component dialog box 62 Custom Component Dialog Editor
10. Click OK.
11. Click Apply in the Object Properties dialog box.
12. Save changes in Custom Component Dialog Editor.
Now you can select the plates that you want to create more easily.
Modify the custom component dialog box 63 Custom Component Dialog Editor
Example: Arrange text boxes and labels in a stiffener dialog box
After adding the list in the stiffener dialog box, you can arrange the text boxes and labels
around the list in the dialog box. This task is phase 2 in the workflow Example: Modify the
dialog box of a stiffener detail on page 60.
The dialog box looks like the following before the text boxes and labels are arranged:
To arrange the text boxes and labels in the stiffener dialog box:
1. Drag the text box that controls the left plate class to the left side of the list.
2. Drag the Left Plate Class label above the corresponding text box.
3. Drag the text box that controls the right plate class to the right side of the list.
4. Drag the Right Plate Class label above the corresponding text box.
5. Drag the list label above the list.
6. Save the changes.
Now the list, text boxes and labels are arranged nicely.
See also
Move items in a custom component dialog box on page 59
Modify the custom component dialog box 64 Custom Component Dialog Editor
a. Select the image for the right plate in the Plates Created list.
b. Hold down the Ctrl key and select the Left Plate Class text box.
Modify the custom component dialog box 65 Custom Component Dialog Editor
To prevent modifications of the .inp file, click the Lock/Unlock button to the locked state
You can modify the custom component in the custom component editor when the .inp file
is locked, but the .inp file will not be updated. However, you can modify the dialog box in
Custom Component Dialog Editor even if the .inp file is locked.
See also
Custom component dialog box file on page 57
Modify the custom component dialog box 66 Custom Component Dialog Editor
7 Manage custom components
This section explains how to manage custom components. You can export and import custom
components and prevent other users from modifying the custom components.
Click the links below to find out more:
• Export custom components on page 67
• Import custom components on page 68
• Protect custom components with passwords on page 68
1. Click the Applications and Components button in the upper-right corner of the
Tekla Structures main window to open the Applications and Components catalog.
2. Select the custom components in the catalog.
3. Right-click and select Publish.
4. Browse for the folder where you want to save the file.
5. Enter a name for the export file.
By default, the file name extension is .uel.
6. Click Save to export the custom components.
NOTE Do not change the name of the .uel file after exporting the custom components.
TIP If you want to export custom components as separate files, select the custom components in the
Applications and Components catalog, right-click, and then select Publish separately from the
pop-up menu.
See also
Import custom components on page 68
Tips for sharing custom components on page 102
1. Click the Applications and Components button in the upper-right corner of the
Tekla Structures main window to open the Applications and Components catalog.
TIP You can import custom components to a new model automatically by using the
XS_UEL_IMPORT_FOLDER advanced option.
Export all custom components to certain folders and refer to these folders in the
XS_UEL_IMPORT_FOLDER advanced option to easily import the custom components to new
models.
TIP You can also download custom components from Tekla Warehouse.
See also
Export custom components on page 67
Tips for sharing custom components on page 102
3. Click the Display variables button on the Custom component editor toolbar.
The Variables dialog box opens.
4. Click Add to create a new variable.
5. Enter Password in Name.
6. Enter the desired password in Formula.
7. Save the custom component.
8. Close the custom component editor.
Tekla Structures now asks for the password when you try to open the custom component in
the custom component editor.
See also
Manage custom components on page 67
This section provides more information about the various custom component settings, plane
types, variable types and variable functions.
Click the links below to find out more:
• Custom Component Wizard properties on page 70
• Default custom component dialog box properties on page 74
• Plane types on page 78
• Variables properties on page 83
• Functions in variable formulas on page 87
See also
Custom Component Wizard properties on page 70
Custom component types on page 10
See also
Custom Component Wizard properties on page 70
Position types on page 72
See also
Custom Component Wizard properties on page 70
Position types
Position type determines the location of the objects that the custom component creates,
relative to the main part. The options are:
See also
Custom Component Wizard properties on page 70
See also
Default dialog box properties of connections, details and seams on page 77
Default dialog box properties of parts on page 74
Left
Behind
Above
See also
Default custom component dialog box properties on page 74
See also
Default custom component dialog box properties on page 74
See also
Create a distance variable manually on page 26
Example: Detail component planes on page 81
Example: Connection component planes on page 81
Example: Seam component planes on page 82
Example: Part component planes on page 83
See also
Plane types on page 78
See also
Plane types on page 78
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.
See also
Value types on page 84
Variables in custom components on page 24
Value types
The value type determines what kind of value you can enter for the variable. Tekla Structures
has the following value types for variables:
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 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 Tools --> Options --> Options... --> Units and
decimals .
Angle A decimal number type for storing angles, stored to one decimal place, in
radians.
Material A data type associated with the material catalog. Use to select material
from the standard material dialog.
Profile A data type associated with the profile catalog. Use to select profile from
the standard profile dialog.
Bolt type For determining the bolt type (site/workshop) in the custom component
dialog box. Linked to the Bolt type property of bolts in Custom
component browser.
Stud size Data types linked to the bolt catalog. Stud size works with Stud standard.
Stud standard They have fixed naming: Px_size and Px_standard. Do not change
the fixed name.
To show values for these in the component’s dialog box, x must be the
same for both, for example, P9_size and P9_standard.
Distance list Use with options with several length values, such as bolt spacings.
Use space as a separator between the distances.
Bitmask For defining bolt assembly (nuts and washers) and parts with slotted holes.
Linked to the Bolt structure and Parts with slotted holes properties of
bolts in the Custom component browser.
The value is a five-digit series of ones and zeros. This relates to the check
boxes in the Bolt Properties dialog box. 1 means that a check box is
selected, 0 means that a check box is clear.
In the example below, the value of 10010 means that a bolt with a washer
and a nut is created in the bolt assembly.
See also
Variables properties on page 83
Variables in custom components on page 24
Arithmetic operators
You can use the following arithmetic operators in variable formulas:
See also
Functions in variable formulas on page 87
You can also use the following operators inside the if statement:
See also
Functions in variable formulas on page 87
Example: Determine the number of bolt rows on page 43
Reference functions
A reference function refers 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.
See also
Functions in variable formulas on page 87
Example: Use construction planes for determining the stiffener position on page 44
NOTE Enter a space at the end of each row in the ASCII file. Otherwise the information is
not read correctly.
Tekla Structures searches for the files as system files in the following order:
1. model
Example
The =fVF("Overlap.dat", "MET-202Z25", 5) function is in Formula in the
Variables dialog box.
The function gets the value 16.0 for profile MET-202Z25, from the Overlap.dat file.
See also
Functions in variable formulas on page 87
Mathematical functions
You can use the following mathematical functions in variable formulas:
side1
hypotenuse
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 rounded =round(P1, 0.1) returns
accuracy) off to the given accuracy 10.600
if P1 = 10.567
PI Returns the value of pi to 31 =PI returns
decimal places 3.1415926535897932384626433
832795
See also
Functions in variable formulas on page 87
See also
Functions in variable formulas on page 87
Example: Ceil and floor statistical functions on page 99
NOTE The units depend on the settings in Tools --> Options --> Options --> Units and
decimals .
You can use the following data type conversion functions in variable formulas:
See also
Functions in variable formulas on page 87
String operations
Strings must be inside quotation marks in variable formulas. For example, to define profile
size PL100*10 with two variables P2 = 100 and P3 = 10, enter the formula as follows:
="PL"+P2+"*"+P3
See also
Functions in variable formulas on page 87
See also
Functions in variable formulas on page 87
See also
Functions in variable formulas on page 87
Example: Market size function on page 100
Limitations
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.
Maximum skew angle to return is 45 degrees.
See also
Functions in variable formulas on page 87
Example: Skew and slope framing conditions on page 98
Column
Beam
Slope
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.
Skew
Slope
See also
Functions in variable formulas on page 87
Framing condition functions on page 97
You can use the ceil and floor statistical functions to round the value and then use the
rounded value as the number of beam posts:
• =ceil(P1/P2) returns 8
• =floor(P1/P2) returns 7
See also
Functions in variable formulas on page 87
Statistical functions on page 93
The first item in a row is a material grade followed by available plate thicknesses in
millimeters. The DEFAULT line lists the thicknesses available in all other material grades.
With the above data, the function =fMarketSize("S235JR",10,0) would return 12,
and =fMarketSize("S235JR",10,1) would return 16 (one size up).
See also
Market size function on page 96
This section provides useful hints and tips that help you create and use custom components
more efficiently.
Click the links below to find out more:
• Tips for creating custom components on page 101
• Tips for sharing custom components on page 102
• Existing custom components in a new Tekla Structures version on page 103
Contour plate
• Only model parts as accurately as you need.
If the only part information required is a part mark on the GA drawing and a quantity on
the materials list, create a simple bar or plate. If you later need to include the part in a
detailed view, simply re-model the part more accurately.
• Model embeds as custom parts and include them in components.
See also
Custom component tips on page 101
See also
Custom component tips on page 101
See also
Custom component tips on page 101
Custom component tips 103 Existing custom components in a new Tekla Structures
version
10 Disclaimer
© 2015 Tekla Corporation and its licensors. All rights reserved.
This Software Manual has been developed for use with the referenced Software. Use of the
Software, and use of this Software Manual are governed by a License Agreement. Among
other provisions, the License Agreement sets certain warranties for the Software and this
Manual, disclaims other warranties, limits recoverable damages, defines permitted uses of the
Software, and determines whether you are an authorized user of the Software. All
information set forth in this manual is provided with the warranty set forth in the License
Agreement. Please refer to the License Agreement for important obligations and applicable
limitations and restrictions on your rights. Tekla does not guarantee that the text is free of
technical inaccuracies or typographical errors. Tekla reserves the right to make changes and
additions to this manual due to changes in the software or otherwise.
In addition, this Software Manual is protected by copyright law and by international treaties.
Unauthorized reproduction, display, modification, or distribution of this Manual, or any
portion of it, may result in severe civil and criminal penalties, and will be prosecuted to the
full extent permitted by law.
Tekla, Tekla Structures, Tekla BIMsight, BIMsight, Tedds, Solve, Fastrak and Orion are either
registered trademarks or trademarks of Tekla Corporation in the European Union, the United
States, and/or other countries. More about Tekla trademarks: http://www.tekla.com/tekla-
trademarks. Trimble is a registered trademark or trademark of Trimble Navigation Limited in
the European Union, in the United States and/or other countries. More about Trimble
trademarks: http://www.trimble.com/trademarks.aspx. Other product and company names
mentioned in this Manual are or may be trademarks of their respective owners. By referring
to a third-party product or brand, Tekla does not intend to suggest an affiliation with or
endorsement by such third party and disclaims any such affiliation or endorsement, except
where otherwise expressly stated.
Portions of this software:
D-Cubed 2D DCM © 2010 Siemens Industry Software Limited. All rights reserved.
EPM toolkit © 1995-2004 EPM Technology a.s., Oslo, Norway. All rights reserved.
Open CASCADE Technology © 2001-2014 Open CASCADE SA. All rights reserved.
FLY SDK - CAD SDK © 2012 VisualIntegrity™. All rights reserved.
Teigha © 2003-2014 Open Design Alliance. All rights reserved.
A exploding........................................................................8
connections
acos....................................................................................... 95 custom connections..................................................10
adding construction planes
custom components to models............................. 15 creating........................................................................ 36
custom parts to models........................................... 16 in custom components.............................................36
images in custom component dialog box...........59 copying
tab in custom component dialog box..................60 property references................................................... 35
Applications and Components catalog cos......................................................................................... 95
exporting custom components.............................. 67 cosh.......................................................................................95
importing custom components..............................68 creating
arithmetic operators.........................................................88 custom components....................................................9
ASCII files as reference functions.................................90 distance variables automatically.......................... 30
asin........................................................................................95 distance variables manually................................... 26
atan....................................................................................... 95 parametric variables................................................. 32
atan2.....................................................................................95 reference distance variables...................................34
automatic distance variables Custom component browser.................................... 19,21
about automatic distance variables.....................30 copying property references...................................35
creating........................................................................ 30 linking properties to parametric variables......... 32
ave......................................................................................... 93 custom component dialog box file
opening.........................................................................59
custom component dialog box
B adding images............................................................ 59
moving items.............................................................. 59
binding objects to planes................................................26 organizing items........................................................ 59
binding to planes Custom Component Dialog Editor................................58
plane types.................................................................. 78 setting options........................................................... 59
boundary planes................................................................ 78 custom component editor.............................................. 19
closing...........................................................................23
opening.........................................................................19
C Custom Component Wizard
ceil......................................................................................... 93 Advanced tab properties..........................................71
center planes...................................................................... 78 creating custom components................................... 9
closing Position tab properties............................................. 71
custom component editor.......................................23 Position types..............................................................72
component planes.............................................................78 properties..................................................................... 70
connection examples................................................81 Type/Notes tab properties....................................... 70
detail examples.......................................................... 81 custom components
part examples............................................................. 83 about creating.............................................................. 7
seam examples........................................................... 82 about custom components........................................5
components adding to models................................................. 15,16
107
arithmetic operators.................................................88 statistical functions.................................................. 93
ASCII files as reference functions......................... 90 string operations........................................................94
automatic distance variables................................. 30 testing distance variables....................................... 27
connection dialog box properties......................... 77 tips............................................................................... 101
connections................................................................. 10 trigonometric functions...........................................95
construction planes...................................................36 types.............................................................................. 10
copying property references...................................35 value types of variables........................................... 84
creating...........................................................................9 variable formulas.......................................................87
creating construction planes..................................36 variables....................................................................... 24
creating distance variables automatically......... 30 variables properties...................................................83
creating distance variables manually.................. 26 custom parts
creating parametric variables................................ 32 adding to models....................................................... 16
creating reference distance variables..................34 modifying.....................................................................16
data type conversion functions............................. 93 moving.......................................................................... 16
default dialog box properties.................................74 cut planes............................................................................78
deleting distance variables..................................... 31
detail dialog box properties....................................77
details............................................................................10
dialog box files........................................................... 57
D
distance variables......................................................25 data type conversion functions.....................................93
examples of modifying.............................................38 deleting
exporting......................................................................67 distance variables...................................................... 31
formulas in variables................................................ 87 details
framing condition functions...................................97 custom details............................................................ 10
General tab properties............................................. 77 distance variables
hiding variables in dialog box................................57 about distance variables..........................................25
importing..................................................................... 68 creating manually......................................................26
inp files......................................................................... 57 deleting.........................................................................31
logical statements.....................................................88 testing...........................................................................27
managing..................................................................... 67 double...................................................................................93
market size function.................................................96
mathematical functions...........................................91
modifying dialog box................................................57 E
modifying settings.....................................................22 editors
parametric variables................................................. 31 Custom Component Dialog Editor........................ 58
part dialog box properties.......................................74 examples
parts...............................................................................10 adding custom connection to model................... 15
plane types.................................................................. 78 adding list with images in custom component
Position tab properties.............................................74 dialog box.................................................................... 61
preventing modifications of dialog box.............. 65 adding list with images in stiffener dialog box 61
property references................................................... 35 adding option to create object in custom
protecting with passwords..................................... 68 component...................................................................38
reference distance variables...................................33 binding objects to plane..........................................28
reference functions...................................................89 ceil and floor statistical functions........................99
saving............................................................................22 connection component planes...............................81
seam dialog box properties.....................................77 creating custom connection...................................12
seams.............................................................................10 creating distance variables.....................................28
settings......................................................................... 70 creating parametric variable.................................. 32
108
detail component planes......................................... 81 ASCII files as reference functions......................... 90
determining bolt group distance from beam ceil and floor statistical functions example...... 99
flange............................................................................ 39 data type conversion functions............................. 93
determining bolt size and bolt standard.............41 framing condition functions...................................97
determining number of bolt rows in custom if statements...............................................................88
component...................................................................43 in custom components.............................................87
dimming unavailable options in custom logical statements.....................................................88
component dialog box............................................. 64 market size function.................................................96
dimming unavailable options in stiffener dialog mathematical functions...........................................91
box................................................................................. 64 reference functions...................................................89
exploding components............................................... 8 skew and slope framing conditions example.....98
market size function...............................................100 statistical functions.................................................. 93
modifying custom component dialog box..........60 string operations........................................................94
modifying custom components............................. 38 trigonometric functions...........................................95
modifying dialog box of stiffener detail............. 60 framing condition functions.......................................... 97
moving variables in custom component dialog
box................................................................................. 63
moving variables in stiffener dialog box............ 63
part component planes............................................83
G
replacing sub-components in custom getat......................................................................................94
component...................................................................47 grid planes...........................................................................78
seam component planes..........................................82
skew and slope framing conditions......................98
using construction planes in custom component H
........................................................................................ 44 hiding
using Excel spreadsheets with custom variables in custom component dialog box....... 57
components.................................................................56 hypot.....................................................................................91
using properties file in custom component....... 49
using template attributes in custom components
........................................................................................ 52
using user-defined attributes in custom I
components.................................................................50 if statements...................................................................... 88
Excel imp........................................................................................ 93
using with custom components............................ 56 importing
exp......................................................................................... 91 custom components..................................................68
exploding inp files
components................................................................... 8 in custom components.............................................57
exporting int.......................................................................................... 93
custom components..................................................67
L
F length................................................................................... 94
fabs........................................................................................91 linking
fAD.........................................................................................97 parametric variables to object properties.......... 32
find........................................................................................ 94 ln............................................................................................ 91
floor.......................................................................................93 log..........................................................................................91
formulas logical statements.............................................................88
arithmetic operators.................................................88
109
M R
managing reference distance variables
custom components..................................................67 about reference distance variables...................... 33
market size function........................................................ 96 creating........................................................................ 34
example......................................................................100 reference functions...........................................................89
match....................................................................................94 renaming
mathematical functions.................................................. 91 tab in custom component dialog box..................60
max........................................................................................93 reverse.................................................................................. 94
mid........................................................................................ 94 round.....................................................................................91
min........................................................................................ 93
mod....................................................................................... 91
modifying
custom component settings................................... 22
S
moving saving
items in a custom component dialog box.......... 59 custom components..................................................22
seams
custom seams............................................................. 10
N setat...................................................................................... 94
setting
n!............................................................................................ 91 default options for Custom Component Dialog
Editor.............................................................................59
settings
O custom components..................................................70
sin.......................................................................................... 95
opening sinh........................................................................................95
custom component dialog box file.......................59 sqave.....................................................................................93
custom component editor.......................................19 sqrt........................................................................................ 91
outline planes.....................................................................78 sqsum....................................................................................93
statistical functions..........................................................93
string.....................................................................................93
P string operations............................................................... 94
parametric variables sum........................................................................................93
about parametric variables..................................... 31
creating........................................................................ 32
linking........................................................................... 32 T
parts tan......................................................................................... 95
custom parts............................................................... 10 tanh.......................................................................................95
passwords template attributes
protecting custom components............................ 68 in custom components.............................................89
PI............................................................................................ 91 testing
plane types..........................................................................78 distance variables......................................................27
pow........................................................................................91 tips
properties creating custom components.............................. 101
Custom Component Wizard....................................70 custom components............................................... 101
variables....................................................................... 83 custom components in new Tekla Structures
version........................................................................ 103
sharing custom components................................ 102
110
trigonometric functions.................................................. 95
types
custom components..................................................10
U
user-defined attributes
in custom components.............................................89
V
variables
creating distance variables automatically......... 30
creating distance variables manually.................. 26
creating parametric variables................................ 32
creating reference distance variables..................34
distance variables......................................................25
functions in formulas............................................... 87
hiding in custom component dialog box............ 57
in custom components.............................................24
linking parametric variables................................... 32
parametric variables................................................. 31
properties.....................................................................83
reference distance variables...................................33
value types...................................................................84
viewing......................................................................... 25
viewing
variables in custom components.......................... 25
vwu........................................................................................93
111
112