Tips for Barmenus


AskInga logo

Original Article Date: July 4, 2006 

Contributing author Hilton Quinn offers these tips when working with barmenus. They're a great accompaniment to the Fly With Barmenu articles.

Tip 1 - Edit the title
You can change the title of your barmenu without having to go in into the Macro > Builder file by simply adding a title in the MDF file prefixed by Macro> #.
For example, the title CAD Toolbox defined in the MDF file after #.

Editing this direclty in the MDF file to read XYZ Office Standards will result in a new title for the barmenu as shown below.

 

Tip 2 - Add a Reload function
The following tip is useful in situations where you are constantly editing and testing changes to the MDF file. In doing so you must save the MDF text file, close the barmenu in MicroStation and finally reload it with a keyin. Instead of this workflow, just add a Reload Barmenu in the MDF file.

To do that, just add this syntax:

Reload Barmenu, "MDL UNLOAD BARMENU; MDL LOAD BARMENU
"\\fwuk.fwc.com\RDG\User\D153\Home\t9446\My Documents\MicoStation Settings\CAD_Toolbox\202_DATA\CADTlbx.MDF""

NOTE: Double apostrophes are required for file names with spaces in the path name e.g. "input"File Path"".

As you can see that path is rather long, so consider creating and using configuration variables such as TOOLBX which I've defined in standards.cfg file.

Reload Barmenu, "MDL UNLOAD BARMENU; MDL LOAD BARMENU
"$(TOOLBX)202_DATA/CADTlbx.mdf""

 

AskInga Article #299