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

AVEVA™ P&ID

DrawTempClonePipeLines Macro

  • Last UpdatedJan 30, 2025
  • 2 minute read

The macro draws temporary lines on top of existing pipeline segments with a designated layer and colour set in a mapping file, using an attribute set in each of the pipelines to find and update them.

The purpose of this feature is to change the presentation of lines after the drawing has been exported to PDF format.

Note:
The macro can be executed manually by the user with a command defined in the lisp routine: AVVMAC_NEWCLPIP.

A template of the mapping file, used to define presentation attributes for the cloned pipe segments, can be created using the command AVVMAC_CRCLMAP.

The macro creates the template data in the target file.

The example displays a mapping file which has been configured by the project administrator.

*Support File for - AVEVA P&ID - , Created date: 13/03/2024 12:26:25

* Dataset Name | Attribute Name | Attribute Value | Layer | Colour | Width | Update

* Use command: [AVVMAC_NEWCLPIP] to create clones pipes base on mapping information.* Use command: [AVVMACLONEPIPES] to create clones pipes base on mapping information.

DS_BaseConditions|Pressure|150|MINPRESSURE|1|5|YES

DS_BaseConditions|Pressure|175|DESPRESSURE|3|5|YES

DS_BaseConditions|Pressure|200|MAXPRESSURE|6|5|YES

Using the mapping file, the configuration application creates a new line segment drawing on top of pipe segments that contain a dataset called DS_BaseConditions, with an attribute named Pressure and a set value of 150.

The macro creates the lines with a layer named: MINPRESSURE, DESPRESSURE or MAXPRESSURE. depending on the values set against the attribute for each of the processed piping segments.

When the drawing is exported to PDF, the user must delete the temporary lines created in the target drawing using the command: AVVMAC_DELCLPIP.

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