Thursday, July 06, 2006

Open explorer in the current open drawing directory

This simple routine has saved me so much time. I work with explorer primarily to navigate through projects. However, I don't use it to open drawings. I work in LDT and we should all know its limitations by now when it comes to associating projects properly.

(defun c:expl () ;;Change "expl" to any command you wish for a macro
(startapp "explorer" (getvar "dwgprefix"))
(princ)
)

Copy the 4 lines above to a ASCII file with an extension of ".lsp". Loading is simple with the "appload" command. Add it to your start up suite and you're good to go!

2 comments:

Anonymous said...

Duuude..
Thank you!

Anonymous said...

Excellent, very handy for those of us with deep directory structures for our projects.