How to Populate Header Nominal Diameter for Tap Connection in OpenPlant Modeler


 Applies To 
  
 Product(s):OpenPlant Modeler
 Version(s):08.11.11.87
 Environment: Windows 8.1/ 10
 Area: Properties
 Subarea: Tap Connection- Header Size
 Original Author:Rahul Kumar, Bentley Product Advantage  Group
  

To populate Header Size on Tap Connection Class to show in Item Browser. 

Background

Tap Connection Class does not contain Header Size information to which size it is getting connected to. Below steps explains the step to incorporate to deliver the information. User need to create a new property and add an expression to generate data. Since TAP_CONNECTION class does have a relationship class as PIPING_COMPONENT_HAS_TAP_CONNECTION which will easily provide the information by defining it on custom attribute. See below. 

Steps to Accomplish

  1. In Class editor, open "OpenPlant_3D.01.07.ecschema.xml".

  2. Locate the TAP_CONNECTION class.

  3. On Properties Tab, create a new property. See below steps.

    1. To Create a new property, Click on Add-> New. See image below.



    2. Assign a Name, say HEADER_SIZE & in DisplayLabel field type as “Header Nominal Diameter” like shown in below image.



  4. Add Custom Attribute “Calculated ECProperty Specification” on new property HEADER_SIZE, and assign the location like shown in image below.

    1. To Assign Custom Attribute, click on “Custom Attribute”->Add/Remove option. See image below.



    2. From Add/Remove Custom Attributes dialog, search for “Calculated ECProperty Specification” custom Attribute (CA). Click on desired one & pull it down from down button displayed in middle. Check Location correctly & Click on OK. See image with steps described below.



  5. Define expression to below CA and add other fields like shown in below image.  
    this.GetRelatedInstance("PIPING_COMPONENT_HAS_TAP_CONNECTION:1:PIPING_COMPONENT").NOMINAL_DIAMETER



  6. Save & Close schema.

  7. Launch OpenPlant Modeler & verify results. Notice both header & tap size information. 




To Change Display Name for Tap Connection By Size

Background

Tap Connection Class currently display as TAP_CONNECTION which does not gives clear picture what sizes till it gets modeled. Further user need to expand the tree and check the sizes in property dialog box which is an additional job for the modeler. A quick case would be to define the expression on its class to get the desired results. One example ( To display as Tap DN100xDN50 ) has been shown below to resolve such issue. See below steps to accomplish. 

Steps to Accomplish

  1. In Class editor, open "OpenPlant_3D.01.07.ecschema.xml".

  2. Locate the TAP_CONNECTION class.

  3. On Properties Tab, go to NAME property. 

  4. Check Custom Attribute “Calculated ECProperty Specification” on it. See image below for default expression. 



  5. Change the expression as mentioned below.

    "Tap" & "DN" & this.GetRelatedInstance("PIPING_COMPONENT_HAS_TAP_CONNECTION:1:PIPING_COMPONENT").NOMINAL_DIAMETER & "x" & "DN" & this.NOMINAL_DIAMETER



    Note - Copy above mentioned expression to notepad and then paste it to expression. Alternatively you can type it to avoid any errors.

  6. Save & Close schema.

  7. Launch OpenPlant Modeler & verify results. Notice tap size information for each Tap present in Model.

See Also communities.bentley.com/.../16936.properties-openplant-modeler

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!