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

AVEVA™ XR Studio

ImporterNode

  • Last UpdatedFeb 19, 2025
  • 4 minute read

The ImporterNode performs import and convert tasks using the CVP Importers Plugin SDK. It can be used to bring 3D content into the project folder and transform the content into formats that can then be loaded by the XR framework.

  • ImporterNode gives unified access to a large set of importers/converters with multiple input and output file formats.

  • Multiple ImporterNodes can run in parallel to perform different import/convert tasks.

  • ImporterNode is included in the Importers Plugin.

    Note: Some importers/converters that are supported by ImporterNode may not work properly when consumed directly inside a XR Studio Graphic Context. We suggest that you test the importer node behavior with XR Viewer.

Platform support

This node is supported on XR-Windows platform only.

XR-WIN

XR-P-WIN

XR-P-IOS

XR-P-AND

XR-P-WASM

Full support

No support

No support

No support

No support

Full support

No support

No support

No support

No support

Import and convert workflow

When an ImporterNode is available, these are the steps to perform the task:

  1. Select the importer/converter to use by setting the importerCode field. Each importerCode corresponds to a different importer. When setting the importerCode, the importer/converter list of parameters is refreshed in the node.

  2. Configure all the required parameters/XXX fields to customize the importer task.

  3. Start the task by invoking the start field.

  4. Observe the task process by doing the following:

    • Checking the importerTaskState.

    • Reading the messages field.

Guidelines

  • The importerTaskState is initially set to not_started. After start, it moves to running.

  • The importerTaskState will end to completed or error depending on the success of the import.

  • It’s always possible to abort the task by invoking the stop field.

Importer specific fields

When setting the importerCode, the list of import/convert fields is refreshed automatically. Each importerCode corresponds to a specific list of parameters even though most of them are quite standard.

Each field expects a specific data type. For more information, see CVP Importer SDK documentation.

Security restrictions

The ImporterNode verifies the paths provided to an ImporterNode before starting the import/convert task.

If checkInputPathAccessibility is set to true, both input and output paths will be checked for data access restrictions. If set to false, only the destination path will be checked for access rights.

Code example

This is a code example for the ImporterNode.

<!-- load plugin and create ImporterNode -->

<plugin file="plugins\Importers\ImportersPlugin.dll" />

<ImporterNode name="importer" importerCode="RVM2MWX"/>

<!-- coroutine to start an import task-->

<Coroutine name="crt_startTask" args="from=sstring,to=sstring,code=sstring">

<set name="importer.importerCode" value="[@%code%]" />

<wait condition="[@crt_startTask.timeFromWait]&lt;0.001" />

<!-- copying paths and start task -->

<set name="importer.parameter\sourcepath" value="[@%from%]" />

<set name="importer.parameter\destinationpath" value="[@%to%]" />

<set name="importer.start" />

</Coroutine>

ImporterNode fields

These are the fields for ImporterNode node. Only the node-specific fields are indicated, not fields obtained by inheritance.

Field inheritance: NodeBase > FileExplorer

Fields

Type

Use

Default value

Description

checkInputPathAccessibility

sbool

Optional

false

When true, both input and output directories will be checked for data access restrictions.

importerCode

senum

Optional

Not set

Defines which importer or converter to use. When setting this field, the list of parameter\XXX fields will refresh.

importerTaskState

senum

Read only

Internally calculated

Shows the current import task state. It is initially set to not_started, then moves to running after start sevent is invoked. It ends to completed or error.

messages

sstring

Read only

Internally calculated

This field contains the last messages sent by the importer/converter. It updates each time a new message arrives.

outputFilePath

mstring

Read only

Internally calculated

At the end of the processing, contains the full path to the generated files.

parameter\XXX

Depends on parameter

Optional

Depends on parameter

Each importerCode corresponds to a different set of customization parameters. For more information, see the CVP Importers SDK documentation.

start

sevent

Optional

Starts the import/convert task.

stop

sevent

Optional

Aborts the import/convert task.

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