Example of a variable formula: Modify a sub-component by using a component attribute file

Tekla Structures
2021
Tekla Structures

Example of a variable formula: Modify a sub-component by using a component attribute file

This example shows how to create a parametric variable that modifies a sub-component on the basis of a component attribute file.

  1. On the Custom component editor toolbar, click the Display variables button.

    The Variables dialog box opens.

  2. Click Add to create a new parametric variable.
  3. 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.

  4. In the Formula box, enter the name of the component attribute file.
  5. 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.

  6. In the Label in dialog box box, enter Properties file.

  7. In the Custom component browser, browse for the component attribute file property of the sub-component.
  8. Right-click Attribute file and select Add Equation.
  9. Enter P1_attrfile after the equal sign, and then press Enter.

  10. Save the custom component.
  11. 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.

Oliko tästä apua?
Edellinen
Seuraava