Intergraph Smart Instrumentation allows a predefined list of documents to be published along with their data, while other documents can be published without data.
In order for data to be published with a document, mapping must exist between the Tool Schema’s properties and the SmartPlant Schema's properties. The mapping is done using the Schema Editor.
A published document with data can be described using the following pseudo code:
-
Try to create a document object based on definitions present in the INtoolsMap.xml, SmartPlant Schema files, and the Intergraph Smart Instrumentation database.
-
If the document cannot be created, then the document is not supported.
-
Load the ContextMap.xml file.
-
Get the Schema and document definition for the document’s ClassDef.
-
Get data for the document based on its associated interfaces and the relevant Intergraph Smart Instrumentation database tables.
-
Create a collection of objects associated with this document.
-
Get the properties based on the collection of associated objects.
-
Compare the properties with the list of properties required for publishing (passed over to the SmartPlant Adapter from Intergraph Smart Instrumentation) and publish only those needed.