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

AVEVA™ Diagrams

Error Handling

  • Last UpdatedMar 27, 2024
  • 1 minute read

If something goes wrong the PMLDiagrams object will throw a PMLNetException that can be handled in PML like below:

!tool.PublishToAVEVANET('/MainRoom')
handle any
!Etext = !!Error.Text
$P $!Etext
endhandle

If needed, it is possible to filter exceptions by using module 98 and error code 1 that means:

!tool.PublishToAVEVANET('/MainRoom')
handle(98,1)
!Etext = !!Error.Text
$P $!Etext
endhandle

The .ExportToSVG method throws PMLExceptions with module number 98 and code 2.

!tool.ExportToSVG('/MainRoom')

handle(98,2)

!Etext = !!Error.Text

$P $!Etext

endhandle

The error message might be different, depending on the problem.

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