Our 3D CAD supplier models have been moved to 3Dfindit.com, the new visual search engine for 3D CAD, CAE & BIM models.
You can log in there with your existing account of this site.
The content remains free of charge.
6.8.6.
Value ranges
6.8.6.4. Type "Value range variable" in combination with IF
condition (attribute algorithm)
|
|
---|---|
Prev | Next |
When using value range variables you can also use an Attribute algorithm in addition. A frequent application is the use of an IF condition, to make the value range conditional upon the value of a certain variable.
In the following example an attribute algorithm has been used for the variable L1:[60]
IF( FORM1 .EQ. 1) THEN L1 ='100,[1:6000]' ELSE L1 ='100,[1:2000]' ENDIF
If the variable FORM1 has the value 1, then the value range of L1 is from 1 to 6000 with a default value of 100, otherwise the value range is from 1 to 2000.
The figure shows the selected variable "L1" with Status "Attribute algorithm" in the Variable Manager.[61]
The variable FORM1 is a Variable with fixed values. Here in the example it has the value 1 or 2. On this variable, the condition is focused.
The variable L is defined as Value range variable. It references the variable L1, which contains the attribute algorithm (see above).