Re-colour Drawing Items Based on their Dataset Attributes - Full Example
- Last UpdatedMar 14, 2024
- 2 minute read
It is required that all pipes with a pressure value of 200 are changed to a specified colour.
The project includes a Dataset called "PRESSURE", which is assigned to pipes in the project (Item Group = Pipes), for example, all pipes may be assigned a pressure value as a property. Datasets are defined using the User Defined Attributes - Dataset Sub-Category of the AVEVA P&ID Project Administration program:

When pipes are labelled, they can be assigned a pressure value by entering it into their Properties dialogs:

In the AVEVA Colouring Utility, access the Colouring Criteria dialog from Settings, and set the criteria as follows:
-
Select "Pipe" from the Item Name field.
-
Select "dataset name" from the list in the Property Name field.
-
Select "Equals" in the Condition field.
-
Enter "PRESSURE" in the Value field.
-
In the next row, select "And" from the Join Condition field.
-
Select "dataset value" from the list in the Property Name field.
-
Select "Equals" in the Condition field.
-
Enter "200" in the Value field.
-
Click Pick Colour and choose the colour that pipes are to be changed to.
for example:

Click Add Rule. The rule is added to the Rule set window as follows:

Save the rule settings and close the dialog by clicking Save.
On the AVEVA Colouring Utility dialog, select Apply. All drawings selected on the AVEVA Colouring Utility dialog are then copied to the specified output folder and re-coloured.
For example (note the pipes in the darker blue colour):
