Tag replacement
- Last UpdatedJul 26, 2024
- 1 minute read
The tags within a SmartSymbol instance can be replaced. You should only replace tags within a SmartSymbol instance that currently exists in the application.
Tag replacement is case insensitive and the entire tag name string must match. You can add one or more <TagReplace> elements to the SmartSymbol node to replace multiple tags.
For example:
<TagReplace>
<Find>Tag1</Find>
<Replace>DTagA</Replace>
</TagReplace>
<TagReplace>
<Find><![CDATA[Tag1]]></Find>
<Replace><![CDATA[DTagA]]></Replace>
</TagReplace>
If the tag names specified for replacement do not exist in an application, the SmartSymbol is not created. Also, the window containing the SmartSymbol is not created.
The replaced tag's type must be the same as the original tag's type.