To Assign Level by Equipment Tag in OpenPlant Modeler using Named Expressions.
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.
"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.
http://communities.bentley.com/products/plant/design___engineering/w/plant_design_and_engineering__wiki/24051.how-to-assign-levels-based-on-equipment-type-using-named-expression
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!