- 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.UNIT_NAME & "-" & PIPELINE.SERVICE_NAME & "-" & IIF (System.String.IndexOf(System.String.ToString(PIPELINE.NOMINAL_DIAMETER), ".") < 0, PIPELINE.NOMINAL_DIAMETER, System.String.SubString(System.String.ToString(PIPELINE.NOMINAL_DIAMETER), 0 ,System.String.IndexOf(System.String.ToString(PIPELINE.NOMINAL_DIAMETER), ".") ) & "_" & System.String.SubString(System.String.ToString(PIPELINE.NOMINAL_DIAMETER), System.String.IndexOf(System.String.ToString(PIPELINE.NOMINAL_DIAMETER), ".") + 1, System.String.Length (System.String.ToString(PIPELINE.NOMINAL_DIAMETER)) - System.String.IndexOf(System.String.ToString(PIPELINE.NOMINAL_DIAMETER), ".") - 1)) & "-" & PIPELINE.SPECIFICATION & ":OpenPlant\Piping\" &
IIF( OPITEM.IsOfClass( "INSTRUMENT", "OpenPlant_3D" ), "Instrument:",
IIF( OPITEM.IsOfClass( "CONTROL_VALVE", "OpenPlant_3D" ), "Instrument:",
IIF( OPITEM.NOMINAL_DIAMETER <= 4 , "DiameterRange1:",
IIF( OPITEM.NOMINAL_DIAMETER > 4 AND OPITEM.NOMINAL_DIAMETER <= 8, "DiameterRange2:",
IIF( OPITEM.NOMINAL_DIAMETER > 8 AND OPITEM.NOMINAL_DIAMETER <= 12, "DiameterRange3:",IIF( OPITEM.NOMINAL_DIAMETER > 12 AND OPITEM.NOMINAL_DIAMETER <= 16, "DiameterRange4:",
IIF( OPITEM.NOMINAL_DIAMETER > 16 AND OPITEM.NOMINAL_DIAMETER <= 20, "DiameterRange5:",
IIF( OPITEM.NOMINAL_DIAMETER > 20, "DiameterRange6:", "Default:" ) ) ) ) ) ) ) ) & "Model"
Note:Make sure to copy the strings correctly.
- Add Symbol sets to System.string. 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:
Note - For Existing Pipeline to update the levels, select Pipeline, Run Key-in “bmech rebuild”. This will update the level name.
See Also
communities.bentley.com/.../4870.named-expressions-managing-component-symbology-in-openplant-modeler