Sandra,
Been sort of following this with some interest and hoping for a logical
solution. But anyway I have one theory to try. What is your
REMEMBERFOLDERS system variable set to? If it is set to 1 then try setting
it to 0 and test the behavior of your setup again if you can... but without
Luis' code in it. The Help files provide this information on the
REMEMBERFOLDERS variable (from AutoCAD Building Systems 2005).
Type: Integer
Saved in: Registry
Initial value: 1
Controls the default path for the Look In or Save In option in standard file
selection dialog boxes.
0 Restores the behavior of AutoCAD 2000 and previous releases. When you
start AutoCAD by double-clicking an AutoCAD icon, if a Start In path is
specified for the icon, that path is used as the default for all standard
file selection dialog boxes.
1 Specifies that the default path in each standard file selection dialog box
is the last path used in that dialog box. The Start In folder specified for
the AutoCAD icon is not used.
So then, I can imagine that this may affect whether or not AutoCAD can find
and load your acaddoc.lsp file. It probably also depends on what method you
use to initialize AutoCAD and then open your files and any subsequent files.
Sounds to me if REMEMBERFOLDERS is set to 1 and then you open a second file
by scrolling to a different folder, which has a different acaddoc.lsp file
in it, and opening a file (that is not in your current folder which already
has its own acaddoc.lsp file - follow all that?) then this odd behavior
manifests itself. There may be a situation that does not update the path
information that the variable is affecting. I am just speculating, I don't
know all of your settings or how you are opening files and subsequent files
or all the situations that affect the REMEMBERFOLDERS variable. And I am
not sure if this variable is the cause of this situation. And I did not try
to test this theory.
Hopefully, this will lead to an answer, let us know if you tested any of
this please.
Arnold Williams
Post by Sandra RiveraThank you, you have been a big help.
Post by Luis EsquivelYou may try to force the loading by pasting this on any mnl file [ie
acad.mnl] just to test or make sure the file is there....
(if (findfile (strcat (getvar "dwgprefix") "acaddoc.lsp"))
(load (findfile (strcat (getvar "dwgprefix") "acaddoc.lsp"))
nil))