To Assign Separate Level for Component Using Named Expressions


Applies To 
Product(s):OpenPlant Modeler
Version(s):08.11.09.XXX
Environment: Windows 7 (64 bit)
Area: Settings/Attributes
Subarea: -
Original Author:Rahul Kumar, Bentley Product Advantage Group

To set Component symbology with suffix as PIPELINE.NAME-Valve in OpenPlant Modeler using Named Expression.

Background

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. Below exercise illustrates the modification in named expression to enable Modeler to get various components at different levels. 

Steps to Accomplish

  1. Go to File from Main Menu option and open DGN library files (dgnlib). See image below :



  2. Under Utility Menu, Select Named expression and click on OP_SYMBOLOGY_PIPING. See image below for reference.



  3. 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:",":")  & "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.

  4. Save each Expression which turns blue. Save option will get enabled once you modify the Expressions: See below for reference.



  5. Launch OpenPlant Modeler and Verify results. See images below: 

Pipeline Level as ‘PIPELINE.NAME’

Component Level as ‘PIPELINE.NAME-VALVE’

See Also

communities.bentley.com/.../how-to-set-pipeline-color-by-service-in-openplant-modeler

communities.bentley.com/.../named-expressions-managing-component-symbology-in-openplant-modeler

communities.bentley.com/.../how-to-set-pipeline-color-by-line_5f00_number-name

communities.bentley.com/.../to-set-component-symbology-with-uniform-pipeline-attributes-a-named-expression

Comments or Corrections?

Bentley's Product Advantage Group requests that you please confine any comments you have on this Wiki entry to this Comments or Corrections?" section. THANK YOU!