How to Create Jacketed Pipelines in OPPID


  
 Applies To 
  
 Product(s):OpenPlant PID
 Version(s):08.11.10.XXX
 Environment: Windows 7 64 bit
 Area: Customization
 Subarea: 
 Original Author:Harpreet Singh, Bentley Technical Support Group
  

Introduction

This article will explain the customization needed to create Jacketed Pipeline in OPPID.

Creating New Line Style

  1. Launch OpenPlant PID and open a new drawing.
  2. Go to Element > Line Styles > Edit.
  3. In the Line Style Editor go to File > Open and browse and load the PID_LineStyles_ANSI.rsc file located in the C:\ProgramData\Bentley\PowerPID (SELECTseries 5)\WorkSpace\Projects\%Project%\Dataset\symb directory.
  4. From the menu select Edit > Create > Compound.
  5. Name the new style as Jacketed and new compound (JACKETED_PIPELINE) in the highlighted space in the picture below:



    Note: Please note the type (Compound) on the right side, this is very critical.
  6. Click on Insert button in the Line Style Editor dialog.

  7. In the Select Component dialog browse the list and look for the line of Type of Internal and a Description of Default solid line. Select OK.

  8. Back in Sub-Components section of the dialog make sure the line you just added is selected and enter an Offset value of 0.0625. This line will be the top line in the compound line style.
  9. Repeat the process and select Insert in the Sub-Components section, select the line of Type Internal and Description of Default solid line. Select OK. This line will not get an offset as this will be the “middle” line in the compound line style.

  10. Repeat the process again adding the same Default solid line but this time enter in an Offset of -0.0625. NOTE – this is a NEGATIVE offset.

  11. From the Line Style Editor dialog menu select File > Save and exit.

 Editing the Schema via Class Editor

  1. Launch Class Editor and load OpenPlant_PID.01.04 schema.
  2. Supplement it with OpenPlant_PID_Supplemental_Imperial.01.04 schema.
  3. Search the PIPING_NETWORK_SYSTEM class from search tool in class editor.
  4. Right click on PIPING_NETWORK_SYSTEM class and from context menu select Add Derived Class.
  5. Name the new class and add two custom attribute as shown below and add the values.

  6. Now go to PIPELINE_LIST class and add the new class in the list.
  7. In Class Name Display List attribute, right click on Items and select Add element option.

  8. Now add the values as shown below:

  9. Save the changes in the class editor.

Modifying the Project DGNLIB files

  1. Launch OpenPlant PID.
  2. When prompted to select a file switch the file type to DGN Library Files (*.dgnlib) and browse to the project workspace\dataset\dgnlibs directory.

  3. Select the PIDProjectTemplates.dgnlib file.
  4. When the file loads from the menu select Settings > Levels > Manager.

  5. In the Level Manager dialog add a new level named Jacketed Pipeline.

  6. Set the desired color (Cyan for example) and set the Style and Weight to 0.
  7. Close the level manager dialog.
  8. Now go to Element > Templates.
  9. In the Element Templates dialog expand the tree to PIDProject Templates.dgnlib > Piping > Pipeline.

  10. Right click on the Pipeline node and from the context menu select New Template.

  11. Name the Template as shown below. Pay attention to all settings especially Line Style Scale.



    NOTE – This name must match the template name created back in the schema editing section.

  12. Exit the DGNLIB file.
  13. Now Open the PIDProjectSymbols.dgnlib file.
  14. Go to Workspace > Customize.
  15. In the Customize dialog, Tools tab, expand the tree until you locate Major Pipeline.

  16. Right click on it and select Copy option.
  17. Highlight the Piping node, right click and select Paste.
  18. Select the newly copied tool and rename it to Jacketed Pipeline.
  19. With the new Jacketed Pipeline tool selected pick in the Properties category, Key-in field and change the class name to jacketed_pipeline. (Matches the class name defined for the new line type in the schema.)

    NOTE – The icon needs to be created and changed in the task. This can be accomplished using an icon creation tool. This is not covered in this document.

  20. Change the Balloon Text to Jacketed Pipeline
  21. In the right panel expand the User Tasks category and locate the Piping task and expand it.
  22. Now drag and drop the Jacketed Pipeline tool from left panel to right panel under Piping node.

  23. Exit the DGNLIB file.

Verify the Results

  1. Launch OpenPlant PID.
  2. Open a drawing and place a Jacketed Pipeline.
  3. Add few components in the line as shown below to verify if it is working correctly.

Comments or Corrections?

Bentley's Technical Support Group requests that you please confine any comments you have on this Wiki entry to this Comments or Corrections?" section. THANK YOU!