Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
OpenCities Map
  • Product Communities
  • Geospatial
  • OpenCities Map
  • More
  • Cancel
OpenCities Map
OpenCities Map Wiki - Replace text during Shapefile importing
    • 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 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
          • - Define form fields for data entry that are not part of feature properties
          • - 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
        • +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. 

    - Replace text during Shapefile importing

    The following solution addresses the user question submitted in this forum thread.

    Question: I have a Shapefile that contains some features I'd like to map to point-cell XFM features, and other features that I'd like to map to point-text FM features (so I can use PBA). I would really rather not create two separate XFM features, which would necessitate loading this file twice through the Interoperability Dialog. (One thing I'm afraid of is creating two instances of the features if the file is loaded twice.) Any way I can create a single XFM feature to handle this file?

    Solution: In OpenCities Map, when importing feature instances from the Shapefile, 'map' the incoming feature instances using the Mapped Name field, to a feature class definition which uses the Property Based Annotation (PBA) "Replacement Text" capabilities.

    Following are the general guidelines for implementing this PBA solution.

    1. In your cell library, create a new (non-annotation) type cell containing a single text string with "[1]" characters such as shown in the following. Please note that during feature instance creation the Property Based Annotation subsystem will replace the "[1]" characters with appropriate business property values defined with a standard PBA expression.
    2. Add a new "Cell Name" symbology key for your new cell to your schema, defining any applicable criteria as shown here:
    3. Add a new "Replacement Text" symbology key as shown here:

    4. Choose the new "Replacement Text" symbology key and define the appropriate PBA expression and criteria as shown here:

    5. Save, Export and Run the modified workspace.
    6. In the Interoperability application, redirect the incoming feature instances for your import to the target feature class using the "Mapped Name" property as shown here:
    7. After import, instances of your target feature class will consist of point-cells with either symbols or text as shown in the following:

    • Property Based Annotation
    • OpenCities Map
    • XFM
    • Mapped Name
    • PBA
    • Interoperability
    • Bentley Map
    • Share
    • History
    • More
    • Cancel
    • Jeff Bielefeld Created by Bentley Colleague Jeff Bielefeld
    • When: Mon, Apr 30 2012 1:22 PM
    • Dan Weston Last revision by Bentley Colleague Dan Weston
    • When: Wed, Sep 29 2021 3:58 PM
    • Revisions: 8
    • 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

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