2.1.2 Rule Library
In the rule library, you can define rules that are to be valid for pipelines, pipeline segments and item groups.
A rule consists of the following aspects:
· Name of the rule
· Priority
The numbers in front of the rule names define the priority with which the rules are to be applied.
· Relation between two item groups (objects)
· Actions that are to be carried out for specified attributes of items of the item group.
For the evaluation, the pin always takes priority over the device; i.e. if an attribute does not exist at a pin, the attribute at the device is taken into account.
The rules defined for the relation between two items (item groups) are applied to every change of an object in the P&I diagram.
The following changes are taken into account:
· Changes in the pipeline network (Adding, deleting, associating objects etc.)
· Changes to an attribute of connected objects.
Changes may include aspects such as changing the nominal size of a pipeline from 4” to 6”, changing the type of a connected device or pin, or reversing the flow direction at a pin.
If the same attribute is to be copied from two different source objects into the same target object by two different rules with the same priority, no attribute values are copied. Instead, a conflict is displayed.
Definition of a new rule
1. Select the folder in which the new rule is to be defined. The following options are available:
· Pipeline/Segment to inline items; in this section, you can define further rules for the piping.
· Item to Item
2. Click to create a new rule.
The name of the rule is automatically created; it is composed of the two objects or item groups to which the rule is to be applicable.
3. In the Rule Conditions section, define to which objects or item groups the rule is to be applicable.
4. Click in the Actions section to create a new row for the definition of the rules.
5. Define which actions are to be carried out for specific attributes.
6. In the Rule library section, define the priority that is to be assigned to the rule via the arrow keys
or the shortcut menu of the rule. The priority of the rule is displayed in the squared bracket [ ] in front of the rule name.