How to customize the Valve Tag Number to start at another default value other than 0 in in OpenPlant



Applies To 
Product(s):OpenPlant PID CE
Version(s):

10.09.00.74 Update9

Environment: Windows 7/8.1/10 (64-bit)
Area: Customization
Subarea: Schema 
Original Author:Aishwarya Kulkarni, Bentley Product Advantage Group


Background

In OpenPlant PID CONNECT Edition, As per the user’s request, how to place Valve with using automatically increment Tag NumberFor example, if the desired default tagging is for the Hand Valves to start with 100 then the first tag created should be an example as CV-100. The next valve to be placed will automatically increment from 100 to 101   This wiki article explains the procedure for it.

Please note these modifications will only effect valves that will be placed after this customization in a "NEW" project meaning the no Valve Tags in the database. The reason is that the function that is being used below will search for the Maximum Value by default and then increment by that number. In order for this to work, the first valve to be placed in the project drawings will be numbered with the first desired value. 


Steps to Accomplish

  1. Launch Bentley Class Editor.

  2. Open OpenPlant.PID.01.08.ecschema.xml and Supplement it with OpenPlant_PID_supplemental_Desging 01.08.ecschema.xml.

    Refer to the attached Wiki link to know, How to Load & Supplement Schema in Bentley Class Editor

    Click Here(attach link)

      
  3. Navigate the Instrument Class. Switch the property Tab and select the Number property as shown below 





  4. Right-click on the Number property and click on the add-remove custom attributes. Refer below image 




  5. Add Property Custom Attribute and using the down arrow add this custom attribute. Ensure to change schema location for this applied custom attribute as shown below.



  6. Save all the schema changes. Verify the results in OpenPlant PID. 

  7. Place the first new control valve in a new P&ID in the project. Once this is set the user will have to place the first valve and set the number to 100. After this is done every valve placed after this will automatically increment to the highest number – so Valve 1 = 100, Valve 2 when placed will be 101, and so on.








See Also

communities.bentley.com/.../how-to-show-3-port-information-pipe_5f00_lateral_5f00_tee_5f00_reducing_5f00_one_5f00_run_5f00_and_5f00_branch-in-isometric-drawing