View Full Version : Change the 'Look In' Folder
mvsawyer
2008-12-18, 07:13 PM
I want to write a lisp program that changes the look-in folder for all the Autocad dialog boxes to be the path of the current opened drawing. My problem is finding the location of the path being used by the "REMEMBERFOLDERS" system variable. Does anyone know where the path for each dialog box is saved so that I might (hopefully) be able to change it.
Thanks.
Michael
ccowgill
2008-12-18, 08:05 PM
my guess would be somewhere within the system registry. but other than that, each dialog remembers it's own separate previous location path
cadconcepts
2008-12-23, 04:07 PM
Michael
The way I have always set this up is the following:
First, on windows the desktop, I right click on my AutoCAD icon select "Properties from the list displayed. I then select the Shortcut tab and I edit the path in the Start in section. I usually set it to go directly to my Projects folder on my server.
Next in AutoCAD, I set the "rememberfolders" variable to 0 (zero).
From this point on, AutoCAD will initially open to your projects folder, and once you open a drawing in particular folder it will continue to go back to that folder until you select another drawing in another folder. Good luck.
Manuel A. Ayala
CAD Concepts
andrea.andreetti
2008-12-24, 04:46 AM
I want to write a lisp program that changes the look-in folder for all the Autocad dialog boxes to be the path of the current opened drawing. My problem is finding the location of the path being used by the "REMEMBERFOLDERS" system variable. Does anyone know where the path for each dialog box is saved so that I might (hopefully) be able to change it.
Thanks.
Michael
Hint !:
the "AutoCad search Path directory" allow program to search from the first to the end of the Path list UNTIL the requested file is not Found.
so you can use something like this...to add/replace/remove any path.
(setq tmp (getenv "ACAD"))
(if (/= (wcmatch (strcase tmp) (strcase "*C:\\Program Files\\MyPath*")) T)
(progn
(setq newdir ";C:\\Program Files\\MyPath"
tmp (strcat tmp newdir))))
(setenv "ACAD" tmp)
RobertB
2009-01-07, 09:07 PM
Hint !:
the "AutoCad search Path directory" allow program to search from the first to the end of the Path list UNTIL the requested file is not Found.
so you can use something like this...to add/replace/remove any path.
(setq tmp (getenv "ACAD"))
(if (/= (wcmatch (strcase tmp) (strcase "*C:\\Program Files\\MyPath*")) T)
(progn
(setq newdir ";C:\\Program Files\\MyPath"
tmp (strcat tmp newdir))))
(setenv "ACAD" tmp)
This is not going to help at all for the dialog boxes in question.
andrea.andreetti
2009-01-07, 09:43 PM
This is not going to help at all for the dialog boxes in question.
?? why not ?
RobertB
2009-01-07, 10:05 PM
?? why not ?Read the initial post.
andrea.andreetti
2009-01-07, 10:14 PM
well..
if all doalog file was saved in same path...maybe this path location can be added into ASPD. ?
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.