To Assign Level by Equipment name 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 like TANK, PUMP, VESSEL etc. see below exercise where similar content has been described.
"BY_LEVEL_AND_TEMPLATE:" & 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:", "Equipment:"))))) & "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/4870.named-expressions-managing-component-symbology-in-openplant-modeler
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!