Add variables to a custom component
Variables are the properties of a custom componentcomponent that the user creates and uses for creating model objects whose composition the user can modify as a group
. You can create variables 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
and use them to adapt custom components to changes in the model. Some of the variables appear in the custom component's dialog box, while others are hidden and are only used in calculations.
There are two types of variables:
Distance variablevariable used to bind the model object to the object planes or construction planes
A distance variable includes a value and a dependency.
: The distance between two planes, or between a point and a plane. A distance variable binds parts together, or works as a reference distancevariable used to pass on distance information in order to define properties
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.
: Controls all the other properties in a custom component, such as name, material grade, and bolt size. Parametric variables are also used in calculations.
Use distance variables to bind custom component objects to a plane , so that the component objects stay at a fixed distance even if the surrounding objects change. You can create distance variables manually or automatically.
You can bind the following objects to a plane:
reference points of parts (only custom component objects)
reference points of bolt groups
part and polygon cutcut that is defined by a polygon
reference points of reinforcing bars
reference points of reinforcement meshes and strands
You can decide which distance variables are shown in the custom component's dialog box. Show the variables if you want to edit their values in the dialog box. Hide the variables if you only use them to bind objects to a plane.
Use parametric variables to to set properties for any object the custom component creates. After creating the variable, you will be able to change the value directly in the custom component's dialog box.
You can also create formulas to calculate values. For example, you can calculate the position of a stiffenercomponent object that represents a structure that strengthens a steel beam or column
Stiffeners are usually plates.
Stiffeners are used to prevent web buckling at supports or concentrated loads.
relative to the beam length.
You can decide which parametric variables are shown in the custom component's dialog box. Show the variables if you want to edit their values in the dialog box. Hide the variables if you only use them in calculations.