CAD PANACEA HAS MOVED TO http://cadpanacea.com
02 July 2006
AutoCAD customization - Setup and migration          
I constantly get questions like "How to I get my custom toolbars off my old install and put them into my new AutoCAD" -or- "I had to run a repair on my AutoCAD, what happened to my custom pull-down menu?"

Sure it's easy to add a pull-down menu or toolbar, but do you know where this data lives? Do you know how to back it up? Do you know how to migrate it to your friends machine, or to a new install of the latest version?

Here are some tips of how to setup your AutoCAD customization so that it's easy to use, backup, and migrate.

The procedures below are described for AutoCAD 2006/2007, earlier versions are similar. Any items specific to 2006/2007 are marked with *.


  1. Create a new directory, let's call it C:\CADSTUFF
  2. Add this new directory to the top of your support file search path.
  3. Place all your custom files in this new directory.
  4. This might include:

    • acad.lsp - this lisp file is loaded automatically at the startup of AutoCAD. This file may contain commands and operations that only need to be done once per AutoCAD session. If the system variable ACADLSPASDOC is set to 1, then this file is loaded every time a new drawing is opened. I suggest keeping ACADLSPASDOC set to 0.
    • acaddoc.lsp - This lisp file is loaded automatically each time a drawing is opened. It might contain lisp routines that need to be loaded in each drawing. You can also include (setvar) commands to set system variables that are not saved in the drawing or registry.
    • custom.cui - This menu file is partially loaded automatically each time AutoCAD starts *
    • custom.mnl - This lisp file is loaded automatically each time custom.cui is loaded.
    • acad.pgp - AutoCAD program parameters file. See AutoCAD HELP for more information.
    • acad.fmp - Font mapping file. See AutoCAD HELP for more information.
    • custom linetype files
    • custom hatch patterns
    • custom shape files
    • and more...



Why add this path to the top? AutoCAD automatically loads certain files at application startup and at drawing startup. In doing so, it searchs the support file search path in the order specified. loads the first file it finds, then quits looking. For example, if you have a custom acad.pgp in C:\CADSTUFF and this path is at the top, it will be found and loaded. It doesn't matter if there are 2 or 3 other files named acad.pgp in other directories, these will not be found or loaded.

If you want to create a custom menu or toolbars, do not customize the stock "acad.cui". Why? Because your changes can be lost during the next reinstall, repair, service pack application, or upgrade that you perform. Create your own menu file and partially load it instead. As mentioned, AutoCAD will automatically partial load the menu named custom.cui (a blank one is supplied with AutoCAD) *, or you can create your own menu, like "mymenu.cui". Either way, save this new menu to your C:\CADSTUFF directory.

Now all your customization is saved in a single directory, so it's easy to back up, easy to find when edits are needed, and you don't have to worry about migrating these customizations to future releases. When that time comes, simply add C:\CADSTUFF to the top of the support file search path again.

If you work in a network environment and you want to have a single copy of these customizations for all users, then instead of making C:\CADSTUFF on your local machine, create a network share like \\MYSERVER\CADSTUFF. Then add that path to the top of everyone's support file search path. Make sure to set the network security permissions accordingly so that only the necessary persons have write access to this location.

PermaLink       Posted 7/02/2006 07:27:00 AM     
2 COMMENTS!


Comment from: Anonymous Anonymous
Date: May 18, 2007 at 8:27:00 AM CDT  

If your going to share cui file and lsp files over a network it makes sense to use the enterprize menu and set the path in menu search path to your network location.


Comment from: Anonymous Anonymous
Date: November 19, 2008 at 6:46:00 AM CST  

But you don't have to use the enterprise menu and this is especially true when working with verticals.

Post a comment