How to Change Annotation Text Color in OpenPlant PID


Applies To 

Product(s):

OpenPlant PID

Version(s):

08.11.11.43 (SS6)

Environment: 

Windows 7/8.1/10 (64 bit)

Area: 

Configuration

Subarea: 

Original Author:

Faisal Khan, Bentley Product Advantage Group

To Change Annotation Text Color in OpenPlant PID 

Background

User can change any annotation color in OpenPlant PID by defining the text style and Element Template for specific annotation. In below mentioned case we will discuss Off Page Connector’s Notes Annotation color changes.

Steps to Accomplish

  1. Launch OpenPlant PID say in OPPID_Imperial



  2. Place an Off Page Connector in drawing and connect to a pipeline



  3. Right Mouse click on Page Connector and select Annotate



  4. Select any annotation say LINK_LABEL and Place Annotation



  5. Annotation will be placed but in grey color



  6. Select the annotation and open Element Info and observe the Template and Text Style



  7. Go to Utilities -- > Key-in



  8. Select currently placed Annotation and Run “pid component dump” key in



  9. Observe the Parent Field Name for the annotation 



  10. Open PIDProjectTemplates.dgnlib file from Dataset -- > dgnlibs project folder



  11. Go to Element -- > Text Styles



  12. Text styles are defined here just like PID



  13. Now either create new Style or Copy this PID style to define new Text Style with required color



  14. Set the color





  15. Right mouse click on Text Style and select “Activate”



  16. Save the Text Style

  17. Go to Element menu and select Element Templates



  18. Navigate to piping folder



  19. Right mouse click and select “New Template”



  20. Create new Element Template and define color



  21. Close Element Templates dialog

  22. Select File Save and close OpenPlant PID



  23. Launch Bentley Class Editor

  24. Open “OpenPlant_PID.01.07.ecschema.xml” schema









  25. Once schema opened, right click to “Supplement Schema”



  26. Press “Add”  in “Specify Supplement Schemas” dialog



  27. Add “OpenPlant_PID_Supplemental_Imperial.01.07.ecschema.xml”



  28. Press “OK” to “Specify Supplement Schemas” dialog





  29. Once schema got supplemented, press “Find Class”



  30. Search for “Off Page Connector”



  31. Select OFFPAGE_CONNECTOR and select “Go To”



  32. Go to “Properties” tab and look for property we have noticed in step 9 above i.e. Parent Class Name (LINKED_MODEL)



  33. Select “Override” to change the value



  34. Change Text Style and Element Template to whatever defined above



  35. Save changes and close class editor



  36. Launch OpenPlant PID using same units in which changes are made i.e. OPPID_Imperial and repeat Steps 3 to 5 



See Also

communities.bentley.com/.../22582.how-to-customize-pipeline-box-annotation

Comments or Corrections?

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