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

AVEVA™ Gateway for SmartPlant 3D

RevisionID Mapping

  • Last UpdatedAug 26, 2024
  • 1 minute read

RevisionID Mapping can be used to derive the revision of a document. Each mapping entry in the configuration is examined in sequence and the first mapping entry to match is used to generate the object’s context ID.

The simplest form of RevisionID mapping entry to derive Revision or an object is shown below:

<Object>

...
<Conditions>
<Attribute name="object_class" pattern="Door" />
</Conditions>
<Revision value="[object_name]" />

...
</Object>

Note: Conditions may hold multiple attribute elements. All conditions must be met for the mapping to be applied.

You can also use Lookups and transforms to modify the Revision value.

<Object>

...
<Conditions>
<Attribute name="object_class" pattern="Door" />
</Conditions>
<Revision value="[object_name]">
<Transforms>
<Replace pattern="^[a-z]{3}" value="OBJ" />
</Transforms>
</Revision>

...
</Object>

<Object>

...
<Conditions>
<Attribute name="object_class" pattern="Door" />
</Conditions>
<Revision value="[object_name]">
<Lookup id="ExcelLookup" >
<FailAction action = "DiscardElement" />
</Lookup>
</Revision>

...
</Object>

You can also use attributes from associated objects to modify the value of RevisionID as shown below:

<Object>

...
<IncludeAssociatedObjectAttributes>
<AssociationType pattern="^FillsVoids$" />

<Conditions>

<Attribute name = "ClassName" pattern = "^OPENINGELEMENT" />

<Attribute name = "Name" pattern = "^element1$" />

</Conditions>

</IncludeAssociatedObjectAttributes>

<ObjectName value="[Tag]_[associated:Tag]" />

...

</Object>

In this case above, the value of the Tag attribute along with the value of Tag of the first associated object matching the condition is used in deriving RevisionID. The prefix "associated:" is used when referring to the associated object's attribute.

If an object does not match any of the mapping entries, it is not assigned any RevisionID.

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