Create Rules
- Last UpdatedMay 02, 2022
- 2 minute read
Create rules have a type expression that defines the 3D object type that is to be created (during Build operations), or that is needed to match (during Compare operations). During Build operations the object will be created at the appropriate level in the database hierarchy.
The type expression must evaluate to a legal 3D database object type. This can be an explicit word, for example: EQUI, or a more complex expression calculated from schematic attribute settings. As in the rule group condition, the current source schematic object is referred to as source and its attributes are identified using the "OF" syntax, for example, GTYP of source. More powerful expressions can be created using the syntax described below.
In the situation where more than one 3D object type can be acceptable for comparison purposes, the Create type expression uses the special Variant function. This defines a list of all acceptable matching types, for example, Variant (TEE, OLET, FLAN). Each argument of the Variant function is an expression as defined above. When building, the first type listed in the Variant function will be used.
When the 3D object being created is to be selected from a specification, the questions and answers that inform the selection process are listed in Selector rules owned by the Create rule. Each Selector rule has a Question, for example: STYP, and a value based on a schematic attribute, for example: SCSTYP of source.
Note:
Quotes are not required in selector rules as Integrator will automatically include
quotes for text selectors, for example: a rule with SCSTYP OF source operating on an SCVALV with SCSTYP PTFE-LINED will generate Choose with STYP |PTFE-LINED|.