A class publisher is created for each SPMapClassDef in the Tool Schema that has a valid ProgID in the ProcessCriteria field.
The following table represents the P&ID types in relation to a SPMapClassDef:
P&ID Item Type |
SPMapClassDef |
ProgID |
---|---|---|
Equipment |
Equipment |
EFAdapter.EqDataExchanger |
Vessel |
Vessel |
|
Exchanger |
Exchanger |
|
Mechanical |
Mechanical |
|
EquipmentOther |
EquipmentOther |
|
PipeRun |
PipeRun |
EFAdapter.PipeRunDataExchanger |
Nozzle |
Nozzle |
EFAdapter.NozzlePublisher |
Instrument |
Instrument |
EFAdapter.InstrPublisher |
Instrument |
Instrument |
EFAdapter.CtrlSysFuncExchnger |
PipingComponent |
PipingComp |
EFAdapter.PpCompDataExchanger |
PipingPoint |
PipingPoint |
EFAdapter.PipingPointPublisher |
Pipeline |
Pipeline |
EFAdapter.PipeLinePublisher |
InstrumentLoop |
InstrLoop |
EFAdapter.InstrLoopDataExchanger |
EquipComponent |
EquipComponent |
EFAdapter.EquipCompPublisher |
InlineComponent |
InstrumentInline |
EFAdapter.InstrInlDataExchanger |
ItemNote |
ItemNote |
EFAdapter.NotePublisher |
OPC |
OPC |
EFAdapter.OPCPublisher |
SignalRun |
SignalRun |
EFAdapter.SigConnPublisher |
SignalPoint |
SignalPoint |
EFAdapter.SignalPointPublisher |
Representation |
Representation |
EFAdapter.RepresentationPublisher |
The Class Publisher contains code for the following tasks:
-
Query the Smart P&ID Database – The Class Publisher queries the database to obtain the collection of items to be published.
-
Create a Data Object – For each item to be published, the Class Publisher creates a data object in the document container. The class of this object is the SmartPlant Class related to the MapClass via the MapClassToClass relationship.
-
Set the Property Values – The property values on the data object are set according to the values on the Smart P&ID item. The list of properties to be published is defined by the list of MapProperties related to the current MapClass.
-
Publish Relationships – The Class Publisher defines the types of relationships that are to be published for each data object that it publishes.