4. Map the property to the SmartPlant Schema - Intergraph Smart Interop Publisher - Help

Intergraph Smart Interop Publisher Help

Language
English
Product
Intergraph Smart Interop Publisher
Search by Category
Help
Smart Interop Publisher Version
16.2

Map the Description property from the Smart Interop Publisher schema to an existing Description property in SmartPlant Foundation. This involves adding the Description property to the Smart Interop Publisher SPIOPToolMap tool schema file, and then mapping the Smart Interop Publisher interface and property to an existing interface and property in the SmartPlant schema.

When you are creating mapping relationships but not extending the SmartPlant schema, you do not have to check out and use the schema CMF file.

  1. Open the SmartPlant Schema Editor.

  2. Click File > Open > Schema File, and open [drive]:\Program Files (x86)\Common Files\Intergraph\EFSchema\04.02\SPIOPComponent.xml.

  3. Click File > Open > Tool Schema File and locate SPIOPToolMap.xml which resides in the folder containing the IFCProject.mdf file.

  4. Open the tool schema to see the relationships and classes.

  5. In the tree view, locate the IJR3DElement interface in which you added the Description property.

  6. Expand IJR3DElement.

  7. Select MapProperties and right-click to select Create SPMapPropertyDef.

  8. On the New Map Property Definition dialog, enter the following:

    • Unique ID - IJR3DElement:Description

      For the UID, you must always use the format [Interface name]:[Property].

    • Name - Description

    • Desc - Description of the element

      The software displays the Description property under MapProperties in the tree view.

      Now you are ready to map the Description property from the Smart Interop Publisher schema to the SmartPlant schema,

  9. Right-click IJR3DElement and select Edit IJR3DElement.

  10. For Publish to SmartPlant class/interface, click browse to select the SPF interface IObject(IObject).

  11. Click Advanced Publish Map.

  12. On the Publish Map for Tool Class Definition dialog, drag the Description property under IObject over to the Maps To Property box, and then click OK.

    The software maps IJR3DElement to the SPF IObject interface and the Description property is now available under MapProperties in the tree view.

  13. Click File > Save > Tool Schema File, and then close the Schema Editor.