Named Expression

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"

Parents
  • Hi Brent,
    Did you get this working?
    From your text above it seems one issue you may run into would be how you applied the DESIGN_STATUS property. You would need to make sure that you applied DESIGN_STATUS to a class that would cover all components you expect to apply the template to. Perhaps something like PIPELINE.SERVICE_NAME & PIPING_COMPONENT.DESIGN_STATUS or similar.
    BTW, you do not need OPMS to use Design States, but you do need ProjectWise.
Reply
  • Hi Brent,
    Did you get this working?
    From your text above it seems one issue you may run into would be how you applied the DESIGN_STATUS property. You would need to make sure that you applied DESIGN_STATUS to a class that would cover all components you expect to apply the template to. Perhaps something like PIPELINE.SERVICE_NAME & PIPING_COMPONENT.DESIGN_STATUS or similar.
    BTW, you do not need OPMS to use Design States, but you do need ProjectWise.
Children
No Data