Search This Blog

Tuesday, November 07, 2006

Missing Dialog Boxes got you down?

Ever go into AutoCAD and try to open a drawing only to find that you are forced to type in the entire file name and path at the command line?

Did you know that you can use the tilde (~) symbol followed by an enter key to open the dialog box for easier navigation and selection? Try it sometime!

Of course, the best way is to restore the value (=1) of the following variables: CMDDIA and FILEDIA. Want a built in method to do this? Add the following code to your acaddoc.lsp file:


(defun c:Reset ( / )
(prompt "\nMacro: Resetting Dialog Boxes Now!...")
(progn
(setvar "cmddia" 1)
(setvar "filedia" 1)
)
(princ)
)
(defun c:Unset ( / )
(prompt "\nMacro: Preventing Dialog Boxes Now!...")
(progn
(setvar "cmddia" 0)
(setvar "filedia" 0)
)
(princ)
)


When this code is automatically loaded by AutoCAD, you can turn on or turn off your dialog boxes at will by typing "reset" to restore them or "unset" to turn them off.