Notes on Element Rule Syntax
- Last UpdatedMay 26, 2023
- 3 minute read
The syntax for elements and their attributes discussed here applies to the items and expressions in the
-
Obstruction, Check and Exclude lists on the Clash Manager - Clash Set Data window
-
Tracking Selection Rules entered at the Gtype/Tracking tab of the Clash Manager Configuration window.
The syntax can be:
|
<elementName> |
||||
|
OR |
||||
|
<gtype> ::= BRAN|SUBE|STRU|FRMW|SUBS|PIPE|EQUI|SITE|REST|HVAC|ZONE |
||||
|
OR |
||||
|
<expression> [and <expression>]... |
||||
|
where: |
||||
|
<expression> ::= <expressionStyleA> | <expressionStyleB> |
||||
|
where: |
||||
|
<expresionStyleA>::= <attribute> [OF <gtype>|<eleName>] [NOT] <op> <value> |
||||
|
<expresionStyleB>::= <attribute> [NOT] <op> <value> [OF <gtype>| <eleName>] |
||||
|
where: |
||||
|
<attribute> ::= AVEVA E3D Design Element Attribute or UDA |
||||
|
<op> ::= for example | ne | gt | lt | = | != | <> | > | < | like |
||||
|
<value> ::= [<quote>] string [<quote>] | numeric | <inches> | <wildcard> |
||||
|
where: |
||||
|
<quote> ::= <singleQuote:‘> | <verticalBar:|> |
||||
|
<inches> ::= numeric" |
||||
|
<wildcard> ::= regular expression |
||||
OR
<discardwildcard> ::= !<wildcard>
where:
<wildcard> ::= regular expression
Note:
For Regular Expression syntax, refer to Notes on Wildcards.
Strings must be quoted if they would otherwise be confused with a keyword for example
a <GTYPE> or <OP> etc
The <discardwildcard>’s are applied after all other expressions, they have the effect
of discarding or removing items from the list.
Examples
|
name of zone like ^/STRU |
returns ZONE names beginning "/STRU" |
|
site |
returns all SITES |
|
zone |
returns all ZONEs |
|
bore of pipe gt 100 |
returns PIPEs with bore > 100mm |
|
bore gt 100 of pipe |
returns PIPEs with bore > 100mm |
|
bore gt 4" of pipe |
returns PIPEs with bore > 4 inches |
|
bore gt 100 and :pdmsarea like 15A of pipe |
returns PIPEs with bore > 100mm and :PDMSAREA contains 15A |
|
bore gt 100 and :pdmsarea = 15A of pipe and name of site like ^/STRU |
returns PIPEs with bore > 100mm and :PDMSAREA equals 15A which are under a SITE whose name begins "/STRU" |
|
name of pipe like 'PIPE' |
syntax error if 'PIPE' is not quoted (would otherwise be an unexpected GTYPE) |
|
name of pipe like /PIPE |
/PIPE does not need to be quoted, it will not be confused with a GTYPE |
|
name of pipe not like 'PIPE' |
returns all pipes whose name does not contain 'PIPE' |
|
!PIPE |
removes from the resulting list, any name containing the text 'PIPE' |
|
Note: |
|
|
name of bblock like .* and name of blevel like ACC |
returns all blevels whose names contain "ACC" below all bblocks |
|
Note: |
|
|
Note: |
|
|
Note: |
|
The List may only contain consistent element types. For example a SITE may not be added to the List if it already contains ZONES. Note however that items below the level defined for Grouping Clashes will be elevated to that Group Level. For example if clashes in a pipe are configured to be grouped at the PIPE level, any expression which would return a BRANch or a component will if fact return a (single) PIPE. The Evaluate option may be used on any of the Obstruction/Exclude or Check lists to display what would be used when the Clash Set is run.
Default units are mm, inches may be used but the inch symbol, a double quote (") MUST be specified. An alphanumeric string ending with a double quote must itself be quoted if it is to be evaluated against a string. For example: :mystringatt = |4"| of pipe.