Search This Blog

Tuesday, January 01, 2008

Open Explorer using current drawing as root.

Here is a short snippet of code to help you open a windows explorer window (for file management) using the currently active drawing in AutoCAD as the current folder. It is a nice shortcut to allow you to quickly find other project related files.

(defun c:this () ;Open Explorer in Current folder (command "shell"
(strcat "explorer \"" (getvar "dwgprefix") "\"")
) (princ))

To use this, make sure that you have it loaded before you call it. Then at the command line you can simply type the word "this" to launch an explorer window. Hope you find it as useful as I have.


No comments: