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

AVEVA™ XR Studio

include

  • Last UpdatedDec 06, 2023
  • 2 minute read

The include command enables you to include additional script files.

  • There is just one main script for an application. That script is parsed at application loading time.

  • No script can be loaded dynamically during execution. However, the script can be split into more than one file.

  • In the application, config file is indicated in the root .xml file. This file can contain include nodes to link other script files. Those files can also contain include nodes.

Note: All XML files of the script require the <ft> root node.

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 include.

<include name="avatar.xml"/>

Position

The include statement can be anywhere inside a <ft> node. This can be both inside or outside a Context node.

Fields

These are the fields for include command.

Fields

Type

Use

Default value

Description

mandatory

sbool

Optional

true

If set to true, the engine raises an exception and closes itself if the included file is not found.

name

sstring

Mandatory

Not set

Must be set to include an XML file.

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