How to Populate Document Description on Valve Properties in OpenPlant PID



Applies To 
Product(s):OpenPlant PID
Version(s):

CONNECT Edition 10.09.00.74 (Update 9)

Environment: Windows 8.1/10 (64-bit)
Area: Customization
Subarea: Schema 
Original Author:Aishwarya Kulkarni, Bentley Product Advantage Group


Background

The requirement is to populate the document's description on valves placed in the drawing. This can be achieved by making changes to the schema using a class editor. This wiki article explains the procedure for it.

Steps to Accomplish

  1. Launch class editor and load OpenPlant_PIDschema for the desired workset.  This schema is generally located in

    C:\ProgramData\Bentley\OpenPlant CONNECT Edition\Configuration\Workspaces\OpenPlantExample\WorkSets\Metric\Standards\OpenPlant\Schemas
  2. Supplement it with 01.08.ecschema.xml.

    Refer to the attached Wiki link to know, How to Load & Supplement Schema in Bentley Class Editor

    Click Here(attach link)



  3. Navigate the VALVE class as shown below



  4. Switch to the properties tab and search DESCRIPTION property and click Override Refer below image



  5. Click on the Custom Attributes button to add a new custom attribute to this property as shown below




  6. Add "Calculated ECProperty Specification" custom attribute from the list and change the location of a custom attribute by clicking on the location field and select OpenPlant_PID_Supplemental_Desgin.01.08.  Refer below image



  7. In the EC Expression field add below expression and add the values for other fields as shown below.

    EC Expression: GetRelatedInstance("Document_Is_Related_To_Object:1:PID_DOCUMENT").DESCRIPTION



  8. Save all changes in the schema as shown below


  9. Launch the OpenPlant PID and navigate the drawing ribbon tool as shown below


  10. Open the Drawing setting and add the description property as a Test. Refer below image



  11. Place the valve and check the element information as shown below


See Also 

communities.bentley.com/.../how-to-create-issue-for-specified-component-in-plantsight-visualizer