Applies To Product(s): OpenPlant PID Version(s): 08.11.10.XXX & Higher Environment: Windows 7/8/10 (64 bit) Area: Customization Subarea: Original Author: Deepak Singh, Bentley Product Advantage Group Background User requirement is to add custom property in pipeline tag, also created custom property must have ability to select its defined values through a drop down list. Steps to Accomplish Launch Bentley Class Editor. Open OpenPlant PID schema of desired project, say here metric. Path: C:\ProgramData\Bentley\OpenPlantPID (SS6)\WorkSpace\Projects\OPPID_Metric\Dataset\schemas Navigate to PIPING_NETWORK_SYSTEM class. Switch to Properties tab. Click on Add > New to add a property Add a new property INSULATION_TYPE as shown below. Ensure that TypeName is set to int as shown above Right Click on INSULATION_TYPE property. Select Custom Attributes > Add/Remove Add StandardValues custom attribute for newly created INSULATION_TYPE property as shown. Click on OK. Scroll down to StandardValues custom attribute. Right Click on ValueMap > Add element. Enter the desired display string to add these values in drop-down list for Insulation Type property. Add another custom attribute Category & enter the fields as shown below. Save the settings. Using Bentley Class Editor, open OpenPlant_Supplemental_Tagging.01.07. ecschema from below location Path: C:\ProgramData\Bentley\OpenPlantPID (SS6)\WorkSpace\Projects\OPPID_Metric\Dataset\schemas Navigate to Piping Network System class, switch to Properties tab. Add a new property as INSULATION_TYPE as shown. Add Category custom attribute and enter details as shown. Search “NAME” property & update EC Expression as well Parser as shown. ECExpression: this.UNIT_NAME & "-" & this.SERVICE_NAME & "-" & this.NUMBER & "-" & this.SPECIFICATION & "(" & this.INSULATION_TYPE & ")" Parser: ^[?\w]*-[?\w]*-(? [?\w]*)-(? [a-zA-Z]{1,20})([?\w]*) Save all the settings & verify the result. See Also Still a Problem? If above problem still persist, then please create a Service Request and contact the Bentley Product Advantage group. Please include a list of all relevant details to get in depth analysis for a solution or workaround. 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!
↧