CustomPropertyOverride
- Last UpdatedApr 12, 2021
- 1 minute read
You can override only those custom properties which are already defined for the Industrial Graphic.
To override multiple custom properties, add one or more <CustomPropertyOverride> elements to the Industrial Graphic node.
Example:
<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>
<CustomPropertyOverride> <CustomPropertyName>cp1</CustomPropertyName>
<OverrideValue>DTagA</OverrideValue>
<IsConstant>false</IsConstant>
</CustomPropertyOverride>
</ArchestrASymbol>
In this example, cp1 is the name of the existing custom property. The override is applied to the custom property with the new value set to DTagA. IsConstant is an optional field used to indicate whether the value should be interpreted as a constant. The IsConstant flag is only applicable if the type of the custom property is String, Time, or Elapsed Time. The IsConstant flag is set to false by default.
Note: If the tag name specified for OverrideValue does not exist in the tag database, the Industrial Graphic reference is not created on the window and import for that particular window fails. Error messages are logged in the log file or in the Logger.