Schematic 3D Integrator
User Guide
How to use Integrator from the Command Line
: Diagram Viewer Methods
Diagram Viewer Methods
Some diagram viewer functionality is available via PML methods. To use these methods the following initialisation 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 initialisation 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)
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.