Valid Value Elements (VVALUE) Additional Attribute
- Last UpdatedFeb 06, 2023
- 2 minute read
VVALUE, owned by a DDAT can have a Valid Rule set stored in the attribute VALRULE. VALRULE is an expression attribute that can store an expression that evaluates to a logical true or false value. If the expression does not evaluate to a logical result, or if there are errors in the evaluation of the expression then the VALRULE will return FALSE when queried. The VVALUE element owns a Valid Value attribute (VALIDV) that is an expression returning a real, logical, text or reference value which supports the owning DDAT element. If the VALRULE is true or if it is a null expression then this VALIDV will be available to the DDAT.
VALRULEs are used by the system to control the choice of a Valid Value when property queries are made on the owning DDAT.
One example of a particular scenario shown below of a DDAT element owning four VVALUE elements with VALIDV and VALRULEs to control the size of a stiffener which changes in size due to the length of the stiffener:
|
VValue |
VVal expression |
VALRULE expression |
|---|---|---|
|
VVALUE 1 |
( ID /ANG35x35x15 ) |
( LDPR LENG le 1800 ) |
|
VVALUE 2 |
( ID /ANG40x40x15 ) |
( LDPR LENG gt 1800 and LDPR LENG le 2400 ) |
|
VVALUE 3 |
( ID /ANG45x45x18 ) |
( LDPR LENG gt 2400 and LDPR LENG le 3000 ) |
|
VVALUE 4 |
( ID /ANG50x50x18 ) |
( LDPR LENG gt 3000 ) |
The current set of VALIDValues available for the owning DDAT are the set whose VALRULes either are unset, or evaluate to TRUE. Those that are not available are those whose VALRULes either evaluate to FALSE, or whose evaluations generate errors.