SmartSymbols
- Last UpdatedJul 26, 2024
- 1 minute read
A SmartSymbol template must be defined in the application before importing a window that uses the SmartSymbol template. If the SmartSymbol template does not exist, the import fails, and the window is not created.
Multiple SmartSymbols can be specified for a window. Each SmartSymbol is declared in a separate <SmartSymbol> </SmartSymbol> element.
The following elements can be specified for a Smart Symbol.
|
Elements |
Description |
|---|---|
|
SymbolName |
SmartSymbol name. Required. An object is not created if the name does not match a SmartSymbol template name in the application, or the name is missing. |
|
Dimension |
Location and size of an object. Elements are top, left, width, height. Top, left, width, and height values are pixels. The resulting coordinates must be within -32000 and +32000. Both width and height cannot be zero. Required. An object is not created if the Dimension element is assigned invalid values or is missing values. |
|
TagReplace |
Instance tag replacement. |
|
StringReplace |
Instance string replacement. |
Example:
<SmartSymbol>
<SymbolName>MyCoolSymbol</SymbolName>
<Dimension>
<Left>100</Left><Top>50</Top>
<Width>270</Width><Height>80</Height>
</Dimension>
<TagReplace>
<Find>Tag001</Find>
<Replace>Tag007</Replace>
</TagReplace>
<StringReplace>
<Find>Find This Text</Find>
<Replace>Replace it with this text</Replace>
</StringReplace>
</SmartSymbol>
Minimal example:
<SmartSymbol>
<SymbolName>MyCoolSymbol</SymbolName>
<Dimension>
<Left>100</Left><Top>50</Top>
<Width>270</Width><Height>80</Height>
</Dimension>
</SmartSymbol>