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>