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

AVEVA™ Gateway for SmartPlant 3D

Dataset Mapping

  • Last UpdatedAug 26, 2024
  • 1 minute read

You can create a new dataset object from one or more attributes of a source object.

Attribute mapping may be configured to create Datasets associated with the source object. Each attribute present in the source object may be attached to a Dataset.

<Datasets>
<Dataset id="Dataset1" >
<DatasetID>
<Transforms>
<InsertAfter pattern="^.*$" value=" Dataset" />
</Transforms>
</DatasetID>
<ContextID value="IPE" />
<ClassID value="DATASET" />
</Dataset>
</Datasets>


<ObjectMappings regExTimeoutSecs="10">
<Object>
<Conditions>
<Attribute name="ClassName" pattern="Door" />
</Conditions>
<Attributes>
<Attribute name="Name">
<Dataset id="Dataset1" />
<Name value="Door Name" />
<Value value="[Name]" />
</Attribute>
<Attribute name="Description" pattern="^[A-Za-z]+$">
<Dataset id="Dataset1" />
<Name value="Door Description" />
<Value value="[Description]" />
</Attribute>
</Attributes>
</Object>
</ObjectMappings>

The above example defines a Dataset in the IPE context whose ID is based upon the ID of the source object with "Dataset" appended to it. The <DatasetID>, <ContextID> and <ClassID> elements support attribute references, transforms and lookups. The above example creates the attributes Door Name and Door Description on the Dataset.

As you move some or all the attributes from a source object into the dataset object, you may want to delete these objects from the source object. You can do this using the following syntax:

<ObjectMappings regExTimeoutSecs="10">
<Object>
<Conditions>
<Attribute name="ClassName" pattern="PUMP" />
</Conditions>
<Attributes>
<Attribute attribute="*">
<Dataset id="Dataset1"/>
<Remove />
</Attribute>
</Attributes>
</Object>
<Object>
<Conditions>
<Attribute name="ClassName" pattern="EQUIPMENT" />
</Conditions>
<Attributes>
<Attribute attribute="Vendor">
<Dataset id="Dataset1"/>
<Remove />
</Attribute>
</Attributes>
</Object>
</ObjectMappings>

Note: The Dataset is assigned a ClassID of ‘DATASET’ if not defined in the mapping.

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