Diagrams
User Guide
Diagrams
:
Utilities
:
Publishing from Diagrams via PML
: Sample Usage (Export to SVG)
Sample Usage (Export to SVG)
import 'Aveva.Diagrams'
using namespace 'Aveva.Diagrams'
!tool = object PMLDiagrams()
!tool. ExportToSVG('/MainRoom')
The input parameter is a diagram name. In case of any exporting error it throws a PMLException.
There is also a global PML function available which uses the PMLDiagrams object and the method mentioned above. It handles any PMLExceptions by printing the error message in the console window. This PML function returns the Boolean value True if export has been completed successfully, or False in case of any errors.
The sample usage might look like below:
!!ExportToSVG('/MainRoom')
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.