Hello!

Did you know that logged in users can see a lot more content?

Set object properties using parametric variables

Last updated March 12, 2019 by Tekla User Assistance tekla.documentation@trimble.com

Software version: 
2019

Set object properties using parametric variables

Set object properties using parametric variables

Use parametric variables to set basic properties (such as name, material, profile, position numberidentifier that is assigned to all similar parts, assemblies, cast units, or reinforcement

Position number consists of a prefix, separator, and running number. The prefix is part of the position number, identifying a numbering series. The running number is part of the position number, and is the assigned number in the numbering series, based on the start number. The separator is an optional character, such as a slash, that separates the prefix and the running number.

In Tekla Structures, the position numbers assigned in the numbering are shown in marks and templates, for example.

In the US, the term piece mark or ship mark is used to refer to a position number.

, and so on) for any object the custom componentcomponent that the user creates and uses for creating model objects whose composition the user can modify as a group

creates. Parametric variables automatically get the prefix P (parameter), which is shown in the Variables dialog box.

In the following example, we will create a variable that sets all welds in a custom component to a given size. After creating the variable, we will be able to change the weld size directly in the custom component's dialog box.

  1. In the custom component editortool that is used for modifying component that is created by a custom component, and for creating dependencies between component objects and other model objects

    , click the Display variables button.


    The Variables dialog box opens.

  2. Click Add to create a new parametric variablevariable used to define a value for a parametric property

    A parametric variable does not include a dependency.

    For example, name, material grade, and bolt size are parametric variables.

    .
  3. In the Name box, enter a name for the variable.

    You can also use the default name, such as P1. In our example, we will enter Weldsize as the name of the variable.

  4. In the Value type list, select a suitable value type.

    The type determines what kind of values can be used with this variable. In our example, we will select Length , which is suitable for lengths and distances.

  5. In the Formula box, enter a value or variable formula.

    In our example, we will leave this box empty.

  6. In the Label in dialog box box, enter a descriptive name for the parametric variable.

    This label will be shown in the custom component's dialog box. In our example, we will enter Weld size as the label.

  7. In the Visibility list, define whether the variable will be visible in the custom component's dialog box.

    Hide the variable if you only use it in calculations. Show the variable if you want to be able to edit the value in the custom component's dialog box. In our example, we will select Show.

  8. Click Close.

    In our example, we have now created a parametric variable with the following settings:

  9. In the Custom component browser , link the variable to the desired object propertysingle characteristic associated with an object type

    For example, profile and material are object properties.

    .

    1. Select the property.

      In our example, we will select the Size above line property of the uppermost weld.

    2. Right-click the property and select Add Equation.

    3. After the equal sign, enter the name of the parametric variable.

      In our example, we will enter Weldsize here.

      You can now modify the Size above line property by using the Weld size box in the custom component's dialog box.

  10. Repeat step 9 for any other property of the same type, if needed.

    In our example, we will repeat the procedure for the other welds as well, so that they will all be linked to the Weld size box in the custom component's dialog box.

  11. Save the custom component.

    The variable is now displayed in the custom component's dialog box, unless you set the visibility of the variable to Hide in step 7.

    If we change the weld size value now, the size of all welds within the custom component will change accordingly.

Quick feedback

The feedback you give here is not visible to other users. We use your comments to improve our content.
We use this to prevent automated spam submissions.
Content rating: 
No votes yet