How To Add Custom Property in Pipeline Tag in OpenPlant PID


Applies To 
Product(s):OpenPlant PID
Version(s):08.11.10.XXX & Higher
Environment: Windows 7/8/10 (64 bit)
Area: Customization
Subarea: 
Original Author:Deepak Singh, Bentley Product Advantage Group

Background

User requirement is to add custom property in pipeline tag, also created custom property must have ability to select its defined values through a drop down list.

Steps to Accomplish

  1. Launch Bentley Class Editor.

  2. Open OpenPlant PID schema of desired project, say here metric.

    Path: C:\ProgramData\Bentley\OpenPlantPID (SS6)\WorkSpace\Projects\OPPID_Metric\Dataset\schemas

  3. Navigate to PIPING_NETWORK_SYSTEM class. Switch to Properties tab.

  4. Click on Add > New to add a property

  5. Add a new property INSULATION_TYPE as shown below.



  6. Ensure that TypeName is set to int as shown above

  7. Right Click on INSULATION_TYPE property. Select Custom Attributes > Add/Remove



  8. Add StandardValues custom attribute for newly created INSULATION_TYPE property as shown.



  9. Click on OK.

  10. Scroll down to StandardValues custom attribute. Right Click on ValueMap > Add element.



  11. Enter the desired display string to add these values in drop-down list for Insulation Type property.



  12. Add another custom attribute Category & enter the fields as shown below.



  13. Save the settings.

  14. Using Bentley Class Editor, open OpenPlant_Supplemental_Tagging.01.07. ecschema from below location

    Path: C:\ProgramData\Bentley\OpenPlantPID (SS6)\WorkSpace\Projects\OPPID_Metric\Dataset\schemas

  15. Navigate to Piping Network System class, switch to Properties tab.

  16. Add a new property as INSULATION_TYPE as shown.



  17. Add Category custom attribute and enter details as shown.



  18. Search “NAME” property & update EC Expression as well Parser as shown.

    ECExpression: this.UNIT_NAME & "-" & this.SERVICE_NAME & "-" & this.NUMBER & "-" &  this.SPECIFICATION & "(" & this.INSULATION_TYPE & ")"

    Parser: ^[?\w]*-[?\w]*-(?<NUMBER>[?\w]*)-(?<SPECIFICATION>[a-zA-Z]{1,20})([?\w]*)



  19. Save all the settings & verify the result.

See Also

communities.bentley.com/.../how-to-addremove-tools-in-main-task-of-openplant-pid 

communities.bentley.com/.../273187