Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
MicroStation
  • Product Communities
  • More
MicroStation
[Archived] AskInga Wiki Macros for absolute values coordinates
    • Sign in

    • -AskInga
      • +3D MicroStation
      • +AccuDraw Secrets
      • +Animation - Rendering
      • +Behind The Scenes
      • +Cells
      • +Colours
      • +Conversion - Translation
      • -Coordinate Input
        • Add mathematical equations to the DX key-in
        • DD-MM-SS Keyins
        • Entering latitude-longitude values
        • Force XY keyin to recognize relative coordinates
        • Label Coordinates and auxiliary coordinate systems
        • Macros for absolute values coordinates
        • Paste elements at same graphical location
        • Placing elements at absolute coordinates
        • Remember the last data point
        • Setting up the global origin for mapping
        • Store and recall coordinates with Memory Points
        • Understanding the global origin
        • Wait for a data point
        • Working units and survey feet
      • +Design Settings
      • +Dimensions
      • +DWG
      • +EDG
      • +Element Manipulation
      • +Element Properties
      • +Element Selection
      • +Freeware - Shareware
      • +Interface Look And Feel
      • +Internet - E-Links - Links
      • +Keyins
      • +Levels
      • +Line Styles
      • +Models
      • +MSM Archive
      • +Other
      • +Presentations
      • +Printing - Plotting
      • +Programming - Automation
      • +Rasters - Images
      • +References
      • +Tags - Data Fields - Fields
      • +Text - Fonts - Annotation
      • +Views
      • +Windows - Interacting With
      • +Workspaces - Configuration
    • graffiti

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

    Macros for absolute values coordinates

    AskInga logo

     

    Original Article Date: Nov 17, 2003
    Macros for absolute values/coordinates

    Another excellent contribution from fellow Canuck Doug Watt. This WattWare is a set of three macros to simplify the placement of datapoints to absolute X, Y or Z coordinates. These macros are for MicroStation /J.

    I wrote these three macros in an effort to make life better in the 3D CADD world. Simply stated, they will allow you to place datapoints to a known absolute X, Y or Z coordinates.

    All three macros work with MicroStation /J and don't interfere with any add-on application such as TriForma, Frameworks, PlantSpace etc. They will work in both 2D and 3D files and can work with fences as well as selection sets. Unfortunately they don't work with MicroStation V8 due to internal code changes.

    Anyway, these macros were written with AccuDraw in mind, but that's certainly not a prerequisite. For AccuDraw users I recommend editing the X, Y and Z keyins to execute the macros as shown below.

    The reason for this is that, if you're like me, you are using the Enter (SmartLock) to lock down on the repective axis anyway so it kind of makes those keyins redundant.

    To use these macros, first load them to the folder being pointed to by MS_MACRO and be sure that you've edited shortcut.txt as shown above. Then take a look at the following examples:


    To move/copy an element to a different Y-Coordinate:
    Select the Move Element or Copy Element
    Select the element at the point that needs to go to the correct coordinate.
    With AccuDraw active, press the modified Y
    Keyin the new Y-Coordinate.
    Press Enter
    Reset to complete.

    To move/copy and element to a different elevation:
    Select the Move Element or Copy Element
    Select the element at the point that needs to go to the correct coordinate.
    With AccuDraw active, press the modified Z
    Keyin the new Z-Coordinate.
    Press Enter
    Reset to complete.

    To extend endpoints of multiple elements to a different elevation:
    Place a fence around the ends of the elements.
    Select the Fence Stretch or Move Element with the correct settings.
    Enter a datapoint on an end that needs to go to the correct coordinate.
    With AccuDraw active, press the correct modified shortcut.
    Keyin the new coordinate.
    Press Enter
    Reset to complete.

    As you can see, these macros can be used in many situations and with several different tools. Although you'll probably find that you'll use them the most with the Move and Copy tools, I encourage you to try them with others as well!


    I'd like to thank Jon Summers of LA Solutions for advising on a line of C Expression code which is, of course, the key to the whole thing (God bless 'im!). And to Vic M. for testing and appreciating it.

    One last thing, as with all freeware, use at your own risk and be sure to test these macros in a scratch file first.

    Enjoy! That's what MicroStation is all about!


    This program is supplied as is. AskInga, Bentley Systems Inc., and the author of the program assumes no liability for damages direct, indirect, or consequential, which may result from the use of this program. Use this program at your own risk.

    AskInga Article #168

    • Coordinate Input
    • Askinga
    • FreewareShareware
    • Share
    • History
    • More
    • Cancel
    • CTennyson Created by Bentley Colleague CTennyson
    • When: Fri, May 30 2008 9:42 AM
    • Jordan Stierly Last revision by Jordan Stierly
    • When: Wed, Jun 9 2010 2:50 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