Limits
- Last UpdatedDec 20, 2021
- 1 minute read
Valid values or ranges of values for real or integer User-Defined Attributes (UDAs) can be defined by creating User Defined Limit (ULIMIT) elements as members of a UDA. Multiple ULIMIT members can be created for a UDA.
The attributes of a ULIMIT element are:
UMIN - Minimum value
UMAX - Maximum value
The following example will create a Weight UDA and limit the input value to between 5kg and 50kg:
|
Example: |
|
|
NEW UDA /WEIG UTYP REAL |
|
|
UDNA 'WEIGHT' |
|
|
ABLEN 6 |
|
|
UUNI Mass |
|
|
RPTX 'Weight' |
|
|
ELE ADD STRU SUBS EQUI |
Create UDA Weight |
|
NEW ULIMIT |
Create a ULIMIT element beneath UDA |
|
UMIN 5kg |
Set a minimum value of 5kg |
|
UMAX 50kg |
Set a maximum value of 50kg |
|
DESC ‘Weight Limit’ |