How to Modify Tags Using IIF Expression in OpenPlant Project Administrator.



Applies To 
Product(s):OpenPlant Project Administrator CONNECT Edition 
Version(s):

10.06.00.23 & 10.10.00.72

Environment: Windows 10 (64 bit)
Area: Tagging
Subarea: Customization
Original Author:Shubham Sawant,Bentley Product Advantage Group

In OpenPlant Modeler CONNECT Edition, requirement is to modify Tags from Tag Editor/ Expression Editor using OpenPlant Project Administrator CONNECT Edition.

Background

In OpenPlant Project Administrator CE, new tool has been introduced for modification of Tags for various disciplines. This wiki article explains the procedure for modification of Tags OpenPlant Project Administrator CE Update 6 and Latest Update 10. 

Steps to Accomplish

  1. Launch OpenPlant Project Administrator CONNECT Edition.



    Case I :- OpenPlant Project Administrator Update 6

  2. From Settings ribbon, expand desired workset, here OpenPlant Imperial workset is considered & select OpenPlant Modeler application. Click on Settings > Tag Editor as shown below.




  3. From Left pane select Piping Network System to modify Tags for Pipeline. This will show the Default Expression that system is taking after placing the Pipeline as shown below.

    Expression :- this.UNIT_NAME & "-" & this.SERVICE_NAME & "-" & this.NUMBER & "-" & this.SPECIFICATION


    Pipeline Tag with above Expression is shown below



  4. In the previous Expression add the desired property (here NOMINAL_DIAMETER as an example) that to be evoked in Tag. Then Validate the current expression & Save as shown

    Expression :- this.UNIT_NAME & "-" & this.SERVICE_NAME & "-" & this.NUMBER & "-" & this.SPECIFICATION & "-" & this.NOMINAL_DIAMETER



    Modified Pipeline Tag with above Expression is shown below



    As shown, Nominal Diameter is available in the Tag.

  5. Now, for example the requirement is to evoke property of Insulation Material on Tag of Pipeline by IIF Expression as shown. This IIF Expression works as, for example some Pipeline has insulation & some will not. This expression let the system read when the Pipeline is insulated it should reflect the material name on Tag & if Pipeline is not insulated then it should be blank. Once done, Validate the expression & Save it.

    Expression :- IIF(this.INSULATION="" ,this.UNIT_NAME & "-" & this.SERVICE_NAME & "-" & this.NUMBER & "-" & this.SPECIFICATION,this.UNIT_NAME & "-" & this.SERVICE_NAME & "-" & this.NUMBER & "-" & this.SPECIFICATION & "-" & this.INSULATION)



  6. One can save the Expression as template. Select Save Expression as template option at right pane. Fill the required Fields & hit Save as shown.




  7. Launch OpenPlant Modeler CONNECT Edition, place a Pipeline without insulation & notice the behavior as shown



  8. Now, place a Pipeline with Insulation Material Fiber Glass & notice the behavior as shown




    Case II :- OpenPlant Project Administrator Update 10


  9. From Settings ribbon, expand desired workset, here OpenPlant metric workset is considered & select OpenPlant Modeler application. Click on Settings > Expression Editor as shown below.



  10. From Left pane select Pipeline. It is showing the Name property in Expression.



  11. Select Name Property to modify Tags for Pipeline. This will show the Default Expression that system is taking after placing the Pipeline as shown below.

    Expression :- this.UNIT_NAME & "-" & this.SERVICE_NAME & "-" & this.NUMBER & "-" & this.SPECIFICATION



    Pipeline Tag with above Expression is shown below



  12. In the previous Expression add the desired property (here NOMINAL_DIAMETER as an example) that to be evoked in Tag. Then Validate the current expression & Save as shown

    Expression :- this.UNIT_NAME & "-" & this.SERVICE_NAME & "-" & this.NUMBER & "-" & this.SPECIFICATION & "-" & this.NOMINAL_DIAMETER



    Modified Pipeline Tag with above Expression is shown below



    As shown, Nominal Diameter is available in the Tag.

  13. Now, for example the requirement is to evoke property of Insulation Material on Tag of Pipeline by IIF Expression as shown. This IIF Expression works as, for example some Pipeline has insulation & some will not. This expression let the system read when the Pipeline is insulated it should reflect the material name on Tag & if Pipeline is not insulated then it should be blank. Once done, Validate the expression & Save it.

    Expression :- IIF(this.INSULATION="" ,this.UNIT_NAME & "-" & this.SERVICE_NAME & "-" & this.NUMBER & "-" & this.SPECIFICATION,this.UNIT_NAME & "-" & this.SERVICE_NAME & "-" & this.NUMBER & "-" & this.SPECIFICATION & "-" & this.INSULATION)



  14. Launch OpenPlant Modeler CONNECT Edition, place a Pipeline without insulation & verify the result as shown





  15. Now, place a Pipeline with Insulation Material Fiber Glass & verify the result as shown


See Also

communities.bentley.com/.../how-to-add-dimensional-unit-to-added-property-in-openplant-modeler-connect-edition

Still a Problem?

If above problem still persists, 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