Need help working from home with your Bentley software? We're here to help - click here
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).
The first step in defining symbology is to add or modify a Named Expression to identify the component set you want to manage. OpenPlant Piping components can be managed based on any attribute (component data) or standard preference (Service, Unit etc.). Equipment components may only be managed based on component data. It is strongly recommended that existing Named Expressions be either copied or modified as opposed to creating new ones. The steps below detail the procedure for assigning the symbology of all Piping, managed by Pipeline.
Following the syntax present, the expression should now look like this:"BY_LEVEL_AND_TEMPLATE:" & PIPELINE.SERVICE_NAME & "-" & PIPELINE.NAME & ":OpenPlant\Piping\" & IIF( OPITEM.IsOfClass( "GENERIC_INSTRUMENT", "OpenPlant_3D" ), "Instrument:", IIF( OPITEM.IsOfClass( "CONTROL_VALVE", "OpenPlant_3D" ), "Instrument:", IIF( PIPELINE.NAME = "a" , "PiplineA:", 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"
At the end of each clause in the named expression, the item in quotation marks designates the name of the element template that will be used to define the symbology of all elements that match the criteria of the expression. In this case, I chose the name PipelineA. Now I need to create an element template corresponding to this. The following steps detail the procedure to do this.
Bentley Technical Support KnowledgeBase
Bentley LEARN Server
Bentley's Product Advantage Group requests that you please submit any comments you have on this Wiki article in the "Comments" area below. THANK YOU!