Examples of a variable formula: Rebar set modifiers in custom components

Tekla Structures
2021
Tekla Structures

Examples of a variable formula: Rebar set modifiers in custom components

You can use rebar set modifiers in custom components. You can define the rebar set bar and modifier properties using parametric variables.

For each modifier property that you want to parametrize, the corresponding Apply property is also needed. By using the Apply property you can override an existing property value with an empty value. Clearing an existing value is not possible without the Apply property.

Example: Define the class and size of rebar set bars using a property modifier

This example shows how to use a rebar set property modifier for defining the class and size of certain rebar set bars in a custom component. You will define the class and size using parametric variables and modifier-specific Apply properties.

The parametric variable for class will be defined so that if the class is set to 0, the class value is not applied, but the original class of the rebar set is used.

  1. In the model, select a previously created custom component that contains a rebar set and a property modifier.
    Note:

    Custom parts do not have a component symbol in the model.

    To select custom components, ensure that the Select components selection switch is active.

  2. Right-click and select Edit Custom Component.
  3. On the Custom component editor toolbar, click the Display variables button .

    The Variables dialog box opens.

  4. In the Variables dialog box, create and define parametric variables as follows:
    1. Click Add three times to create three new parametric variables.

      The variable names will be P1, P2, and P3.

    2. Modify the variable P1 for class number input as follows:
      • In the Value type list, select Number.
      • In the Label in dialog box box, enter Class.
    3. Modify the variable P2 for Apply property control as follows:
      • In the Formula box, enter =if (P1==0) then 0 else 1 endif.

        This means that if P1 (Class) is set to 0, the class property is not applied when you use the custom component. If P1 is set to any other value, then the class property is applied.

      • In the Value type list, select Yes/No.
      • In the Visibility list, select Hide.

        This means that the variable P2 will not be visible in the custom component dialog box.

      • In the Label in dialog box box, enter Apply class.
    4. Modify the variable P3 for bar size input as follows:
      • In the Name box, change the name to P3_size.
      • In the Value type list, select Rebar size.
      • In the Label in dialog box box, enter Bar size.
      • In the Formula box, replace zero with a valid bar size value.

  5. In the Custom component browser, link the parametric variables to the property modifier properties:
    1. Browse for Component objects > Rebar property modifier > General properties.
    2. Right-click Class, select Add Equation, enter P1 after the equal sign (=), and then press Enter.

      Similarly, link the other variables and properties as follows:

      • Apply class property = P2
      • Size = P3_size
      • Apply size property = 1

  6. Save and close the modified custom component.

Now you have the following properties available in the custom component's dialog box and you can modify the class and size of those rebar set bars that are affected by the property modifier:

You can use the component in locations similar to where the component was originally created. This component is not adaptive and Tekla Structures does not adjust the component dimensions to suit any changes in the model. To make the custom component adaptive, you need to modify it in the custom component editor.

Example: Create and modify rebar hooks using an end detail modifier

This example shows how to use a rebar set end detail modifier for creating hooks at certain rebar set bar ends in a custom component. You will define the hook properties using parametric variables and modifier-specific Apply properties.

  1. In the model, select a previously created custom component that contains a rebar set and an end detail modifier.
    Note:

    Custom parts do not have a component symbol in the model.

    To select custom components, ensure that the Select components selection switch is active.

  2. Right-click and select Edit Custom Component.
  3. On the Custom component editor toolbar, click the Display variables button .

    The Variables dialog box opens.

  4. In the Variables dialog box, create and define parametric variables as follows:
    1. Click Add four times to create four new parametric variables.

      The variable names will be P1, P2, P3, and P4.

    2. Modify the variable P1 for hook type input as follows:
      • In the Value type list, select Rebar hook type.
      • In the Label in dialog box box, enter Hook type.
      • In the Formula box, enter 4 for a custom hook.

        The different hook types are identified with numbers: 1 = 90 degree hook, 2 = 135 degree hook, 3 = 180 degree hook, 4 = custom hook.

    3. Modify the variable P2 for hook angle input as follows:
      • In the Value type list, select Number.

        Note that although Angle is available as a value type, the Number option must be used for the hook angle.

      • In the Label in dialog box box, enter Custom hook angle.
    4. Modify the variable P3 for hook length input as follows:
      • In the Value type list, select Number.
      • In the Label in dialog box box, enter Custom hook length.
    5. Modify the variable P4 for hook radius input as follows:
      • In the Value type list, select Number.
      • In the Label in dialog box box, enter Custom hook radius.

  5. In the Custom component browser, link the parametric variables to the end detail modifier properties:
    1. Browse for Component objects > Rebar end detail modifier > General properties.
    2. Right-click Hook angle, select Add Equation, enter P2 after the equal sign (=), and then press Enter.

      Similarly, link the other variables and properties as follows:

      • Hook radius = P4
      • Rebar hook type = P1
      • Apply hook angle property = 1
      • Hook length = P3
      • Apply hook radius property = 1
      • Apply hook length property = 1
      • Apply hook type property = 1

  6. Save and close the modified custom component.

Now you have the following properties available in the custom component's dialog box and you can modify the hooks of those rebar set bars that are affected by the end detail modifier:

You can use the component in locations similar to where the component was originally created. This component is not adaptive and Tekla Structures does not adjust the component dimensions to suit any changes in the model. To make the custom component adaptive, you need to modify it in the custom component editor.

Was this helpful?
Föregående
Nästa