How to Control Component Symbology based on Design State or Component State via Named Expression



Applies To 
Product(s):OpenPlant Modeler 
Version(s):

CONNECT Edition 10.09.00.74(Update-9)

Environment: Windows 8.1/10 (64-bit)
Area: Pipeline
Subarea: symbology
Original Author:Aishwarya Kulkarni, Bentley Product Advantage Group

Background

In OpenPlant Modeler CONNECT Edition, the requirement is to change the pipeline symbology according to Design State. 

We have observed that the component state will work on display label name in named expression. We have added  Design as a component state and it will work for piping components (pipe elbow etc ).




Steps to Accomplish

  1. Launch OpenPlant Modeler CONNECT Edition.



  2. From file > new, open the OPModeler.dgnlib file from the location as mentioned

    C:\ProgramData\Bentley\OpenPlantCONNECTEdition\Configuration\Workspaces\OOB\WorkSets\OOB_WORKSET\Standards\OpenPlant\Modeler\Dgnlibs

  3. From the extreme top left corner, Change the workflow to Admin as shown



  4. From Admin > Home > Collections, select element templates as shown



  5. Right-click on the piping node & create a new template group as shown



  6. Name the template group as per requirement (here Oil)

    Note: Template Group Name must be the same as the Service Name


  7. Add new templates as Models to a newly created group as shown

    PIPE LEVEL



    As per project requirement create a service. 

  8. From utilities, update the templates from the library as shown



  9. From Home > Environment, click on named expressions as shown




  10. In named expression, search for OP_SYMBOLOGY_PIPING & enter the following expression as shown

    "BY_LEVEL_AND_TEMPLATE:" & PIPELINE.NAME & ":OpenPlant\Piping\" & IIF(OPITEM.STATE="Design", PIPELINE.SERVICE_NAME, OPITEM.STATE) & ":Model"




  11. Save the settings 

  12. Switch to the piping model to verify the results.

  13. Place a pipe & verify the results as shown






    Notice that, It is following the OP_Symbology and element template level as per component state. 

See Also

communities.bentley.com/.../how-to-add-dimensional-unit-to-added-property-in-openplant-modeler-connect-edition