You are currently reviewing an older revision of this page.
To set Component symbology on Pipeline with respect to pipeline specification in OpenPlant Modeler using Named Expression.
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).
During the use of Multiple specification for some component (say Flanges/Valves etc ) in a project, sometimes it is required to recognize those component by just looking in to it, hence its being necessary to set some symbology for those elements which exhibit different symbology. A modification in ‘Named Expression’ should require for changing the components symbology by pipeline specification, 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, Pipeline specification assigned under SPECIFICATION property, hence it is required to write the Named expression according to it.
OP_SYMBOLOGY_PIPING:
"BY_LEVEL_AND_TEMPLATE:" & PIPELINE.NAME & ":OpenPlant\Piping\" &
IIF ((OPITEM.IsOfClass( "GATE_VALVE", "OpenPlant_3D" ) AND OPITEM.SPECIFICATION ="mEX-OPM"), "Valve:",
IIF((OPITEM.IsOfClass( "PIPE_FLANGE", "OpenPlant_3D" ) AND OPITEM.SPECIFICATION = "mEX-OPM"), "Flange:",
IIF ((OPITEM.IsOfClass( "GATE_VALVE", "OpenPlant_3D" ) AND OPITEM.SPECIFICATION ="mA1-OPM"), "Valve1:",
IIF((OPITEM.IsOfClass( "PIPE_FLANGE", "OpenPlant_3D" ) AND OPITEM.SPECIFICATION = "mA1-OPM"), "Flange1:",
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"
OP_SYMBOLOGY_PIPING_CENTERLINE:
IIF( OPITEM.NOMINAL_DIAMETER > 500, "DiameterRange6:", "Default:" ) ) ) ) ) ) ) ) ) ) & "Centerline"
OP_SYMBOLOGY_PIPING_INSULATION:
"BY_LEVEL_AND_TEMPLATE:" & PIPELINE.NAME & "-INS" & ":OpenPlant\Piping\" &
IIF( OPITEM.NOMINAL_DIAMETER > 500, "DiameterRange6:", "Default:" ) ) ) ) ) ) ) ) ) ) & "Insulation"
Note - Set colors as desired and levels where you want to define it by clicking on it. Similarly you can create it for centerline and Insulation.
With Spec mA1-OPM
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!