
Applies To | |
Product(s): | OpenPlant PID |
Version(s): | 08.11.10.XXX |
Environment: | Windows 7/8.1/10 (64 bit) |
Area: | Customization |
Subarea: | Reports |
Original Author: | Swapnil Joshi, Bentley Product Advantage Group |
Background
User might want to add a unit for Temperature and other measurable quantities in the OpenPlant PID dgn reports and in the database. The steps mentioned in the wiki helps user accomplish this requirement.
Steps to Accomplish
This requirement is accomplished in different stages.
A. Creation of a new Property in the Class Editor.
- Launch Class Editor and Load OpenPlant PID schema and supplement Imperial Schema.

- Navigate to Valve Class.

- In the Properties Tab, create a new property for the valve temperature as shown below.

- Add Custom Attributes as shown below and change the schema location to supplemental.

- Update the Property as shown in the image below.

- Save schema.
B. Adding this property to DGN reports
- Launch OpenPlant PID and open BOM.cel file Valve Row model.

- Copy Manufacturer column along with the text and paste it alongside as shown below.

- Modify the text as shown below.

- Save settings and close the model.
C. Assignment of the unit and value in OPPID - Launch OPPID model and place a valve, in the OPERATING CONDITIONS Valve Design Temperature UOM property will be present select any of the available units and assign a value.

- Now select Utilites->Reports.

- Select the Valve List and Edit.

- Select DGN Templates and click on ellipsis in the Query row.

- The Query dialog will open, check the properties by clicking on the option below.

- Navigate to the property Valve Design Temperature UOM. Select and click on OK.

- A dialog will be prompted to Save the Valve Crystal Template, click on Yes.

- Once the Template has been saved. Click on DGN reports and place it in the model. Confirm, if we can see the value in the report. Or if the report is already placed, one can select and refresh the report for the property to reflect.

D. Creating a property in the Database.
- Launch Bentley Project Administrator.

- Expand Database Node, select Databases and click on Edit Tables.

- Select Valve Table and click on Edit.

- Disable Protected and click on Table Design.

- The Valve Table will launch in Access, add a field name and Data Type as shown below.

- Save the file and close.
- Close Bentley Project Administrator.
E. Mapping the Database with the field name
- Launch Bentley Class Editor, load OpenPlant_Supplemental_Mapping_OPPID schema.

- From the Database Mapping menu click on Open.

- If any mapping is present remove it.

- Select Browse and add a schema path as a mapping location. And select OpenPlant.01.07 schema.

- From the Database Mapping menu, select Edit Database Structure option.

- Select Database Mapping and remove.

- Click on Load and type in PLANTPROJECT_DATABASEMAPPING in the Name and Description field. Click on ellipsis in the Data Source row.

- Navigate to the directory where the ProjectDatabase is located.

- Click on OK. The path will be populated in the dialog.

- Test Connection and click on OK.

- Close Database Structure Editor.
- In the Class Editor, browse to the Valve class select VALVE_TEMP_UOM property.

- In the Right bottom corner there is Property Mapping Information.

- Select columns as mentioned in the below image and click on OK.

- Click on OK.
- Save Database Mapping.

- Now when the drawing is synchronized to the database it will also have the property synced and can be viewed in the database.
Comments or Corrections?
Bentley's Product Advantage Group requests that you please submit any comments you have on this Wiki article in the "Comments" area below. THANK YOU!