To Show the Diameter of Both Pipes Connected by a Tap Connection in its Branch Code Property



Applies To 
Product(s):OpenPlant Modeler CONNECT Edition
Version(s):10.xx.xx.xxx
Environment: Windows 10/11 (64 bit)
Area: Properties
Subarea: 
Original Author:Álvaro Melgarejo, Bentley Global Technical Support

Overview

To modify the displayed value of a property by means of an ECExpression.

Problem Description

The class Tap Connection has a property called Branch Code. The user wants to modify the value of that property so it displays the nominal diameter of both pipes connected by the tap connection in this fashion: DN<Diameter_1>/DN<Diameter_2>.

Below is a step-by-step of how to achieve this. A tap connection between a 250 mm diameter pipe and a 50 mm diameter pipe is used as an example. The Branch Code property may display nothing or something different than desired at this point.

Steps to Resolve

  1. With Bentley Class Editor, open the OpenPlant_3D schema: OpenPlant_3D.01.08.ecschema.xml
  2. Navigate to the Tap Connection class. Select the Properties tab. Select the BRANCH_CODE property. Click on Custom Attributes... and then Add/Remove...

  3. Look for Calculated ECProperty Specification and click on it. Then click on the arrow pointing downwards and the on OK.
  4. Find the new box: Calculated ECProperty Specification. On the ECExpression field, type this:
    "DN" & this.GetRelatedInstance("PIPING_COMPONENT_HAS_TAP_CONNECTION:1:PIPING_COMPONENT").NOMINAL_DIAMETER & "/DN" & this.NOMINAL_DIAMETER
    Then save the schema.
  5. Back in OpenPlant Modeler, observe how the Brach Code property value has changed to the desired result.