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

AVEVA™ XR Studio

Parametric assignment

  • Last UpdatedDec 06, 2023
  • 1 minute read

The parametric assignment is used only inside the children of a Command node.

The syntax is %i% where i is an integer index.

When triggering the execute event of the command node (an SSTRING type) or in other words, when setting a new value for the execute command field, this value is split into n parameters (0 .. n-1) that are used to replace the parametric placeholders.

Syntax example

value="%0%"field="%1%.position"

Code example

This is a code example for parametric assignment.

<keysensor name="keySensor" key="a"/>

<command name="cmd">

<setfield field="nodo.campo" value="%0%" />

</command>

<route from="keySensor.keyDown" to="cmd.execute" value="@keySensor.key@" />

For more details about how the event handling works, see Event-based management.

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