- Go to File from Main Menu option and open DGN library files (dgnlib). See image below :
- Under Utility Menu, Select Named expression and click on OP_SYMBOLOGY_PIPING. See image below for reference.
- Below are the Symbology pasted to copy from here and to get it pasted to its respective Expression’s.
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.
- Save each Expression which turns blue. Save option will get enabled once you modify the Expressions: See below for reference.
- Launch OpenPlant Modeler and Verify results. See images below:
Valve Level as ‘PIPELINE.NAME-Valve-Tag ( 1-RW-001-B2-Valve-HV10)’
See Also
communities.bentley.com/.../19761.to-assign-separate-level-for-component-using-named-expressions