Set Attribute Rules
- Last UpdatedNov 13, 2025
- 1 minute read
Lets you set a rule for the value of a single named attribute. The rule may contain any valid expression of the type applicable to the attribute setting.
Examples |
|
|---|---|
|
RULE SET ZLEN (XLEN + YLEN) |
|
|
Sets rule that ZLEN of the current element is the sum of its XLEN and YLEN values. The ZLEN will be updated to reflect changes to XLEN or YLEN only when the rule is verified or executed (that is, it is a static rule). |
|
|
RULE SET XLEN DYNAM (YLEN + 2) |
|
|
XLEN will be updated automatically whenever YLEN is changed. |
|
|
RULE SET POS (N300 E400 U500) ON ALL BOX FOR /PUMP1 |
|
|
Sets rule for position attribute for all boxes in /PUMP1 |
|
|
RULE SET POS DYNAM (N100 FROM /BOX2 ) |
|
|
If BOX2 moves, the element with this attribute rule will move with it automatically. (Note space between last character of element name and closing parenthesis.) |
|
Command Syntax
>- RULE SET - attribute_name -+- STAtic --.
| |
|- DYNamic -|
| |
‘-----------+- <expre> -+- ON -.
| |
‘------+-.
|
.------’
|
‘-+- <selatt> -.
| |
‘------------+->
Querying
|
Q ATT |
Displays all attribute values and all rules for the current element. |
|---|---|
|
Q RULES |
Displays all rules for current element. |
|
Q RUL OF XLEN |
Displays rule for XLEN attribute of current element. |