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 User wants to include SUFFIX property in Instrument tag. This article will help user in customizing the instrument tag and show how database tag format can be modified to adjust the SUFFIX property. 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 INSTRUMENT class and locate NAME property. Modify the EC Expression to add SUFFIX property as highlighted below. this.GetRelatedInstance("PLANT_AREA_HAS_NAMED_ITEM:1:PLANT_AREA, NAME:?").NAME & "-" & this.DEVICE_TYPE_CODE & "-" & this.NUMBER & this.SUFFIX Modify the parse expression as well to accommodate SUFFIX property. ^[?\w]*-(? [?\w]*)-(? [0-9]{1,4})(? [0-9a-zA-Z]) Note: In the above expression, character limit has been set to 4 for NUMBER property which user can change as per their requirement. Copy the Category custom attribute from NAME property. Paste the custom attribute on SUFFIX property. Save the changes in schema. Modify Database Tag Format Launch Project Administrator and login to your project. Go to Tag_Type node under Database and select AT_INST_ tag type. Double click on the tag type to open the ‘Edit Tag Type’ dialog. Add delimiter from Delimiter list as shown below. Now select SUFFIX from the available fields list. Change the ‘Required Fields’ to 4 as highlighted below. 7. Click OK to save the changes and close Project Administrator. 8. Launch OPPID and verify the result. 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!
↧