Tool map file definition of the authoring schema - SmartPlant Foundation - IM Update 48 - Help - Hexagon

SmartPlant Foundation Help

Language
English
Product
SmartPlant Foundation
Search by Category
Help
SmartPlant Foundation / SDx Version
10
SmartPlant Markup Plus Version
10.0 (2019)
Smart Review Version
2020 (15.0)

Class definitions

Just like any tool, the SmartPlant Foundation authoring schema has to be defined in the tool map file. The first basis is the definition of the class definition.

The example below shows the map class definition for the authoring schema class definition called PpmPAEquipment.

<SPMapClassDef>

<IObject UID="MapPpmPAEquipment" Name="PpmPAEquipment"/>

<IMapObject/>

<IMapClassDef MapOption="IncludeRealized"/>

</SPMapClassDef>

For the SmartPlant Foundation adapter, the MapOption property does not have to be filled in; it is included here for reference.

Interface definitions and realize relations

All interfaces need to be defined, as well as a Realizes relationship to the parent class.

<SPMapClassDef>

<IObject UID="MapICleanedItem" Name="ICleanedItem"/>

<IMapObject/>

<IMapClassDef IsInterface="True" MapOption="MapDirectly"/>

</SPMapClassDef>

<Rel>

<IObject UID="MapPpmPAEquipment.MapICleanedItem"/>

<IRel UID1="MapPpmPAEquipment" UID2="MapICleanedItem" DefUID="MapClassRealizesMapClass"/>

</Rel>

For the SmartPlant Foundation adapter, the MapOption property does not have to be filled in; it is included here for reference.

Property definitions and expose relations

All relationship definitions need to be defined if they are to be mapped.

<SPMapRelDef>

<IObject UID="MapPpmUnitPBSItem" Name="PpmUnitPBSItem"/>

<IMapObject/>

<IMapRelDef/>

</SPMapRelDef>

<Rel>

<IObject UID="PBSItemCollection.MapPpmUnitPBSItem"/>

<IRel UID1="PBSItemCollection" UID2="MapPpmUnitPBSItem" DefUID="RelDefToMapRelDef"/>

<IMapRel MapEnd1IsEnd1="False"/>

</Rel>