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

Hull and Outfitting

Diagram Viewer Methods

  • Last UpdatedJan 16, 2026
  • 1 minute read

Some diagram viewer functionality is available via PML methods. To use these methods the following initialization is required at the top of each PML file (object, function, or macro) where these methods are to be used.

import 'IntegratorAddin'

handle any

endhandle

The following initialization is also required in each method or function where the diagram methods are to be called.

using namespace 'Aveva.Pdms.IntegratorAddin'

!intMan = object IntegratorManager()

The following methods can be used to clear colours and close the current or all diagrams, and correspond to the equivalent bar menu entries.

!intMan.resetDiagramColours()

!intMan.resetAllDiagramColours()

!intMan.closeDiagram()

!intMan.closeAllDiagrams()

The findOnDrawing method opens the diagram for one or more schematic objects and highlights them, in the same way as the main table View on Diagram menu entry. Note that the argument is an array. If an object appears on more than one diagram, the user will be prompted to choose which diagram to open. This example shows how to view the linked schematic object for the current element in 3D.

!itemList[1] = !!ce.schlnk.ref.string()

!intMan.findOnDrawing(!itemList)

Individual schematic objects can be coloured on the diagram view using the following methods. Note that these methods do not open a diagram or select an object. The results will be visible only if the relevant diagram is already open in the viewer.

!intMan.setColour(!Name is STRING, !Colour is STRING)

!intMan.setColour(!Name is STRING, !Colour is REAL)

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