Originally Posted by
cadd4la
Tom,
Thanks for your reply, Unfortunately, the code doesn't work. This is what I get when I run it
Cadd4la
The function LM:explore hasn't been defined. You failed to load Lee's lisp file. You can load it at startup via acad.lsp or manually load it in this command. Did you download Lee's command from the link Tom posted in post 2? Copy the lisp from the link and save it to your acad.lsp file. Or save it to explore.lsp and in your zof function, use (load "explore.lsp").
Code:
;; Explore - Lee Mac
;; Opens a specified folder in a Windows Explorer window.
;; target - [int/str] Directory or ShellSpecialFolderConstants enum
(defun LM:explore ( target / rtn shl )
(if (and (or (= 'int (type target)) (vl-file-directory-p target))
(setq shl (vla-getinterfaceobject (vlax-get-acad-object) "shell.application"))
)
(progn
(setq rtn (vl-catch-all-apply 'vlax-invoke (list shl 'explore target)))
(vlax-release-object shl)
(if (vl-catch-all-error-p rtn)
(prompt (vl-catch-all-error-message rtn))
t
)
)
)
)
;;;usage
(defun c:ZOF24x36 ()
(LM:explore "C:\\VDG Dropbox\\03 - C A D Defaults\\03.01-Blocks\\03.01.04-CDs\\03.01.04.06-Details\\03.03.04.01-VDG_24x36")
)