To get Three Ports
Generic Piping Components into
OpenPlant Modeler
Launch
Bentley Class Editor and Open
OpenPlant_3D.01.08.ecschema the latest AP2OP
Workset. The path is as follows,
C:\ProgramData\Bentley\OpenPlant CONNECT
Edition\Configuration\WorkSpaces\OpenPlantExample\WorkSets\AP to
OP OPPA33 Metric\Standards\OpenPlant\Schemas
Load all Reference schemas from this location:
C:\ProgramData\Bentley\OpenPlant CONNECT
Edition\Configuration\WorkSpaces\OpenPlantExample\Standards\OpenPlant\Schemas
Right Click on
OpenPlant 3D schema and select
Supplement Schema
Add the following two Supplemental schema:
Supplemental_Information_3DComponent
or
Supplemental Modeling
Use the same Reference schemas as used in
Step 2 and press
OK.
Expand the
Classes and follow the hierarchy as shown in
the figure, to find
Generic Piping Component.
Right Click on
Generic Piping Components and select
Add Derived Classes.
Specify its
Name and
Display Label as
GENERIC_PIPING_COMPONENT_TWO_PORT.
Go to the Parent Class
Generic Piping Component and Right click to
copy
Component Port Informationas a
Custom Attributes.
Paste this custom attribute into the newly created derived class
Generic Piping Component Two_Ports.
Now
Remove this custom attribute Component Port
Information from the Right click menu of the parent class.
Again,
Right Click on
Generic Piping Components and select
Add Derived Classes.
Specify its
Name and
Display Label as
GENERIC_PIPING_COMPONENT_THREE_PORT.
Paste the previously copied Component Port Information custom
attribute into this newly created derived class
GENERIC_PIPING_COMPONENT_THREE_PORT.
Add the Port No. as
3 and add its name as
BRANCH_PORT as shown below.
It will not be visible in real time once you
add it, to see port 3 switch to some other class and revert.
Save these changes to schemas and close the
Bentley Class Editor.
Now create a new iTwin on iTwin hub and setup it using this
updated workset.
Go to the machine where APIMB is installed (if not the same) and
navigate to this path:
C:\Program Files\Bentley\APiModelBridge\Assets
and Open
AP2OPMapping.xml file in Notepad.
Search for the following keyword:
generic_piping, until you can find the mapping
for
Generic_Piping_Component.
Copy this
APClass including all its
APProperties and paste it right below.
Rename the older
Generic_Piping_Component to
GENERIC_PIPING_COMPONENT_TWO_PORT.
Rename the pasted
Generic_Piping_Component to
GENERIC_PIPING_COMPONENT_THREE_PORT.
Remove all AP Classes
fromGENERIC_PIPING_COMPONENT_THREE_PORT and add
following:
<APClass
name="Base:AT_INLINETRAP,Base:AT_WYESWTRAP,Base:AT_RETTRAP,Base:AT_WYETRAP,Base:AT_VALVE_RELCHANGEOVER"
OPname="GENERIC_PIPING_COMPONENT_THREE_PORT"
Save this file at some other location and replace it with the
original one.
Now publish the docs containing
Three ports Generic Piping components.
Verify on iTwin hub preview that the mappings have been updated.
Go through the Import and upgrade process inside
OpenPlant Modeler and notice that now
Three ports generic piping components are not
being missed out.