Edit publish mapping for SmartPlant Foundation - 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

After you have edited the custom or generic mapping template file to map your data to the Smart Interop Publisher schema, make sure the mapping is correct from Smart Interop Publisher schema to the SmartPlant schema. You can set up relationships by mapping to an existing class and property in the SmartPlant schema, or you can extend the SmartPlant schema by adding new classes and properties.

The steps below outline the processes involved in either mapping to the existing SmartPlant schema or extending (adding to) the SmartPlant schema.

Map to Existing Schema

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

  1. Open the SmartPlant Schema Editor.

  2. Click File > Open > Schema File, and open SPIOPComponent.xml on your SmartPlant Foundation server. See Open a Schema.

  3. Click File > Open > Tool Schema File and locate SPIOPToolMap.xml, which is in the Schema subfolder of the shared content location defined for your project. See Open a Tool Map Schema.

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

  5. Add in and map the new properties in the Schema Editor.

    For the Unique ID, you must enter the new property as [interface name]:[property name].

  6. (Optional) Define a mapping for the Units of Measure (UoM). This involves creating a map unit of measure list definition, and then defining the measurement units to map. See Create a Unit of Measure List in the SmartPlant Schema Editor Help.

Extend the SmartPlant Schema

The steps below outline the processes involved in extending the SmartPlant schema in SmartPlant Foundation.

  1. Review the SPFMappings sheet in the provided SPIOPSchema.xls, which shows the Smart Interop Publisher classes, interfaces, and properties as they are currently mapped to SmartPlant schema (EFSchema).

  2. Check out the SmartPlant schema Configuration Managed File (CMF) from the SmartPlant Foundation Desktop Client.

  3. Right-click the new revision of the CMF file in SmartPlant Foundation, and click Launch Schema Editor. This provides the Schema Editor with the appropriate plant and SmartPlant Foundation site for connection.

  4. Select the schema version or versions to view in the Specify configurations to display window of the Active Configurations dialog.

  5. Click Advanced on the Active Configurations dialog to view the Set Configurations for new objects window, where you specify to which version or versions of the schema changes should be written.

  6. Make changes to the schema as required. See Extending the SmartPlant Schema in the Schema Editor Help.

    For the Unique ID, you must enter the new custom property as [interface name]:[property name].

  7. Save your changes and the SmartPlant schema session file created by the SmartPlant Foundation Desktop Client.

  8. Check in the updated CMF file and load the schema into SmartPlant Foundation. See Load schema changes into the database in the Schema Editor Help.

  9. Use the Schema Editor to open SPIOPComponent.xml on your SmartPlant Foundation server.

  10. Click File > Open > Tool Schema File and locate SPIOPToolMap.xml, which is in the Schema subfolder of the shared content location defined for your project.

  11. Right-click and select Create New SPMapClassDef to add your custom map class.

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

  13. Click Advanced on New Map Class Definition and enter the UID. For custom classes, the UID value must be prefixed with 3DI_. Example: 3DI_CR3DCustomWall.

  14. Add all other required parameters such as Name, Description, and so forth.

  15. Map the new properties in the Schema Editor.

  16. To enable hotspotting for graphics, enter IsDrawable=True for Process criteria.

    You can also add new properties in the Process Criteria field in addition to IsDrawable. Separate each property with a semi-colon. Example: IsDrawable=True;Att1=Val1;Att2=Val2;.

  17. (Optional) Define a mapping for the Units of Measure (UoM). This involves creating a map unit of measure list definition, and then defining the measurement units to map. See Create a Unit of Measure List in the SmartPlant Schema Editor Help.

  18. When you have completed the mapping for SmartPlant Foundation, set your mapping option (Custom or Generic). See Set the custom option or Set the generic mapping option.