Representation Rules
- Last UpdatedNov 27, 2025
- 2 minute read
The Representation Ruleset owns a series of Representation Rules, each of which contains a reference to a different Representation Style. A Ruleset can therefore be used to produce several graphical representations of the same VIEW. An example of the commands for setting up a Ruleset is:
|
NEW RRST /RSET1 |
- create Ruleset |
|
NEW RRUL /R11 |
- create Rule |
|
USE /S2 FOR crit |
- set Style reference (STYF). /S2 must already exist; crit = Design element name or selection criteria |
When more than one Rule is created, the order of the command sequence is important. Consider the command sequences:
|
Sequence 1 |
Sequence 2 |
|
NEW RRUL /R1 |
NEW RRUL /R1 |
|
USE /S2 FOR ALL EQUIP |
USE /S2 FOR ALL NOZZ |
|
NEW RRUL /R2 |
NEW RRUL /R2 |
|
USE /S2 FOR ALL NOZZ |
USE /S1 FOR ALL EQUIP |
Sequence 1 would result in Nozzles being drawn according to style /S1, sequence 2 would give Nozzles in style /S2.
You can also assign a style reference to an individual named Design element or a series of named elements, for example:
USE /S2 FOR /PUMP1-1 /VESS1
Note: That the Design element must have a name: identifiers such as CE, FIRST EQUI, STRU 4 cannot be used.
Representation Rules can reference IDLIsts, using expressions if required. For example:
USE /STYLE1 FOR /LIST24 /LIST25
USE /STYLE2 FOR ALL IDLISTS WITH ( FUNC EQ 'STEAM' )
Once a Rule has been created, and a style set, the selection criteria can be changed without specifying the style by giving the command:
USE FOR crit
|
Example: |
|
USE FOR ALL BRAN WITH ( HBORE LE 80 ) |
Alternatively, the CRIT attribute can be set explicitly:
|
Example: |
|
CRIT ALL BRAN WITH ( HBORE LE 80 ) |
You can set up a rule to omit elements from a selection. For example, the following Rules (in the given order) will have the effect of drawing all Branches in Style S2 except small bore Branches, which will not be drawn at all:
NEW RRUL /SMALLBORE
OMIT ALL BRAN WITH ( HBORE LE 80 AND TBORE LT 30 )
NEW RRUL /BRANCHES
USE /S2 FOR ALL BRAN
Named elements can also be omitted:
|
Example: |
|
OMIT /EQUIP99 |
The OMIT command sets the OMITFG attribute of the Rule, which automatically unsets the STYF of the Rule.
Draft determines the style to use from a particular element by scanning through the list of RRULs (in database order) until a selection criteria is matched. If Draft is unable to find a relevant rule for a component the default style will be used. This is:
-
Tube Off
-
Centreline On
-
Profile Off
-
Pline On
-
Drawing Level 0
-
Ffstyle SOLID
-
Ffcolour 1
-
Clstyle CHAINED
-
Clcolour 1
-
Other drawing styles Off