To Add Custom Pipe Elbow


Applies To
Product(s):OpenPlant Modeler
Version(s):CONNECT Edition Update 11 (10.xx.xx.xxx)
Environment:Windows 10/11 (64 bit)
Area: Settings
Subarea: -
Original Author:  Joseph Gelacio, Bentley Global Technical Support Group

Background

The following procedure details how to add a custom elbow to the OpenPlant Modeler component gallery.
          

Steps to Accomplish

  1. Add the ECClass in the Schema

    The following procedure details how to add a custom elbow to the OpenPlant Modeler component gallery.
    1. Open the OpenPlant_3D.01.08.ecschema.xml in the class editor and supplement with the OpenPlant_3D_Supplemental_Modeling.01.08.ecschema.xml schema.
    2. Navigate to the Pipe Elbow class.
    3. Right click on the Pipe Elbow class and select the Add Derived Class option:
    4. Add class name and display label according to the angle. For example, add the Name as PIPE_ELBOW_40_Degree and DisplayLabel as Pipe Elbow 40 Degree for 40 degree pipe elbow:
    5. In the Pipe Elbow class, go to the OpenPlant_Physical Child_classes section. Right click EC_Class_Name and select Add Element option. Add your class name in EC_Class_Name array:
    6. In the Custom Angle Pipe Elbow class, go to properties and select the Angle property in your class.
    7. Click Custom Attributes and select the Add/Remove option.
    8. Add the OpenPlant_Physical_Catalogue_Property_Map attribute from the custom attributes dialog. Make sure to set location as OpenPlant_3D_Supplemental_Modeling.01.08.
    9. Add Angle as an ECExpression value in the OpenPlant_Physical_Catalogue_Property_Map section. For example, the ECExpression value would be 40 for 40 degree pipe elbow.
      Note: If this property is not editable in class editor, open the OpenPlant_3D_Supplemental_Modeling.01.08.ecschema.xml file and find your class section. For example, for the PipeElbow 40 degree, we will search for PIPE_ELBOW_40_DEGREE and add the value in string tag under ECExpression:
    10. Right click your class and select Custom Attributes > Add/ Remove.
    11. Add Component Ports Information attribute from custom attribute dialog. Make sure to set location as OpenPlant_3D_Supplemental_Information_3DComponent.
    12. Add Number of Ports value as 2.
    13. Right click the Port Type and click Add Element twice.
    14. Add Port Type[0] value as MAIN_PORT and Port Type[1] value as RUN_PORT
    15. Save the schema.

    Add the required specs

    1. Open the spec and catalog .mdb files to add spec records for the 40 degree pipe elbow. For this example the elbow will be added to the Example.mdb file located in the following directory:

      Configuration\WorkSpaces\OpenPlantExample\WorkSets\Imperial\Standards\OpenPlant\Specs\

    2. Open the Elbow table in database and add a new record. Enter available specs for custom angle pipe elbow. Mention same name as in the schema under EC_Class_Name column.

    Add button in the Component Gallery

    1. Open the OPModeler.dgnlib file in OpenPlant Modeler CONNECT Edition from the following location:

      C:\ProgramData\Bentley\OpenPlant CONNECT Edition\Configuration\Workspaces\OpenPlantExample\WorkSets\Imperial\Standards\OpenPlant\Modeler\Dgnlibs

    2. In OpenPlant Modeler, right-click on an open area of the ribbon and select Customize Ribbon.
    3. In the Customize the Ribbon section of the Customize Ribbon dialog. Expand OpenPlant Modeler node:
    4. Next, expand Piping Gallery Component node then the Elbows node:
    5. Right click on the Elbows node and select Add New Button.
      Note: You can also select the New Button from the toolbar.
    6. In the properties section, set the button's Label, Description and Icon as required.

      Define the Key-in as:

      mechaddin place EC_CLASS_NAME dsc=Piping

      For example, For the 40 degree pipe elbow the key-in will be defined as:

      mechaddin place PIPE_ELBOW_40_DEGREE dsc=Piping

    7. Click Apply and close the dialog.
    8. Open a dgn file in the same workset and open the Elbows component gallery from the Piping ribbon tab.

      Notice the custom Elbow 40º is now available for placement.

See Also

 communities.bentley.com/.../errors-logs-messages-crashes-in-connect---openplant-isometrics-manager   

Comments or Corrections?

Bentley's Global Technical Support group requests that you please confine any comments you have on this Wiki entry to Forum section? section. THANK YOU!

 communities.bentley.com/.../autoplant-axsys-openplant-plantwise-forum