- Go to File from the Main Menu option and open DGN library files (dgnlib) from the File of Type dropdown. See image below :
- Under the Utility Menu select Named Expression and click on OP_SYMBOLOGY_PIPING. See image below for default entry for reference.
- Refer to the example Expression value below:
OP_SYMBOLOGY_PIPING:
"BY_LEVEL_AND_TEMPLATE:" & PIPELINE.NAME & IIF((OPITEM.IsOfClass( "VALVE", "OpenPlant_3D" ) AND OPITEM.NOMINAL_DIAMETER <= 80),"-"& PIPELINE.SERVICE_NAME & "_VALVE_SMALL:",
IIF((OPITEM.IsOfClass( "VALVE", "OpenPlant_3D" ) AND OPITEM.NOMINAL_DIAMETER > 80), "-"& PIPELINE.SERVICE_NAME & "_VALVE_BIG:",":") ) & "OpenPlant\Piping\" &IIF ((OPITEM.IsOfClass( "VALVE", "OpenPlant_3D" ) AND OPITEM.NOMINAL_DIAMETER <= 80), "VALVE_SMALL:",
IIF ((OPITEM.IsOfClass( "VALVE", "OpenPlant_3D" ) AND OPITEM.NOMINAL_DIAMETER > 80), "VALVE_BIG:","Default:" ) ) & "Model"Note:Make sure to copy the strings correctly.
- Save each Expression which turns blue. The Save option will get enabled once you modify the Expressions: See below for reference.
- Create a Template as VALVE_SMALL & VALVE_BIG in the Element Templates dialog box. See image below for reference. Based on this template the user should be able to define its symbology based on valve size small or big.
- Launch OpenPlant Modeler and verify results. See images below:
Valve Level as ‘PIPELINE.NAME-SERVICE_VALVE_SMALL
Valve Level as ‘PIPELINE.NAME-SERVICE_VALVE_BIG
See Also
communities.bentley.com/.../25164.how-to-assign-level-for-valve-tag-using-named-expression
Comments or Corrections?
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!