Tuesday, January 15, 2008

Dissapearing or moving Custom Toolbars in ArcGIS

If you use a lot of custom/off the beaten path toolbars in ArcGIS, like me, then you must know the frustration of them disapearing or moving around constantly. You can fix both aspects of this annoyance with a little programming and care.

When you make a custom toolbar, make sure you save it to normal.mxt (or the template you normally use). Otherwise, when you load ArcGIS will not see it again unless you load the map document (.mxd) you were working on when you saved the toolbar. If you didnt save the document, then you have completely lost your changes.

If you create you own UIcontrols and save them, they are also attached to the document you choose. Again, if you save your ArcGIS UIcontrol in the mxd document, it will not load in a new document. Also, when scripting, be sure to write all of your codes in the mxt template module, or again, you will lose your changes (you can always copy and paste it over if you forget).

Even more annoying is getting your Toolbars to stay in the location you assign them when you reload ArcMap. This part requires VBA programming:

codes Coming soon