How to Modify Default Value for Device Type Code to a Specific Component Class


 

Applies To 
Product(s):OpenPlant PID
Version(s):08.11.11.43 (SS6)
Environment: Windows 7/8.1/10 (64 bit)
Area: Customization
Subarea: 
Original Author:Faisal Khan, Bentley Product Advantage Group

To Assign Device Type Code to a Specific Component Class in OpenPlant PID

Background

If user wants to change Device Type Code for a specific component class in OpenPlant PID, then it is possible by defining Device Type Code “Property Custom Attributes” Default Value for specific component class in OpenPlant_PID.01.07 schema.

Steps to Accomplish

  1. Launch Bentley Class Editor.

  2. Go to File menu option and select Open



  3. Open “OpenPlant_PID.01.07.ecschema.xml” schema from C:\ProgramData\Bentley\OpenPlantPID (SS6)\WorkSpace\Projects\[Project Name]\Dataset\schemas



  4. Select “OpenPlant.01.07.ecschema.xml” schema in “Locate a missing reference OpenPlant.01.07 for schema OpenPlant_PID.01.07” dialog from “C:\ProgramData\Bentley\OpenPlantPID (SS6)\WorkSpace\OPPID\schemas” and Open



  5. Once loaded, Right mouse click on OpenPlant PID in Class editor and select “Supplement Schema”



  6. Select “Add” from “Specify Supplemental Schemas” dialog



  7. Open “OpenPlant_PID_Supplemental_Imperial.01.07.ecschema.xml” from “C:\ProgramData\Bentley\OpenPlantPID (SS6)\WorkSpace\Projects\[Project Name]\Dataset\schemas”



  8. After adding supplemental schema, click “OK” to “Specify Supplemental Schemas” dialog.



  9. It will supplement the schema. Once it got supplemented, schema will be shown as OpenPlant PID [Supplemented] in Class Editor



  10. Press “Find Class” icon in Class Editor, write “Valve” in “Search For” field in “Find Class” Dialog and press Search Button



  11. Double click on searched class name “VALVE” or select “VALVE” and select Go to button



  12. Expand “Valve” node and select the component class for which you want to change Device Type code for example select Gate Valve from “Valve—Inline Valve”



  13. Go to Properties tab in right side pane and search “Device Type Code” property and select “Override” to allow changes to be done


    (NOTE: If "Override" button is grayed out then click "Custom Attributes..")



  14. Change “Default Value” in “Property Custom Attribute” from “HV” to required one say “TEST”
    (If Adding Custom Attribute then only add Default value and set IsGraphical to "True")



  15. Save changes and close class editor



  16. Launch OpenPlant PID and open model in same project in which changes are made

  17. Place a gate vale and verify that “Device Type Code” updated to new one i.e. “TEST”



  18. Place some other valve and verify that Device Type Code is “HV”

See Also

communities.bentley.com/.../22031.how-to-create-a-pick-list-on-ec-property-using-external-datasource-definition

communities.bentley.com/.../5375

See Video

communities.bentley.com/.../273189