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

AVEVA™ XR Studio

Adding new nodes

  • Last UpdatedDec 06, 2023
  • 1 minute read

This topic explains the relationship between nodes and contexts.

  • Ensure that you add new nodes to the correct context.

  • By default, new nodes that are declared inside the Logic patching file are included in the global context.

    This is not a problem for purely logical nodes (such as commands, schedulers, timers) that are already inside a context.

    However, nodes that have a visualization (such as items, meshes, and 2D contents) cannot reside inside the global context.

Visualization nodes

Nodes that have a visualization parameter must be placed in the correct context.

In EYESIM projects, for example, there are several different contexts for Simulation or Simsetup contents.

Code example

To properly place a node in the correct context, you can duplicate the context node declaration inside the patch logic files.

This code example adds a Rect2D node to the EYESIM simulation context. Just replicate the name, not the context node attributes.

<context name="simulation">

<rect2D name="newRect" size="200 200" position="50 50" visible="false" />

</context>

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