Applies To | |
Product(s): | OpenPlant PID |
Version(s): | 08.11.10.xxx (SS5) | 08.11.11.xxx(SS6) |
Environment: | Windows 7/8.1/10 (64 bit) |
Area: | Customization |
Subarea: | Data Manager |
Original Author: | Nikhil Salunkhe, Bentley Product Advantage Group |
Background
In OpenPlant PID, user wants specific tag format for Fluid regulator class and have it populated in Data Manager. In this article, steps are defined on How to show Modified Tag Format in Data Manager.
For example, tag Format (805HV0001) whereas, 805 is UNIT, HV is DEVICE TYPE CODE and 0001 is NUMBER
Step to Accomplish
- Launch Class editor.
- Load OpenPlant.01.07.ecschema
- Supplement with OpenPlant_Supplemental_Tagging.01.07.ecschema
- Navigate to Fluid Regulator, switch to Properties tab , go to Name and change EC expression and parser regular expression as follows.
EC Expression: this.UNIT & this.DEVICE_TYPE_CODE & this.NUMBER
Parser Regular Expression: ^(?<UNIT>[?\w]{3})(?<DEVICE_TYPE_CODE>[?\D]{2})(?<NUMBER>.*)
Note: Ensure that properties which are mentioned in EC Expression (UNIT, DEVICE TYPE CODE & NUMBER) are overridden. If not, then override all the properties.
- Save all the changes.
- Launch Project Administrator, expand Project node,, expand Database, select databases then PROJDATA and click on Edit Tables
- Select Valve from the list, click on Edit and select Table Design
- Add VUNIT in Database, save the file, click OK and close the dialog box.
- Open Class editor, click on Database Mapping and select PlantProjectSchema.01.07 from dropdown.
- Now, click on edit database structure, Remove old mapping and click on Load.
- Fill below data, browse to Plant Project Database folder in data source -> Test and Click OK.
- Verify new Table and close the dialog.
- Select Valve from Right pane, switch to properties tab, select Unit property and map it with VUNIT
- Save the Database mapping and schemas.
- Relaunch Project Administrator, expand your projectà Database à Tag Types à Define Tag Code for AT_HVALVE
AT_HVALVE : Z-C-N
Z – UNIT
C – DEVICE TYPE CODE
N – NUMBER
- Close Project Administrator.
- Launch OpenPlant PID, create new file, place pipeline, pumps and few valves and synchronize the drawing.
- Open Data Manager and Check Valve List.