Create a Map Edge Definition - Integration - Update 44 - Help - Hexagon

Integration Help

Language
English
Product
Integration
Search by Category
Help
Smart 3D Version
12.1 (2019)
Smart Construction Version
2019(7.0)
SmartPlant Foundation / SDx Version
10
Smart Electrical Version
2019 (9.0)
Smart Materials/Smart Reference Data Version
2020 (10.0)
Smart P&ID Version
9 (2019)
Smart Review Version
2020 (15.0)
Smart Engineering Manager Version
10 (2019)
Smart Interop Publisher Version
13.1 (2019 R1)
Smart Isometrics Version
7.0(2019)
Spoolgen Version
9.0(2019)

If you want to define many-to-one or many-to-many mapping between the tool map schema and the SmartPlant schema, you must create map edge definitions that traverse the relationship between two authoring tool class definitions. Map edge definitions allow you to traverse relationships between map class definitions to locate properties that you want to map.

Any map edge definitions defined as part of the tool map schema must be explicitly supported by the adapter for that tool. Unless the tool adapter has been defined to allow user definition of map edge definitions or the user defining the map edge definition has access to the tool adapter code and can modify it to recognize the new map edge definition, any map edge definitions defined by the user will not be recognized by the tool adapter and will not be supported for publish and retrieve operations. Therefore, new map edge definitions should only be created if the underlying tool adapter can either be modified or if the adapter supports user-added map edge definitions. See your authoring tool mapping rules for more information.

  1. After you open the tool map schema that you want to edit in the Schema Editor, click View > Tool Schema.

  2. Click Options on the View Schema dialog box.

  3. On the View tab, click Editor, and then click OK.

    SHARED Tip If you do not see the View tab, the View dialog box is in Simple mode. Click Editor in the Form list instead.

  4. In the Create tree, double-click SPMapEdgeDef.

    SHARED Tip You can also create map edge definitions by double-clicking the SPMapCEdgeDef node in any tree view in any Schema Editor view.

  5. In the Name box, type a unique name for the map edge definition.

  6. In the Select criteria box, define the criteria that the tool adapter uses to select or identify objects for this tool edge definition. See the mapping rules for your authoring tool for how to set the value for this property.

  7. In the Process criteria box, define the criteria that the adapter uses to process objects that are instances of this tool edge definition. See the mapping rules for your authoring tool for how to set the value for this property.

  8. To define the starting map class definition for the edge definition, click beside the Starts at map class box, and select the starting tool map class.

    SHARED Tip If the map class definition that you want to use as the starting point for the map edge definition does not already exist in the tool map schema, you can click Create in the Possible StartMapClassDef dialog box to create it. For more information, see Create a Map Class Definition.

  9. To define the ending map class definition for the edge definition, click beside the Ends at map class box, and select the ending tool map class.

  10. Click beside the Only 1 end map object? box. Select True if, when going from the starting object and traversing the edge, there will only ever be one end object encountered. If it is possible that the edge will end with more than one object, select False.

  11. Click OK to save the new map edge definition.

  • The authoring tool adapter determines whether one-to-many, many-to-many, and many-to one mapping is supported. For more information, see the rules for your authoring tool in the tool documentation.

  • When you create a map edge definition, the Schema Editor automatically assigns a UID to the map edge definition. If you want to change the UID, click Change UID. See the mapping rules for your authoring tool for information on UID values to use. Some application adapters will not work correctly if the values for the UID do not follow the rules for that application.