Add the Description property to an existing Smart Interop Publisher class and interface. In this case, you are going to add the Description property to a PLATE part. You can look at the SPFMapping sheet in the delivered SPIOPschema.xlsx file to see the properties that are already mapped.
Review SPFMappings.xlsx
-
Go to [drive]:\Program Files\SmartPlant\Interop Publisher and open SPIOPschema.xlsx.
-
Click SPFMappings.
-
Go to the CR3DPlatePart Smart Interop Publisher class in the first column.
-
In the Interface (C) column, locate IJR3DElement. This is an interface that is common and available for almost all Smart Interop Publisher classes. You can add a Description to this interface and the property displays for most objects in Smart Interop Publisher.
-
Now that you have used SPIOPschema.xlsx to determine where in the schema to add the property, you can close or minimize the file.
Edit CustomIFCToR3DMapping.xlsx
-
Go to [drive]:\Program Files\SmartPlant\Interop Publisher\3DInteropMappingFiles\CustomMappingFiles.
-
Copy the CustomIFCToR3DMapping.xlsx and place it in a different folder. Although you can edit the custom mapping files in the delivered folder location, we recommend that you make copies of delivered files and modify the copies.
-
Open the copied CustomIFCToR3DMapping.xlsx.
-
In the ClassMap sheet, insert a new PLATE row and enter the following column information:
-
Source Class - PLATE
-
Target Class - CR3DPlatePart
-
UID - GlobalId
-
-
In the PropertyMap sheet, create a new row and enter the following column information:
-
Source Class - PLATE
-
Source Property - Description
-
Target Interface - IJR3DElement
-
Target Property - Plate Description
The Target Property value is what you see in SmartPlant Foundation. This value does not have to be the same name as the Source Property value.
-
-
Save your edits and close the custom mapping file. Close all other spreadsheet files.