
| Applies To | |
| Product(s): | OpenPlant PID |
| Version(s): | 08.11.10.XXX |
| Environment: | Windows 7 (64 bit) |
| Area: | Customization |
| Subarea: | |
| Original Author: | Harpreet Singh, Bentley Product Advantage Group |
Background
With every new project there is a need to follow specific tag formats for different type of components as provided by the client. This article will explain how tag format for motors can be customized to meet the client requirements. By default Motor tag in OpenPlant PID consist of Device Type Code-Number as shown below.

For this exercise we will add new property SUFFIX and the existing AREA property in tag.
Steps to Accomplish
- Open class editor and load OpenPlant schema from \\Workspace\OPPID\schemas folder.
- Supplement it with OpenPlant_Supplemental_Tagging schema from \\Workspace\Project\%PROJECT_NAME%\Dataset\Schemas folder.
- Go to MOTOR class and add new SUFFIX property on it.

- Add category custom attribute and add below values.

- Select NAME property and click Override button.

- Change the location of Category and Calculated ECProperty Specification to OpenPlant_Supplemental_Tagging as shown below. This is CRITICAL.

- Change the EC Expression and Parser expression to add PLANT_AREA and SUFFIX properties in Calculated ECProperty Specification custom attribute.

or you can just paste the expressions given below in their respective fields.
EC Expression: this.PLANT_AREA & "-" & this.DEVICE_TYPE_CODE & "-" & this.NUMBER & "-" & this.SUFFIX
Parser Expression: ^[?\w]*-(?<DEVICE_TYPE_CODE>.*)-(?<NUMBER>.+)?-(?<SUFFIX>.*)|(?<NUMBER>.+)
- Save the changes in schema and verify the result in OpenPlant PID.

Comments or Corrections?
Bentley's Product Advantage Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!