To Modify Default Outside Diameter Value for End Types in OpenPlant Modeler


Applies To 
Product(s):OpenPlant Modeler
Version(s):08.11.09.XXX (SS5) | 08.11.11.XX (SS6) 
Environment: Windows 7/8.1/10 (64 bit)
Area: OpenPlant Specification Generator
Subarea: -
Original Author:Rahul Kumar, Bentley Product Advantage Group

Overview

To customize default OD value for End types and based on size in OpenPlant Modeler.

Problem Description

User requirement was to modify the OD for various End Types. Currently during spec creation, user wanted to set the OD for end types such as Socket End, as per catalog, used for project standard value. By default it has been set for 1.2 X OD of MAIN_PORT, RUN_PORT, BRANCH_PORT etc. User can modify the value from 1.2 to other multiple factor as per requirement. A schema modification has been required under PORT class where user can alter the calculated EC expression. Below settings has been described to change the value for a Socket end type from 1.2 to 2.0

Steps to Resolve

  1. Class editor, Open ‘OpenPlant_3D.01.06.ecschema.xml’ and supplement it with ‘OpenPlant_3D_Supplemental_Modeling.01.06.ecschema.xml’ schema.

    Above schema can be found by navigating below project path :
    C:\ProgramData\Bentley\OpenPlantModelerV8i\WorkSpace\Projects\ OPModeler_Metric\DataSet\Schemas

  2. Locate the FLUID_PORT class.

  3. From Properties Tab, check property OUTSIDE_DIAMETER_OF_SOCKET_END.

  4. Check custom attribute OpenPlant_Physical_Port_Property_Map. See image below.



  5. Change the factor from 1.2 to 2 as shown in below image.



  6. Save & Close Schema.

  7. Launch OpenPlant Modeler, Place a socket end type component and verify results.

  8. See below image for end type SWF for a Ball valve before and after changes. 

    Before modification with factor 1.2


    After modification with factor 2.0


  9. Above explanation will set the value as common for all sizes.

  10. To set different value as per size, user need to update the custom attribute with below EC expression. Below expression has been considered to set the default value as 1.5 X OD for size <= DN40 and 2.0 X pipe OD for size >= DN50

    IIF(THIS.END_PREPARATION = "SOCKET_WELD_FEMALE" and THIS.OUTSIDE_DIAMETER <= 48.3, THIS.OUTSIDE_DIAMETER * 1.5, IIF(THIS.END_PREPARATION = "SOCKET_WELD_FEMALE" and THIS.OUTSIDE_DIAMETER >= 60.3, THIS.OUTSIDE_DIAMETER * 2.0, 0))

    Note – Copy above expression and paste it to notepad and then use the expression to input in schema. Otherwise double quotes might create problem.

  11. Save & Close schema and verify results. See below image.



  12. Similarly user can set and define the OD for multiple sizes with respect to standard catalogs. 

See Also

communities.bentley.com/.../13028.openplant-specification-generator

Comments or Corrections?

Bentley's Product Advantage Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!