Creating a Mapping.json File for Imports That Do Not Have an OpenPlant Schema
Precondition:
- The user has imported a source file without OpenPlant schema.
- A Mapping.json file is missing.
- Precondition for creating queries: You have knowledge of SQL and knowledge of the iModel schema.
- If the import is completed, in the menu click .
- Create a SQL query that returns all relevant 2D or 3D objects from the import that need to be mapped.
- Create a mapping.json file for the import.
- Copy the SQL code of the query and paste it into Mapping.json.
- In Mapping.json, use the RelationshipsColMap property to create an object relationship. For more information, see Creating Object Relationships Using the User Label.
- Optional: Edit the file if necessary.
- Save Mapping.json in the same folder as the source files of the import.
- Reimport the import with Mapping.json.