This
example shows how to create a parametric variable that modifies a sub-component on the basis
of a component attribute file.
-
On
the Custom component editor toolbar, click the Display variables
button.
The Variables dialog box opens.
-
Click
Add to create a new parametric variable.
-
In the Value type list, select Component attribute file.
Tekla Structures automatically adds the suffix _attrfile
in the
variable name. Do not delete the suffix.
-
In
the Formula box, enter the name of the component attribute file.
-
In the Name box, ensure that the variable has the same prefix as the variable that is
linked to the component name.
In this example, the prefix is
P1.
Note:
The component name and the component attribute file variables must
always have the same prefix, otherwise they do not work.
-
In the Label in dialog box box, enter Properties file.
-
In the Custom component browser, browse for the component attribute file property of the sub-component.
-
Right-click Attribute
file and select Add Equation.
-
Enter
P1_attrfile after the equal sign, and then press
Enter.
-
Save the custom component.
-
Close the custom component editor.
You can now modify the sub-component by using the
Properties file option in the custom component's dialog box.