DRAW Reference Manual
Draw the Design
:
Define VIEW Contents Using Id Lists
: Selective Additions to the Id List
Selective Additions to the Id List
The Selection syntax can be used to generate Id Lists. For example:
ADD ALL EQUI FOR /SITE/99
REM ALL BRAN WITH (HBOR LT 25 AND TBOR LT 25) FOR
/ZONE/PIPES
ADD 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:
ADD RULE ALL ZONE WITH ( FUNC EQ 'PIPING')
REM 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 ADD and REMOVE 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.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.