|
Variables of component fixation and exclusion of objects from calculation |
Scroll |
Variables of component fixation
The variable of the Fix Component parameter is created automatically for each component of a model. Its value shows if component is fixed or not. For more details on fixing components...
A variable may have the value either 0 or 1:
•0 – the component is not fixed;
•1 – component is fixed.
If the status of component fixation will change in the future, the value of this variable will change automatically. That might happen:
•in the process of inserting the component,
•after invoking Enable Fixation
or Unfix
,
•after changing the value of a property, created from the parameter variable Fix Component.
If necessary, you can manage the variable value on the Variables toolbar (see below). In this case, the above described methods for changing the state of component fixation are unavailable.
Variables for excluding objects from calculation
A variable of the Exclude from Calculation parameter is created automatically for various elements of a model and components of the first level. Its value shows if object is included into calculation or not. For more details on excluding objects from calculation...
A variable may have the value either 0 or 1:
•0 – the object is included into calculation; this value is assigned to a variable on its creation.
•1 – the object is excluded from calculation.
The value of a variable changes automatically in the following cases:
•after clicking the Included in calculation
or Excluded from calculation
icon in the Model design tree,
•after invoking the Exclude from Calculation or Include into Calculation command of an object's right-click menu in the Design tree or in the graphic region of a model,
•after changing the value of a property created from the variable parameter Exclude from calculation.
If necessary, you can manage the variable value on the Variables toolbar (see below). In this case, the above described methods of exclusion of an object from calculation and its inclusion into calculation are unavailable.
Management of the values of variables on the Variables toolbar
You can manage the change of the parameter variable Fix Component or Exclude from Calculation on the Variables toolbar. To do this in the Expression cell, specify the method for obtaining the value – either an expression containing a variable, or a constant (not a number), or variable reference . In this case, all the other methods of changing the state of an object become unavailable.
|
If an object is to be excluded from calculation when meeting a certain condition, then for setting the variable value a logical expression is used. |
In order to just change the current variable value enter a numerical value into the Expression cell. In this case, all the methods of changing the state of an object remain available.
While filling the Expression cell, note the following specifics.
•To ensure the variable gets the value 1, the Expression cell must contain either a number not equal to zero, a constant, a reference to a variable with a non-zero value, or an expression whose calculation result is a number not equal to zero. If the result of calculation, the value obtained by reference, or the entered number equals zero, then the variable gets the value 0.
•A set expression, a constant, or a reference is saved in the Expression cell, while the entered number is replaced by the number 1.