How to Assign Level for Equipment Tag Using Named Expression


 Applies To 
  
 Product(s):OpenPlant Modeler
 Version(s):08.11.09.XXX
 Environment: Windows 7 (64 bit)
 Area: Settings/Attribute
 Subarea: -
 Original Author:Rahul Kumar, Bentley Technical Support Group
  

To Assign Level by Equipment Tag in OpenPlant Modeler using Named Expressions.

Background 

OpenPlant component symbology is managed in the typical MicroStation fashion. It is controlled through a combination of Named Expressions (used to read attributes and assign the Element Templates accordingly) and Element Templates (where symbology is defined for the elements identified by the Named Expression).

A modification in ‘Named Expression’ should require for changing the Equipment level as per Equipment Name and Tag Number  like TANK-T-21, PUMP-PMP-33, VESSEL-V-19 etc. see below exercise where similar content has been described. 

Steps to Accomplish

  1. Go to File from Main Menu option and open DGN library files (dgnlib). See image below :



  2. Under Utility Menu, Select Named expression and click on OP_SYMBOLOGY_EQUIPMENT. See image below for reference.



  3. Below are the Symbology pasted to copy from here and to get it pasted to its respective Expression’s.  

    OP_SYMBOLOGY_EQUIPMENT:

    "BY_LEVEL_AND_TEMPLATE:" & IIF(OPITEM.IsOfClass("NOZZLE", "OpenPlant_3D"), "Nozzle-"& OPITEM.NAME &":",

     IIF(OPITEM.IsOfClass("TANK", "OpenPlant_3D"), "Tank-"& OPITEM.NAME &":",

         IIF(OPITEM.IsOfClass("PUMP", "OpenPlant_3D"), "Pump-"& OPITEM.NAME &":",

             IIF(OPITEM.IsOfClass("HEAT_EXCHANGER", "OpenPlant_3D"), "Heat_Exchanger-"& OPITEM.NAME &":",

                 IIF(OPITEM.IsOfClass("VESSEL", "OpenPlant_3D"), "Vessel-"& OPITEM.NAME &":",":"))))) & "OpenPlant\Equipment\" &

      IIF( OPITEM.IsOfClass( "NOZZLE", "OpenPlant_3D" ),  "Nozzle:",

         IIF( OPITEM.IsOfClass( "TANK", "OpenPlant_3D" ),  "Tank:",

              IIF( OPITEM.IsOfClass( "PUMP", "OpenPlant_3D" ), "Pump:",

                   IIF( OPITEM.IsOfClass( "HEAT_EXCHANGER", "OpenPlant_3D" ), "HeatExchanger:",

                        IIF( OPITEM.IsOfClass( "VESSEL", "OpenPlant_3D" ), "Vessel:", "Default:" ) ) ) ) ) & "Model"


    Note: Make sure to copy the strings correctly.

  4. Save each Expression which turns blue. Save option will get enabled once you modify the Expressions: See below for reference.



  5. Launch OpenPlant Modeler and Verify results. See images below:

    Equipment Level as ‘Vessel-V-19’



    Equipment Level as ‘Tank-T-21’



    Equipment Level as ‘Pump-PMP-33’



    Equipment Level as ‘Heat_Exchanger-EX-3’



See Also

communities.bentley.com/.../24051.how-to-assign-levels-based-on-equipment-type-using-named-expression

Comments or Corrections?

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