Industrial graphic import from XML files
- Last UpdatedJul 08, 2024
- 1 minute read
The ImportGraphicFromXml method imports an XML file and creates a graphic in the root folder of the Visualization folder. A graphic container instance is created and loads the graphic definition from the provided XML file. The container then uses its binary serialization to save the binary definition to a blob. A new graphic is created with GraphicAccess API and the graphic blob is set to the Galaxy attribute "_VisualElementDefinition".
An XML schema file aaGraphics.xsd is located in the ...\ArchestrA\Framework\Bin folder. The Industrial Graphic library uses this schema file to validate the provided XML file before importing it and creating an Industrial graphic. If an invalid graphic name is specified or the XML file does not validate against the schema file, the import operation stops immediately without further processing.