This example shows how to create two parametric variables that determine the bolt size and bolt standard.
-
On
the Custom component editor toolbar, click the Display variables
button.
The Variables dialog box opens.
- Click Add twice to create two new parametric variables.
-
Modify the first variable as follows:
-
In the Value type list, select Bolt size.
Tekla Structures automatically adds the suffix
_diameterto the name of the variables. Do not delete the suffix. -
In the Label in dialog box box, enter Bolt Size.
-
-
Modify the second variable as follows:
-
In the Value type list, select Bolt standard.
Tekla Structures automatically adds the suffix
_screwdinto the name of the variable. Do not delete the suffix. -
In the Name box, change the prefix of the second variable so that the prefixes
for the two variables are the same.
In this example, the prefix is P1.
Note:The bolt size and bolt standard variables must always have the same prefix, otherwise they do not work.
- In the Label in dialog box box, enter Bolt Standard.
-
In the Value type list, select Bolt standard.
-
Link the parametric variables to the bolt group properties:
- In the Custom component browser, browse for the size property of the component object.
- Right-click Size and select Add Equation.
- Enter P1_diameter after the equal sign, and then press Enter.
- Right-click Bolt standard and select Add Equation.
-
Enter
P1_screwdin after the equal sign, and then
press Enter.
- Save the custom component.
- Close the custom component editor.
You can now determine the bolt size and bolt standard for the custom component in the custom component's dialog box.