Industrial Graphics
- Last UpdatedApr 12, 2021
- 2 minute read
An Industrial Graphic must be defined in the Galaxy before you import a window that uses the Industrial Graphic reference. If the Industrial Graphic reference does not exist, the import fails, and the window is not created.
You can specify symbols from an Instance or from the Graphic Toolbox in the symbol reference. However, you cannot specify Template symbols in the symbol reference.
Multiple Industrial Graphics can be specified for a window. Each Industrial Graphic is declared in a separate <Industrial Graphic> </Industrial Graphic> element.
The following elements can be specified for an Industrial Graphic.
|
Elements |
Description |
|---|---|
|
SymbolReference |
Reference to look up the symbol in the Galaxy. Required. An object will not be created if the Industrial Graphic specified by the symbol reference does not exist or if the symbol reference field is missing or empty. |
|
Dimension |
The location and size of an object. The Dimension sub- elements are top, left, width, and height. Required. Specifying width and height is optional. If width and height are not specified, the original width and height of the Industrial Graphic is used. If only width is specified, then the height is calculated using the aspect ratio and vice versa. For example, if the original width was 200 and height was 100, and if you specify width as 100, the height is changed to 50. An object is not created if the Dimension element is assigned invalid values or does not contain a value. A window containing this symbol is also not created. |
|
Title |
The text name for an element. Optional. This name should be unique within the XML file; otherwise, it is ignored. |
|
Flip |
The flip type of an element. Optional. |
|
Rotation |
The rotation angle of an element. Optional. |
|
StringReplace |
One or more string replacement nodes. Optional. |
|
CustomPropertyOverride |
One or more custom property overrides. Optional. |
|
AnimationLinks |
The list of animation links. Optional. Specifying Line Color, Fill Color, Text Color, Percent Fill, Orientation, Slider, Tooltip, ValueDisplay, Blink or UserInput is not permitted. |
<ArchestrASymbol>
<Title>EmbedSym1</Title>
<Dimension>
<Left>200</Left>
<Top>200</Top>
<Width>150</Width>
<Height>150</Height>
</Dimension>
<Flip>None</Flip>
<Rotation>0</Rotation>
<SymbolReference>ButtonChromeMomentaryRed</SymbolReference>
<AnimationLinks>
</AnimationLinks>
<StringReplace>
<Find>LABEL</Find>
<Replace>OFF</Replace>
</StringReplace>
</ArchestrASymbol>
Minimal example:
<ArchestrASymbol>
<Dimension>
<Left>200</Left>
<Top>200</Top>
</Dimension>
<SymbolReference>ButtonChromeMomentaryRed</SymbolReference>
</ArchestrASymbol>