Below is the named expression we are using to generate our level name as part of one of our datasets where the request was to have the "Y" designator for piping, followed by the pipeline service (as opposed to the pipeline name itself) followed by "N" for a new status designator. We now would like to explore augmenting this named expression to allow us to have new / demo / existing / not-in-contract, thus the "-N" would be one of "-N/-D/-E/-X". We are not using OPMS, thus Design State is not configured in our setup. I am considering simply creating a property called "DESIGN_STATUS", and thus am wondering if this could as simple as augmenting the level portion of the Named Expression to read something like: "Y-" & PIPELINE.SERVICE_NAME & DESIGN_STATUS. Does that seem sound?
"BY_LEVEL_AND_TEMPLATE:" & "Y-" & PIPELINE.SERVICE_NAME & "-N" & ":OpenPlant\Piping\" &
IIF( OPITEM.IsOfClass( "INSTRUMENT", "OpenPlant_3D" ), "Instrument:",
IIF( OPITEM.IsOfClass( "CONTROL_VALVE", "OpenPlant_3D" ), "Instrument:",
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"