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

Hull and Outfitting

AVEVA Diagrams

  • Last UpdatedDec 01, 2024
  • 1 minute read

The PMLDiagrams Object can be used to publish SCDIAG database elements to AVEVA Asset Information Management using PML. The interface is defined in Aveva.Diagrams.dll.

An example is given below:

import 'Aveva.Diagrams'

using namespace 'Aveva.Diagrams'

!tool = object PMLDiagrams()

!tool.PublishToAVEVANET('/MainRoom')

The input parameter is a diagram name. By default publish will use the defined "Diagrams" configuration settings. However, the PublishToAVEVANET method is overloaded and it is possible to publish diagrams using other configurations.

Custom configurations may be added by manually editing the file:

AvevaNetExportConfigAddin.xml

Which is located in the PublishToAvevaNet folder of your project defaults folder.

You may then call a define and call a custom configuration, for example:

!tool.PublishToAVEVANET('/MainRoom','DiagramsHVAC')

Error handling

If an error is encountered the PMLDiagrams object will throw a PMLNetException. An example of error handling in PML is given below:

!tool.PublishToAVEVANET('/MainRoom')

handle any

!Etext = !!Error.Text

$P $!Etext

endhandle

Exceptions may be filtered by using module 98 and error code 1. For example:

!tool.PublishToAVEVANET('/MainRoom')

handle(98,1)

!Etext = !!Error.Text

$P $!Etext

endhandle

The error message returned will be dependent on the error encountered.

The interface has the following methods:

Name

Result

Purpose

PublishToAVEVANET(STRING DiagramName)

No Result

Publishes SCDIAG to AVEVA AIM.

PublishToAVEVANET(STRING DiagramName, STRING DeliverableName)

No Result

Publishes SCDIAG to AVEVA AIM with specific deliverable.

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