Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenCities Map
  • Product Communities
  • Geospatial
  • OpenCities Map
  • Cancel
OpenCities Map
OpenCities Map Wiki - Property Watcher to compute values
    • Sign In
    • -OpenCities Map Wiki
      • -OpenCities Map
        • - End of Support for Bentley Map V8i (SELECTseries) products
        • +Release Information
        • +Installation Information
        • +Getting Started
        • +Administration
        • +General Topics
        • -Geospatial Administrator
          • - About Expand Variables
          • - Automatically execute commands upon file open [XFM project]
          • - Automatically connect to a graphical source
          • - Base Source Directory and Files Node
          • - Base Source Directory configuration
          • - Built in XFM properties
          • - Capture point feature coordinates with two examples
          • - Change property order using text editor
          • - Changing project and workset information
          • - Concatenate properties to populate new property using Property Watcher
          • - Create a geospatial schema
          • - Create a new schema recommended workflow
          • - Customize Command Manager with help from Excel
          • - Customize dialogs
          • - Customize Operations to show property based on criteria
          • - Date Time Property Show None to set dates to null
          • - Decimal Precision in Analyze XFM Feature Results
          • - Defining polygons with holes or islands
          • - Domain list initial values
          • - Domain list width (Calculate List Width)
          • - Domain list width (Form View width)
          • - Feature Collection and Collection Name Property
          • - Files node in User Workspace
          • - Fix Cannot access a disposed object error
          • - Generate workspace from command line
          • - Increment property values
          • - Multiline text for PBA
          • - Number  properties and setting decimal places for data entry
          • - Open schema via desktop shortcut
          • - Property Watcher on an empty value
          • - Property Watcher to compute values
          • - Property Watcher to read Col2 of a Domain List
          • - Property Watcher to set true or false
          • - Property Watcher to update a date property
          • - Property Watchers to drive domain lists
          • - Replace text during Shapefile importing
          • - Replace text in cells using PBA with two examples
          • - Rounding numbers
          • - Set Area and Perimeter to Read Only
          • - Shortcut arguments –ws , -wr, -wu
          • - Shortcut Target path
          • - Sort properties by Display Name
          • - Store Last Value to define property fields for new feature placement
          • - Tabbed dialogs
          • - Text and Text Node Justification
          • - Text Annotation Subfeature
          • - Text features from PBA
          • - Text size settings
          • - Update property when Split/Merge used
          • - UpdatedBy and UpdatedDate properties
          • - Using raster images as a graphical source
          • - Value Col Name vs Edit Col Name
          • - Workspace location V8i compared to CONNECT Edition
        • +Feature Definitions and Inference Rules
        • +Interoperability
        • +Spatial Databases
        • +Spatial Analysis
        • +3D Geospatial
        • +Geographic Coordinate Systems
        • +Troubleshooting
        • +Freeware - Utilities - Applications - Programs
        • +Advanced Map Finishing
      • OpenCities Map Ultimate for Finland CONNECT Edition x64 (SES)
      • OpenCities Map Ultimate for Finland CONNECT Edition - Suomi
      • Bentley Descartes
      • +Other Geospatial Products

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

    - Property Watcher to compute values

    Property watchers are used to set property values or domain lists based on input from a different property.  In this example, property watchers are being used to add the values of two properties together to compute the value for a third property.

    As shown by the Place Widget dialog, the value of Combined_Property is the sum of Property_A and Property_B.

    To do this, create the three properties shown above and define a Property Watcher for Property_A and Property_B as shown. 

    Name:  A descritptive name

    Type: SynchItem - This type of watcher is used to establish relationships between different feature properties. If a match value is provided, the current property’s value must equal this value for the watcher to execute. 

    Feature:  The name of the feature that will be updated

    Property:  The property of the feature that will be updated

    Value Type:  expressionEvaluator -  Evaluates an expression specified in the Value column by using the MicroStation Expression Evaluator. 

    Value To Set:  Widget.RootFeatureProperties.Property_A+Widget.RootFeatureProperties.Property_B   

    Redraw Watcher:  Enabled - This redraws the item associated with the property being changed. It's used to change the enabled state of a dialog item and/or to reload the list of values. 

    Set Computed_Property to read-only.  In the Initial Values section, create a new key for Read.  Note that this value is not available in the interface and must be keyed in.  Read is used when a feature is read from the design file.

    Set the following for Read and Placing:

    ValueType:  expressionEvaluator

    Value:  Widget.RootFeatureProperties.Property_A+Widget.RootFeatureProperties.Property_B

    Note:

    Ensure that properties on which calculations are based, actually have values.  You can use Initial Values to assign a default value for the placing key. 

    Note: The Data Browser does not support Property Watchers therefore you will not be able to make any changes or edits to the values by using the Data Browser.  

    For more information, please refer to:

     Expressions, Operators and Basic Functions

    Attached is a sample schema you can use for testing:

    Property Watcher for Computed Value.zip

    • Geospatial Administrator
    • Property Watcher
    • Share
    • History
    • More
    • Cancel
    • Inga Morozoff Created by Bentley Colleague Inga Morozoff
    • When: Thu, Feb 22 2018 1:55 PM
    • Nelson Hobdell Last revision by Bentley Colleague Nelson Hobdell
    • When: Tue, Jan 3 2023 6:49 PM
    • Revisions: 7
    • 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

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