Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
MicroStation
  • Product Communities
MicroStation
[Archived] AskInga Wiki Exchange references with this macro
    • Sign In

    • -AskInga
      • +3D MicroStation
      • +AccuDraw Secrets
      • +Animation - Rendering
      • +Behind The Scenes
      • +Cells
      • +Colours
      • +Conversion - Translation
      • +Coordinate Input
      • +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
        • Associate a reference to a sheet for auto-scaling
        • Attach a file to itself
        • Attach a file to itself faster
        • Attach a saved view from a reference with this keyin
        • Attach multiple models fast and easy
        • Attach multiple references from Windows Explorer
        • Attach references from current working directory faster
        • Attach references without a dialog
        • Attach the default model as a reference with this macro
        • Attaching reference file with a config variable
        • Auto-update reference level display symbology and more
        • Batch merge references
        • Can't see all of your reference tools
        • Change reference slot numbers with ease
        • Change update sequence with drag-drop
        • Clip a reference with an element not a fence
        • Clip and mask a reference with a group hole
        • Clipped references and rotated views
        • Control update sequence with transparent reference elements
        • Copy reference attachments
        • Determine attached references without starting MicroStation
        • Difference between Coincident and Coincident World
        • Display references with greater clarity
        • Displaying new levels in references
        • Ditto ticks in reference dialog
        • Drag and drop models into reference dialog
        • Exaggerate Y-Scale on profiles
        • Exchange into reference based on logical name
        • Exchange references with this macro
        • Force MicroStation to look at the full path of references
        • Force new design models to always be drawn on top of references
        • Force new levels in references to be on
        • Force references to be attached Coincident - World or Coincident
        • Highlight references
        • How to attach a reference saved view at a known location
        • Interrupt reference manipulations
        • Keyin to attach file to itself as a reference
        • Keyin to attach references
        • Keyin to change Use References dialog list
        • Keyin to make a nested attachment a direct attachment
        • Keyin to save changes to reference levels or not.
        • Keyin to set reference adjustment colour
        • Keyin to toggle the display of references
        • Keyins to change reference highlight mode
        • Locating reference attachments
        • Maximum nested attachments setting
        • Maximum number of clip shapes
        • Measuring a scaled reference
        • Merging files
        • Merging reference files during a Save As
        • Modify reference clip boundary
        • Move clipped reference not clipping element - Method 1
        • Move clipped reference not clipping element - Method 2
        • Move clipped reference not clipping element - Method 3
        • Number of clip masks allowed
        • Preset all reference attachment settings
        • Quickly toggle the display of references
        • Reference changes not undoing
        • Reference level display keyins
        • Reference presentation
        • Reference settings in saved views
        • Relative reference file names
        • Removing Save Full Path from references
        • Rewrite reference attachments without the full path
        • Rotating reference files
        • Saving reference level changes
        • Search for text in a reference file
        • Select all levels or all references
        • Standardize reference logicals
        • To quickly open an attached reference
        • Turn off highlighting when manipulating references
        • Unfold your references with ease
        • Use nested references to manage reference attachments a bit better
        • Using Master-Ref scale for details
      • +Tags - Data Fields - Fields
      • +Text - Fonts - Annotation
      • +Views
      • +Windows - Interacting With
      • +Workspaces - Configuration
    • graffiti

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

    Exchange references with this macro

    AskInga logo

    With thanks to Jason Johnson for sharing this application that streamlines the process of editing references.

    Download 317.zip and extract reference_exchange.mvba from the zip file.

    Place the mvba in the folder pointed to by MS_VBASEARCHDIRECTORIES

    Configure MS_VBAAUTOLOADPROJECTS to automatically load the mvba project upon startup.

    Once loaded, two keyins will be available to streamline the process of editing references:

    vba run [reference_exchange]reference.reference will prompt you to select a reference to edit. Simply select an element in the desired reference and accept at which point the selected file will be opened for editing. This is the same as selecting Exchange from the reference dialog.

    vba run [reference_exchange]reference.lastfile will close the reference and open your previous file. This is the same as issuing an ALT + F, 2.

    It's suggested to place these keyins on either a pair of function keys or custom buttons for quick and easy access.

    This VBA macro creates the following file: c:\temp\Administratorfilehistory.txt that contains a running history of the files opened during the design session. This file history can be accessed via a picklist by using bonus macro run with this keyin: vba run [reference_exchange]Load_list.filehistory. Note that this macro will still generate a file history list even if MS_FILEHISTORY is set to zero.

    This application has been tested on MicroStation V8 08.05.02.55 and MicroStation V8 XM Edition 08.09.04.51 and appears to run fine.

    This program is supplied as is. This program does not come with support. 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 #317

    • Askinga
    • Reference Files
    • Article
    • Share
    • History
    • More
    • Cancel
    • Hannah Blye Created by Hannah Blye
    • When: Mon, May 19 2008 4:16 PM
    • Inga Morozoff Last revision by Bentley Colleague Inga Morozoff
    • When: Mon, Jun 14 2010 10:11 AM
    • Revisions: 5
    • 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