Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
MicroStation
  • Product Communities
MicroStation
[Archived] AskInga Wiki Switch between models 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
        • A neat trick to delete the Default model
        • Control how the views appear when navigating through models
        • Extract model names and descriptions
        • Import models-cells from other files
        • Keyin to set the active model
        • Locked models
        • Open file and get to a specific model via keyin
        • Phantom model in your file?
        • Quickly change a models name or description
        • Switch between models with this macro
        • Understanding models
        • Utilizing models to improve raster reference performance
      • +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. 

    Switch between models with this macro

    AskInga logo

    Original Article Date: April 4, 2005

    With many thanks to Rodney Wing and Rudi Wells for contributing these macros that allow you to quicly switch between models using next and previous buttons. They are both great when working with cell libraries and eliminates a lot of extra clicking found in traditional methods of doing the same task.
    2005-08-17 Updated to include Rudi's macro.

    VBA Macro from Rodney Wing:
    Download 238.zip and extract viewModel.mvba from the zip file.
    Place the mvba in the folder pointed to by MS_VBASEARCHDIRECTORIES
    Keyin vba load viewModel to load the project, or...
    Configure MS_VBAAUTOLOADPROJECTS to automatically load the mvba project upon startup.
    Keyin vba run [viewmodel]viewmodel to run the macro, or...
    Place the keyin on a function key or custom button for quick and easy access.

    BASIC Macro from Rudi Wells:
    Download 238.zip and extract ChangeModel.bas from the zip file.
    Place the file in your macro folder.
    Keyin macro changemodel next to go to the next model.
    Keyin macro changemodel previous to go to the previous model.

    Stick these keyins on a pair of function keys or custom buttons and you're good to go.

    Note: these keyins will open the model dialog.
    If that bites, add ;model dialog close to the end of each keyin.

    i.e:

    MbeSendKeyin "model dialog open;dmsg cursor down;model active;model dialog close"

    These programs are supplied as is. These programs do not come with support. AskInga, Bentley Systems Inc., and the author of these programs assume no liability for damages direct, indirect, or consequential, which may result from the use of these programs. Use these programs at your own risk.

    AskInga Article #238

     

    • Models
    • Askinga
    • FreewareShareware
    • Article
    • Share
    • History
    • More
    • Cancel
    • Danielle Schutz Created by Bentley Colleague Danielle Schutz
    • When: Fri, May 23 2008 9:01 AM
    • Jordan Stierly Last revision by Jordan Stierly
    • When: Mon, Jun 14 2010 11:22 AM
    • Revisions: 6
    • 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