Selective Additions to the Id List
- Last UpdatedApr 27, 2023
- 1 minute read
The Selection syntax can be used to generate Id Lists. For example:
DRAADD ALL EQUI FOR /SITE/99
DRAREM ALL BRAN WITH (HBOR LT 25 AND TBOR LT 25) FOR
/ZONE/PIPES
DRAADD ALL FROM !COLLECTION
where !COLLECTION is a local variable containing a list of Design element references.
In the examples, the Selection criteria are not stored in the database but expanded, and the resulting list of elements stored. The result can produce very long Id Lists. You can define criteria, which are stored in the database, and only expanded at the time of an UPDATE Design command using the RULE keyword. For example:
DRAADD RULE ALL ZONE WITH ( FUNC EQ 'PIPING')
DRAREM RULE ALL BRAN WITH (HBOR LT 25 AND TBOR LT 25)
You must be sure to use the RULE keyword in these cases, otherwise the criterion is evaluated when the Rule is defined, and very many ADDEs and REMEs can be created.
These forms of the DRAADD and DRAREMOVE commands set the CRIT attribute of the ADDE and REME elements. The CRIT attribute can also be set directly, for example:
NEW ADDE
CRIT ALL BRAN WITH (PSPE EQ /RF300)
In this case the RULE keyword is not required.