PDA

View Full Version : Open to specific drive & folder



Seneb
6th Feb 2009, 10:16 pm
We have all of our projects located on our "J" drive. With no files open, I want to set ACAD to go directly there instead of My Documents when selecting File > Open, Ctrl + o, or typing OPEN. Possible?

rkent
6th Feb 2009, 10:41 pm
REMEMBERFOLDERS

0 Restores the behavior of AutoCAD 2000 and previous releases. When you start the program by double-clicking a shortcut icon, if a Start In path is specified in the icon properties, that path is used as the default for all standard file selection dialog boxes.
1
Uses standard Microsoft behavior. When you first start the program after installation, the default path in each standard file selection dialog box is My Documents. When you open or save a file to another folder, that folder is remembered for future file selection. The Start In folder specified for the shortcut icon is not used)

uddfl
6th Feb 2009, 10:44 pm
You can also redefine the open command to a lisp routine:



(command "undefine" "open")
(defun c:open (/ dwgname path1)
(setq path1 (strcat "J:\\"))
(setq dwgname (getfiled "Open file" path1 "dwg" 4))
(vla-activate (vla-open (vla-get-documents (vlax-get-acad-object)) dwgname))
(princ)
)


But this will ALWAYS go to J:\

Seneb
6th Feb 2009, 10:50 pm
Awesome. That's just the info I needed. Our variable is set to 0, so I changed the path of the icon to "J:\" and it's perfect. Thanks!

papagyi
2nd Mar 2009, 02:22 pm
Thank guys,
This is helpful to me.

Zorg
1st May 2009, 04:42 pm
Thanks! Massive help!