Examples of Rules and their Syntax
- Last UpdatedMay 26, 2023
- 2 minute read
Rule evaluates true if NAME of element 1 is same as element 2
|
Element |
Attribute |
Value |
|
@element-1 |
NAME |
@element-2 |
Rule evaluates true if the name of either element contains the text ‘TEMP’
|
Element |
Attribute |
Value |
|
@element-1 |
NAME |
TEMP |
Rule evaluates true if name of either element begins with the text ‘/S/TEMP’
|
Element |
Attribute |
Value |
|
@element-1 |
NAME |
^/S/TEMP |
Rule evaluates true if name of either element does not begin with the text ‘/S/TEMP’
|
Element |
Attribute |
Value |
|
@element-1 |
NAME |
!^/S/TEMP |
Rule evaluates true if name of neither element begins with the text ‘/S/TEMP’
|
Element |
Attribute |
Value |
|
@element-1 |
NAME |
!^/S/TEMP |
|
@element-2 |
NAME |
!^/S?TEMP |
Rule evaluates true if either element is PIPING and type of clash is TOUching
|
Element |
Attribute |
Value |
|
@element-1 |
@discipline |
PIPING |
|
@general |
@type |
TOU |
Rule evaluates true if one element is PIPING, the other STRUCTURAL, the name of the STRUCTURAL item contains the text TEMP and type of clash is TOUching
|
Element |
Attribute |
Value |
|
@element-1 |
@discipline |
PIPING |
|
@general |
@type |
TOU |
|
@element-2 |
@discipline |
STRUCTURAL |
|
@element-2 |
NAME |
TEMP |
Rule evaluates true if both elements are STRUCTURAL, the GTYPE of a clashing element is PANEL and the type of clash is TOUching
|
Element |
Attribute |
Value |
|
@element-1 |
@discipline |
STRUCTURAL |
|
@general |
@type |
TOU |
|
@element-2 |
@discipline |
STRUCTURAL |
|
@element-1 |
@gtype |
PANE |
Rule evaluates true if both elements have values of UDA :LSIZE that meet their respective conditions.
|
Element |
Attribute |
Value |
|
@element-1 |
:LSIZE |
> 1500 |
|
@element-2 |
:LSIZE |
< 100 |
Rule evaluates true for a clash between a nozzle and a flange as second last member of a connected branch.
|
Element |
Attribute |
Value |
|
@element-1 |
@gtype |
FLAN |
|
@element-1 |
tref of owner |
@ef-of-element-2 |
|
@element-1 |
sequence |
@last-1 |
|
@element-2 |
cref |
@ref-of-owner-ele-1 |
|
@element-2 |
@gtype |
NOZZ |
Rule evaluates true for a clash between a nozzle and a flange as second member of a connected branch.
|
Element |
Attribute |
Value |
|
@element-1 |
@gtype |
FLAN |
|
@element-1 |
href of owner |
@ef-of-element-2 |
|
@element-1 |
sequence |
@first+1 |
|
@element-2 |
cref |
@ref-of-owner-ele-1 |
|
@element-2 |
@gtype |
NOZZ |