How to Add 'DN' Prefix to Valve Size Annotation in OpenPlant PID


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

Background

User want to add DN as a prefix in valve size and annotate it while placement. By default valve size is annotated as 100 but user want to display the valve size as DN100.

Steps to Accomplish

  1. Open Class Editor and load OpenPlant_PID schema.

  2. Supplement it with OpenPlant_PID_Supplemental_Imperial schema.

  3. Go to FLUID_REGULATOR class and locate SIZE property.



  4. Change the visibility to FALSE in ‘Annotation Custom Attribute’.



  5. Create new property and name it DISPLAY_SIZE.



  6. Add ‘Calculated ECProperty Specification’ custom attribute on this property.



  7. Add below expression in EC Expression field and define other fields as highlighted.

    "DN" & this.SIZE



  8. Add another custom attribute ‘Annotation Custom Attribute’.



  9. Add values as shown below:



  10. Save the changes and verify the results.


See Also

communities.bentley.com/.../273191