Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ E3D Design

Representation Rules

  • Last UpdatedApr 27, 2023
  • 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 results in Nozzles being drawn according to style /S1, sequence 2 produces 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:
The Design element must have a name: identifiers, for example, CE, FIRST EQUI or 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 Rules (in the given order) have the effect of drawing all Branches in Style S2 except small bore Branches, which is not 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.

Draw 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 Draw is unable to find a relevant rule for a component the default style is used. The default style is:

Tube Off

Centreline On

Profileflag Off

Pline On

Drawing Level 0

Ffstyle SOLID

Ffcolour 1

Clstyle CHAINED

Clcolour 1

Other drawing styles Off

TitleResults for “How to create a CRG?”Also Available in