This
example shows how to create a parametric variable that replaces sub-components with other
sub-components.
-
On
the Custom component editor toolbar, click the Display variables
button.
The Variables dialog box opens.
-
Click
Add to create a new parametric variable.
-
Modify the variable as follows:
-
In the Value type list, select Component name.
Tekla Structures automatically adds the suffix _name
in
the variable name. Do not delete the suffix.
-
In the Formula box, enter the name of the sub-component.
-
In the Label in dialog box box, enter Cast-in plate.
-
Link the variable to the
Name property of both sub-components:
-
In the Custom component browser, browse for the Name attribute of the first
sub-component.
-
Right-click Name and select Add Equation.
-
Enter
P1_name after the equals sign.
-
Repeat steps 4b–4c for the other sub-component.
-
Save the custom component.
-
Close the custom component editor.
You can now change the sub-components by using the
Cast-in-plate option in the custom component's dialog box.