Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Operations Management Interface

Import overridden text strings

  • Last UpdatedDec 11, 2024
  • 2 minute read

An exported graphic’s text strings can be overridden by editing the SubstituteString elements of the export XML file before importing the graphic.

The following illustration shows Symbol A embedded in Symbol B. Symbol A contains three text elements with text strings. The TextBox1 text string of the Text1 element was overridden to Textbox11. Then, Symbol B was exported using the programmatic API.

Overriding an exported graphic's text strings

The expected SubstituteStrings element in the export XML file should be similar to the following:

<SubstituteStrings>

<String Old="TextBox1" New="TextBox11" ElementID="A.Text1"/>

</SubstituteStrings>

The user edits the export XML file and adds an entry to override a text string without using an ElementID attribute to identify the text element.

<SubstituteStrings>

<String Old="TextBox1" New="TextBox11" ElementID="A.Text1"/>

<String Old="TextBox2" New="TextBox22">

</SubstituteStrings>

After importing the graphic, the text strings for the Text2 and Text3 elements are overridden to TextBox22. Without an ElementID to identify the text element, the string override replaces all text strings that match the text string specified by the Old attribute.

Overriding an exported graphic's text strings

If the graphic was exported again using the programmatic API, the exported XML file shows that ElementID attributes have been added to each String element.

<SubstituteStrings>

<String Old="TextBox1" New="TextBox11" ElementID="A.Text1"/>

<String Old="TextBox2" New="TextBox22" ElementID="A.Text2"/>

<String Old="TextBox2" New="TextBox22" ElementID="A.Text3"/>

</SubstituteStrings>

TitleResults for “How to create a CRG?”Also Available in