How To Show Modified Tag Format in Data Manager


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

  1. Launch Class editor.

  2. Load OpenPlant.01.07.ecschema



  3. Supplement with OpenPlant_Supplemental_Tagging.01.07.ecschema



  4. 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.

  5. Save all the changes.

  6. Launch Project Administrator, expand Project node,, expand Database, select databases then PROJDATA and click on Edit Tables



  7. Select Valve from the list, click on Edit and select Table Design





  8. Add VUNIT in Database, save the file, click OK and close the dialog box.



  9. Open Class editor, click on Database Mapping and select PlantProjectSchema.01.07 from dropdown.




  10. Now, click on edit database structure, Remove old mapping and click on Load.







  11. Fill below data, browse to Plant Project Database folder in data source -> Test and Click OK.



  12. Verify new Table and close the dialog.



  13. Select Valve from Right pane, switch to properties tab, select Unit property and map it with VUNIT



  14. Save the Database mapping and schemas.

  15. 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



  16. Close Project Administrator.

  17. Launch OpenPlant PID, create new file, place pipeline, pumps and few valves and synchronize the drawing.





  18. Open Data Manager and Check Valve List.

See Also:

communities.bentley.com/.../how-to-define-color-for-manual-annotation-same-as-default-annotation