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

AVEVA™ XR Studio

setdefault

  • Last UpdatedAug 21, 2023
  • 2 minute read

The setdefault command enables you to set one or more parameter default values to groups of nodes. In other words, the initial values.

  • setdefault is resolved at startup time.

  • It can be nested inside other setdefault nodes. The rule is that the node parameter value overwrites nested value that overwrites parent value.

Platform support

This element is fully supported on XR-Windows, XR-Portable Windows, XR-Portable iOS, XR-Portable Android, and XR-P WASM platforms.

XR-WIN

XR-P-WIN

XR-P-IOS

XR-P-AND

XR-P-WASM

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Code example

This is a code example for setdefault.

<setdefault labelTextureColor="1 0 0">

<!-- this is red -->

<ItemValve name="0800-RF222"/>

<setdefault labelTextureColor="0 1 0">

<!-- theese are green -->

<ItemValve name="0800-RF202"/>

<ItemValve name="0800-RF212"/>

</setdefault>

<!-- this is blue -->

<ItemValve name="0800-RF232" labelTextureColor="0 0 1"/>

</setdefault>

<!-- this keeps ItemValve default (white)-->

<ItemValve name="0800-RF002"/>

Fields

These are the fields for setdefault command.

Fields

Type

Use

Default value

Description

xxx

xxx type

(1-n) optional

Not set

xxx is a field of the child nodes whose default must be redefined.

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