How to Populate Workset Name on EC Property For Components in OPPID & OPM CONNECT Edition U9.



Applies To 
Product(s):OpenPlant Modeler CONNECT Edition
Version(s):

10.09.00.74 (Update 9)

Environment: Windows 10 (64-bit)
Area: Customization
Subarea: User Inteface
Original Author:Ashutosh Patil, Bentley Product Advantage Group

Background

This article will provide the steps to populate Project Name on an EC Property which can be further used to include in Components, pipeline,instrument when placed in OPPID or OPM CE U9.

Steps to Accomplish

  1. Launch Bentley Class Editor CE .


      
  2. Bentley Class Editor can also be launched through OpenPlant Project Administrator CE or directly through its desktop icon.


       
  3. For this modification New workspace - TESTING has been created and IMPERIAL as workset in same location in which OpenPlant Example can be found.

    In OpenPlant Project Administrator, Click on OpenPlant PID or OpenPlant Modeler application for the required project in WorkSpace and click on Tools. After clicking on OpenPlant PID, in Tools-> Class Editor icon gets enabled as show in image below.

     

     
  4.  After Class Editor is loaded
    Laucnhed OpenPlant.01.08.ecshema.xml & supplement it with OpenPlant_Supplemental_Tagging.01.08.ecshema.xml & OpenPlant_Supplemental_View.01.08.ecshema.xml through below default std path.
    (C:\ProgramData\Bentley\OpenPlant CONNECT
    Edition\Configuration\WorkSpaces\TESTING\WorkSets\IMPERIAL\Standards\OpenPlant\Schemas)    

    For OOTB Imperial Workset Kindly refer below Path:
    C:\ProgramData\Bentley\OpenPlant CONNECT Edition\Configuration\WorkSpaces\OpenPlantExample\WorkSets\Imperial\Standards\OpenPlant\Schemas

  5. After Schemas are loaded go to Named Item.
    Adding new properties in Named Item class reflect it into all its child classes directly.
    Also there would be no need to make changes in OPPID & OPM schemas respectively.


     
  6. In Named Item go to Properties tab and add new Properties as shown below and name it as PROJECT_NAME through steps shown below.


      
  7. Right on Project Name Selectcustom attribute and then Add/Remove.


      
  8. Add/Remove Custom Attribute naming dialog box would be popped up in that select two Custom Attributes : Category and Calculated ECProperty Specification as per highlighted steps below:

    Make sure the location for Category the Location should be  OpenPlant_Supplemental_View.01.08.ecshema.xml & Calculated ECProperty Specification into OpenPlant_Supplemental_Tagging.01.08.ecshema.xml then hit on Ok.
    Such that all the changes are located at supplemental schema level of workset 


      
  9. In Category custom attribute add values as highlighted below:


          
  10. Add below expression in EC Expression field and set the highlighted fields as shown below:

    ConfigVar.GetExpandedConfigVar("_USTN_WORKSETNAME")



  11. Right click on 'Right ECExpression SymbolSets' field and click 'Add element'  and add ConfigVar as highlighted below.

     

    Save the schema after all this changes.

    Note :If above step is not performed in CE Class Editor then kindly perform the same operation through V8i Class Editor.
     
  12. To verify results launch  OpenPlant Modeler CE .


     
  13. Place Pipeline and during its placement in Create Pipeline Dialog in Tag Information -PROJECT_NAME: IMPERIAL is reflected.


     
  14. Similarly in OPPID CE, Place Pipeline and during placement in Pipeline Tag creation dialog box same PROJECT NAME : IMPERIAL is reflected.





  15. If the Workset is connected to PlantSight then property PROJECT_NAME:IMPERIAL is getting reflected into Data Manager as well as in Queries section..

See Also

communities.bentley.com/.../how-to-add-actuator-along-with-its-graphics-to-existing-actuator-list-on-control-valve-placement-in-openplant-pid-connect-edition

Still a Problem?

If above problem still persists, then please create a Service Request and contact the Bentley Product Advantage group.  Please include a list of all relevant details to get in depth analysis for a solution or workaround