To set Component symbology with Valve tag i.e. PIPELINE.NAME-Valve-Tag Name in OpenPlant Modeler using Named Expression.
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 components symbology by pipeline name which can be found under ‘Utilities’ Menu and to customize ‘Element template’ to define the name and hence color to it under ‘Element’ option.
In OpenPlant Modeler, Sometimes it could be Modeler choice or as per Project specific requirement, it has been envisioned to get some piping component say Valve to different level. A modification in ‘Named Expression’ should require for changing the Equipment level as per Valve Name and Tag Number like PIPELINE.NAME-VALVE-TAG etc. see below exercise where similar content has been described.
OP_SYMBOLOGY_PIPING:
"BY_LEVEL_AND_TEMPLATE:" & PIPELINE.NAME & IIF( OPITEM.IsOfClass( "VALVE", "OpenPlant_3D" ), "-Valve-"& OPITEM.NAME &":",":") & "OpenPlant\Piping\" &
IIF( OPITEM.IsOfClass( "INSTRUMENT", "OpenPlant_3D" ), "Instrument:",
IIF( OPITEM.IsOfClass( "CONTROL_VALVE", "OpenPlant_3D" ), "Instrument:",
IIF( OPITEM.NOMINAL_DIAMETER <= 100 , "DiameterRange1:",
IIF( OPITEM.NOMINAL_DIAMETER > 100 AND OPITEM.NOMINAL_DIAMETER <= 200, "DiameterRange2:",
IIF( OPITEM.NOMINAL_DIAMETER > 200 AND OPITEM.NOMINAL_DIAMETER <= 300, "DiameterRange3:",
IIF( OPITEM.NOMINAL_DIAMETER > 300 AND OPITEM.NOMINAL_DIAMETER <= 400, "DiameterRange4:",
IIF( OPITEM.NOMINAL_DIAMETER > 400 AND OPITEM.NOMINAL_DIAMETER <= 500, "DiameterRange5:",
IIF( OPITEM.NOMINAL_DIAMETER > 500, "DiameterRange6:", "Default:" ) ) ) ) ) ) ) ) & "Model"
Note:Make sure to copy the strings correctly.
http://communities.bentley.com/products/plant/design___engineering/w/plant_design_and_engineering__wiki/19761.to-assign-separate-level-for-component-using-named-expressions