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

AVEVA™ XR Studio

Name or group substitution in content

  • Last UpdatedSep 04, 2024
  • 1 minute read

Name substitution

After a mapping matches its content, it must be filled accordingly to the node information.

  • Name

  • Group

  • File

Note: The group parameter can be void or may not exist for several nodes, so be sure to use group parameter carefully to avoid errors.

Types of name substitution

There are several types of name substitution.

Type

Example

Description

{name} {group} {file}

{name} ® 1800-RF002

The tag is substituted by the node name or group.

{name:i:j} {group:i:j} {file:i:j}

{name:0:4} ® 1800

The tag is substituted by the node name or group with substring of length j obtained starting from char i.

{name:i:-1} {group:i:-1} {file:i:-1}

{name:5:-1} ® RF002

The tag is substituted by the node name or group with substring starting from char i.

{name:FI(-,0):-1} {group:LI(RF,2):-1} {file:FI(8):-1}

{name:FI(-,0):-1} ® -RF002

FI/LI sets the starting point of the substring before the first/last occurrence of indicated and then applies an offset (0 if not set).

{name:0:FI(-,1)} {group:0:FI(RF,2)} {file:FI(-):LI(0,1)}

{name:0:FI(-,0)} ® 1800 {name:R:srcTxt:rplTxt}

FI/LI sets the ending point of the substring before the first/last occurrence of indicated and then applies an offset (0 if not set).

{group:R:srcTxt:rplTxt} {file:R:srcTxt:rplTxt}

{name:R:-:_} ® 1800_RF002

Replaces all the occurrences of srcTxt text in the tag with rplTxt. It can be used to replace - with _ or to remove spacing or other characters.

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in