|
Variables of models |
Scroll |
On inserting a model into an assembly as a component, all its external variables are placed on the Variables Panel into a group of variables of this component. They automatically get the names generated following the template: vN_name", where:
•N – a sequence number of a variable in the list of variables of the model containing the component,
•name – the name of external variable of the component.
The Value cells of the resultant variables contain the current values of the respective external variables passed from the source file. The Expression cells are empty.
Until the value of external variable of a component is set in the assembly manually, this variable retains a link to the source file of the component, i.e. after the change of the variable value in the source file, the component is rearranged in the assembly which contains it.
If the value or an expression for an external variable of a component was entered in the assembly, then the link of this variable to the source file is broken. On any changes in the source file of a component, such a variable retains the value set by it in the assembly containing the component.
If it is required to restore the link between the external variable of a component and the source file, from the context menu of this variable fetch the Value from Sourcecommand.
Numbering of components with variables
If an assembly contains multiple insertions of a component with external variables, then serial numbers may be added to the names of these insertions in the Tree. They are enclosed in parentheses and placed at the end of the name. In this case, components with identical variable values are numbered sequentially, starting from 1, while components with unique variable values within the assembly are not numbered. For example, the table shows the numbers that receive six inserts of detail Gasket with variables D and d, depending on the values of these variables. Please note that models with different parameters may receive the same number.
Values of variables |
Component name in the Tree |
||
D |
d |
||
30 |
25 |
Gasket (1) |
|
30 |
25 |
Gasket (2) |
|
20 |
15 |
Gasket (1) |
|
20 |
15 |
Gasket (2) |
|
26 |
20 |
Gasket |
|
18 |
14 |
Gasket |
|
If the source of inserts does not have external variables, all inserts are numbered sequentially, starting from 1.
See Also