Here's what I use to OPEN another drawing in the current drawing's folder, for the same reason.
Maybe you can adjust it for your purposes.
{code}
;;; DCF.lsp
;;; to open a Drawing in the Current drawing's Folder
(defun C:DCF ()
(vla-activate
(vla-open
(vla-get-documents
(vlax-get-acad-object)
)
(getfiled "Select drawing:" (getvar 'dwgprefix) "dwg" 0)
)
)
)
(prompt "\nType DCF to open a Drawing in the Current Folder.")
{code}
--
Kent Cooper
orin4321 wrote...
once you type in the xref command. is there a lisp routine that bypasses the dialog box, and takes
you straight to the current working file? bouncing back and forth between multiple jobs,
reselecting file paths gets old.