GraphicAccess2 interface methods
- Last UpdatedJul 08, 2024
- 1 minute read
The GraphicAccess2 interface uses separate methods to export substitutable strings and configured references for an Industrial Graphic.
ExportGraphicToXml method
Exports all substitutable strings in an Industrial Graphic to an XML file. Galaxy, graphic name, the XML file path and Export Substitute Strings option are the parameters for the ExportGraphictoXML function. This API will not export empty strings and strings used in invisible graphics.
Syntax
IGraphicAccessResult ExportGraphicToXml(IGalaxy galaxy, string graphicName, string xmlFilePath, bool bExportSubstituteStrings);
Parameters
galaxy
IGalaxy obtained from the GRAccess and returns the galaxy.
graphicName
Name of the graphic to export.
xmlFilePath
Directory folder to place the XML file containing the exported graphic.
bExportSubstituteStrings
When set 'True' will include the substitute string from graphic in the export XML file.
GetConfiguredReferences method
Exports all of the configured references within an Industrial Graphic to an XML file.
Syntax
IGraphicAccessResult GetConfiguredReferences(IGalaxy galaxy, string graphicName, out string sConfiguredReferencesXML);
Parameters
galaxy
IGalaxy obtained from the GRAccess and returns galaxy containing the graphic object.
graphicName
Name of the graphic with references to export.
sConfiguredReferencesXML
The configured references for the graphic will be returned to this parameter in a string.