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_VBASEARCHDIRECTORIESKeyin 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