Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenCities Map
  • Product Communities
  • Geospatial
  • OpenCities Map
  • Cancel
OpenCities Map
OpenCities Map Wiki - Label latitude and longitudes (VBA)
    • 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
        • +Feature Definitions and Inference Rules
        • +Interoperability
        • +Spatial Databases
        • +Spatial Analysis
        • +3D Geospatial
        • +Geographic Coordinate Systems
        • +Troubleshooting
        • -Freeware - Utilities - Applications - Programs
          • - Auto update Editing initial values (Sync1 MDL)
          • - Centroid text to shape (VBA)
          • - Change feature elevation (VBA)
          • - Convert text to XFM and propagate text string to shapes using VBA
          • - Create schema from Shapefiles (Schema Register EXE)
          • - Export text string and Element ID (TextNodeToTextFile VBA)
          • - Extended Properties (xProps MDL)
          • - Label latitude and longitudes (VBA)
          • - Learning Resources
          • - Load properties from text strings (text2xfm VBA)
          • - Planarize 3D Polygon (MDL)
          • - Show XFM Properties on tool tips (MDL)
          • - Symbology Integrator (EXE)
          • - Utilities from Elivagner Barros
          • - XFM attribute query (Feature Query VBA)
          • Setting Level for reference attachment (VBA)
        • +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. 

    - Label latitude and longitudes (VBA)

    This macro runs on V8i only.

    To place latitude/longitude labels use label_latlon2.mvba Bentley Map example VBA application. This example Bentley Map application has been developed using VBA so that it can be easily modified by anyone requiring similar functionality.

    Place the provided mvba file in any folder which is referenced by the MS_VBASEARCHDIRECTORIES configuration variable and enter VBA RUN [label_latlon2]Module1.main which loads the following dialog:

    Alternatively, enter VBA RUN [label_latlon2]Module1.placeLatLonLabel to start the Place Label(s) Interactively command without displaying the dialog. During interactive placement, you can toggle the display of dynamics by simply pressing the right mouse button.

    Labels will be placed using your active attributes and text settings.  The Angle Readout of the design file will define whether the labels are in decimal degrees or degrees-minutes-seconds.  The latitude and longitude values are generated from the design files geographic coordinate system.

    label_latlon2.zip

    Related Article:  Extended Properties

    Disclaimer - This application is supplied as-is and does not come with support. Bentley Systems Inc., and the author of this programs assume no liability for damages direct, indirect, or consequential, which may result from the use of this program. Use this application at your own risk.

    • XFM
    • LAT/LON
    • VBA
    • GCS
    • geographic coordinate system
    • Bentley Map
    • Share
    • History
    • More
    • Cancel
    • Jeff Bielefeld Created by Bentley Colleague Jeff Bielefeld
    • When: Fri, Sep 7 2012 6:17 PM
    • Inga Morozoff Last revision by Bentley Colleague Inga Morozoff
    • When: Thu, Nov 22 2018 4:27 PM
    • Revisions: 13
    • Comments: 3
    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