Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
OpenPlant | AutoPLANT
  • Product Communities
  • More
OpenPlant | AutoPLANT
OpenPlant | AutoPLANT Wiki How to Calculate the Property Value With Help of EC Expression
    • Sign in
    • -OpenPlant | AutoPLANT Wiki
      • -OpenPlant
        • +CONNECT Services - OpenPlant
        • +Example Configuration - CONNECT Edition
        • +Installations - OpenPlant CONNECT Edition Applications
        • +OpenPlant Download Links & Videos
        • OpenPlant Product Compatibility
        • +OpenPlant Modeler CONNECT
        • +OpenPlant PID CONNECT
        • +OpenPlant Isometrics Manager CONNECT
        • +OpenPlant Orthographics Manager CONNECT
        • +OpenPlant Support Engineering CONNECT
        • +OpenPlant Project Administrator CONNECT
        • +OpenPlant CONNECT Edition-PlantSight Integration
        • -OpenPlant Modeler v8i
          • -Component - OpenPlant Modeler
            • Add or Remove Fields from Spec Selection Dialog
            • Delete/Replace the Flange Assembly in OpenPlant Modeler
            • +How are Bolt Lengths Calculated in OpenPlant Modeler
            • How to Add Component as a Tool in Piping Task
            • How To Add Custom Valves in Schema
            • How to Auto-Place Victaulic coupling on pipe to pipe connection
            • How to Calculate the Property Value With Help of EC Expression
            • +How to Cascade Properties from Pipeline to Associated Supports
            • How to Change the graphics of Pipe Union from Hexagonal to Circular
            • How to Change the Precision Level of Dimensions on Components
            • How to Change Weld Size in OpenPlant Modeler
            • How to Configure OpenPlant to Allow Flange Connection with Different Facings
            • How to Copy Components from One Model to Another Model in Standalone Mode
            • How to Create a Steam Trap Component in OpenPlant Modeler
            • How to Create Custom BW Valves with Nipples in OpenPlant Modeler
            • How to Create Custom Component's Tool Button in OpenPlant Modeler Task Panel
            • How to Create Custom Components from Cell
            • How to Create Four Ports Component with Different Sizes in OpenPlant Modeler
            • How to Create Multiport Custom Valve
            • How to Create NipoFlange in OpenPlant Modeler
            • How To Create PDF using Dynamic Views with Bookmark.
            • How to Create Search Criteria to Include Properties from Fluid Port in OpenPlant Modeler
            • How to Create Welding Boss Component in OpenPlant Modeler
            • How to Differentiate Between Multiple Records for Topworks in Spec.
            • How to Display Referenced Pipelines in Pipeline Manager Dialog
            • How to Fix Disconnects by Picking Seal and Fastener from Spec Grid
            • How to Generate Equipment Tag Name With & Without Null Value in OpenPlant Modeler
            • How to Get Inside Diameter Calculated in OpenPlant Modeler
            • +How to Map Spec Data for Double Type Property in OpenPlant Modeler
            • How to Map Spec Table for Placement of Missing Component
            • How to Modify Hand Wheel Stem Thickness
            • How to Modify Support Tag by Including Unit, Service and LineNumber Properties
            • How to Move Components to a Different Pipeline
            • How To Pick Nozzle Length From Spec Database in OpenPlant Modeler
            • How to Place a Spec driven welded Spool Piece in OpenPlant Modeler
            • How to Place an Isometric Break Point in OpenPlant Modeler
            • How to Place Components by Actual Pipe Size Instead of Nominal Diameter
            • How to Place Flexible Hose with Flanged Ends
            • How to Place Multiple Welds in Straight Piece of Pipe at Equal Distance
            • How to Place Three Way Control Valve in OpenPlant Modeler
            • How to Place Various Types of Flanges Automatically for Component Assembly in OpenPlant Modeler
            • How to Place Wafer Check Valve in OpenPlant
            • How to Reorder Iso Sheet Numbering Using Pipeline Start Note in OpenPlant Modeler
            • How To Set Inlet-Outlet Ratings on Relief Valve
            • How to Set the Order of the Properties in Spec Selection Grid
            • How To Show Active Model File Name to Piping Components in OpenPlant Modeler
            • How to Show Weld Symbol on Threaded Joint
            • How to Show/Hide Bolts and Gaskets in OpenPlant Modeler
            • How to Turn on Centerline Visibility of Pipelines
            • How to Update Graphics & Property When Spec Value Change
            • How to update graphics of custom equipment in OpenPlant Modeler
            • How to use Different Facing Instead of Default Raised/Flat Face Facings
            • How to use Existing Class as Custom Component
            • Issue with placement of Isometric Break Point on Mating Flange Assembly in OpenPlant Modeler
            • Not able to place 90 Degree Long/Short Radius reducing elbows
            • Nozzle Manager Overview
            • Olet\Tee Doesn't Place Automatically on Small Piece of Header Pipe
            • Piping Components Not Fetching Facing Value From Spec
            • Rating Value Map Issue in OpenPlant Modeler
            • To Add Custom Cell for Supports in OpenPlant Modeler
            • To Apply Slopes on Pipe with a Socket Weld Type Fittings
            • To Assign Shop-Field Value to Components Present in OpenPlant Modeler
            • To Cascade Pipeline Property Value to Fasteners
            • To Create Elbow Fitting with Clamp Length in OpenPlant Modeler
            • +To Define Spool ID start point in OpenPlant Modeler
            • To Fix Welds on Olets in OpenPlant Modeler
            • +To Not Include Gasket as a Joint for Flanged Components in OpenPlant Modeler
            • To Place an Elbow with Trimmed Angle using Intelligent Line Manager
            • To Place Eccentric Reducer with AutoFitting
            • To Place Tap Port on Blind Flange in OpenPlant Modeler
            • To Query the Mating Components Based on Auto-Match
            • To Remove Plant Area Property from Tag of Gauge Class
            • To show Isolation Gasket in Isometrics generated from i-models created from OpenPlant Modeler
          • +Drawing Generation- OpenPlant Modeler
          • +Errors, Logs, Messages, Crashes - OpenPlant Modeler
          • +Import/Export- OpenPlant Modeler
          • +Installation - OpenPlant Modeler
          • OpenPlant HVAC-OpenPlant Modeler
          • OpenPlant Modeler [FAQ]
          • +OpenPlant Specification Generator
          • +ProjectWise - OpenPlant Modeler
          • +Properties - OpenPlant Modeler
          • +Release Notes - OpenPlant Modeler
          • +Schema - OpenPlant Modeler
          • +Settings/Attributes - OpenPlant Modeler
          • +Structural Modeling Components (SMC)- OpenPlant Modeler
          • +Tasks - OpenPlant Modeler
          • +Training - OpenPlant Modeler
        • +OpenPlant Isometrics Manager v8i
        • +OpenPlant Project Administrator v8i
        • +OpenPlant PID v8i
        • +OpenPlant Orthographics Manager v8i
        • +OpenPlant Support Engineering v8i
        • +OpenPlant ModelServer v8i
        • +OpenPlant Reporting v8i
        • How to Connect with Bentley Technical Support Team using Microsoft Teams
        • How to Connect with Bentley Technical Support Team using Microsoft Teams via Browser
        • How to get list of installed applications/programs on Windows Machine using Command Prompt.
        • How to get list of Windows Updates installed on the machine using Command Prompt.
      • +Bentley AutoPLANT
      • +Bentley Navigator
      • +Bentley PlantSpace
      • +Plant Project Tools
      • +Bentley Raceway and Cable Management
      • i-model Composition Service for S3D
      • Working from home with OpenPlant
      • Working from home with Bentley Raceway and Cable Management
      • Working from home with AutoPLANT Modeler
      • Your Feedback is important to us!

     
     Questions about this article, topic, or product? Click here. 

    How to Calculate the Property Value With Help of EC Expression

    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: Component
    Subarea: Data
    Original Author: Harpreet Singh, Bentley Product Advantage Group

    Background

    Requirement is to calculate the property value with the help of EC Expression. In this example, we will calculate a property based on formula using EC Expression on Directional Pipe guide.

    Steps to Accomplish

    1. Launch class editor and load OpenPlant_Catalogue.01.07 schema. This schema is located in C:\ProgramData\Bentley\OpenPlantModeler V8i\WorkSpace\OPModeler\schemas folder.

    2. Go to AP_3D_COMPONENT_TABLE class as shown below.



    3. Right click and select Add Derived Class option from context menu.



    4. Name the class as AP_3D_DIRECTIONAL_PIPE_GUIDE as shown below.



    5. Switch to properties tab and add new property.



    6. Name the property GUIDE_LENGTH and change the property Type Name to "double" as shown below.



      Note: GUIDE_LENGTH is the column name in Spec Table.

    7. Add another property NOMINAL_SIZE and change the TypeName to "double".



    8. Save the changes in the schema and load OpenPlant_3D schema from your project schemas. This schema is generally located in C:\ProgramData\Bentley\OpenPlantModeler V8i\WorkSpace\Projects\%Project_Name%\Dataset\schemas folder.

    9. Go to DIRECTIONAL_PIPE_GUIDE class and switch to properties tab.



    10. Add new property BOX_TEST.



      Note: If you make this a "double property", you can do that by changing the TypeName field.

    11. Add custom attribute "OpenPlant_Physical_Catalogue_Property_Map" on this property.



    12. Right click on EC Expression field and select "Add Element" option.



    13. Add below expression in EC Expression field.

      COMPONENT_TABLE.NOMINAL_SIZE + (COMPONENT_TABLE.GUIDE_LENGTH*2)



    14. Save the changes and verify the result by placing directional pipe guide in the model.

    See Also

    http://communities.bentley.com/products/plant/design___engineering/w/plant_design_and_engineering__wiki/31184.how-to-get-inside-diameter-calculated-in-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!

    • 08.11.11.xxx
    • OpenPlant Modeler
    • property
    • calculate
    • Pipe Guide
    • 08.11.09.xxxx
    • support
    • Share
    • History
    • More
    • Cancel
    • Harpreet Singh Created by Bentley Colleague Harpreet Singh
    • When: Thu, Oct 27 2016 5:07 AM
    • Harpreet Singh Last revision by Bentley Colleague Harpreet Singh
    • When: Thu, Oct 27 2016 7:06 AM
    • Revisions: 2
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2022 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies