Command: (load "acad.lsp")
; error: bad argument type: stringp nil
This happens for any LISP routine on AutoCAD's search path. If you try to
load a file that does not exist or is not on the search path you get the
usual "Error: Load failed." Anybody have any idea what's going on?
Thanks,
Steve
Do you use global variable(s) in your LISP?
Seems like one of them is not set.
Cheers
--
Juerg Menzi
MENZI ENGINEERING GmbH, Switzerland
http://www.menziengineering.ch
"Steve Mayman" <St...@ErgoArchitecture.com> wrote in message
news:B5ADF940357F29FE...@in.WebX.maYIadrTaRb...
>
> I use global variables in a menu that is in use when the problem occurs,
but
> this occurs with any LISP, even if there are no variables at all. For
> example if I tried to load a LISP with a single princ statement and no
> variables defined I still get the same message. My guess is that the
string
> that LISP doesn't like is the string in the LOAD command that is being
> issued (the name of the file to load.) It should also be noted that I can
> load the files through TOOLS>LOAD APPLICATION successfully.
I use global variables in a menu that is in use when the problem occurs, but
this occurs with any LISP, even if there are no variables at all. For
example if I tried to load a LISP with a single princ statement and no
variables defined I still get the same message. My guess is that the string
that LISP doesn't like is the string in the LOAD command that is being
issued (the name of the file to load.) It should also be noted that I can
load the files through TOOLS>LOAD APPLICATION successfully.
Thanks,
Steve
I am almost certain the answer is "no" unless it is a program that we did
not write and is somehow being loaded without our knowledge. Things work
perfectly about 95% of the time, but every couple weeks or so one of the
machines on our network will develop this problem and not be able to load
our custom routines. Closing and re-opening AutoCAD does not help, but very
often simply shutting down the computer and re-starting will get things
running normally again. At first it seemed network related, but it is
finding the files we are trying to load or we would simply get a "load
failed" message. Could some system variable be getting tweaked and causing
this?
Thanks,
Steve
Alfredo Medina
alfm...@hotmail.com
Thank you for your comments, but I get this message if I load ANY lisp
routine, no matter how simple. If I close AutoCAD, reboot the computer, and
open AutoCAD again then the routines begin to load properly again. It seems
to me that if there were errors in the routines they would never work, but
they work fine most of the time. Any other ideas?
Thanks,
Steve
Do you have an acaddoc.lsp file? Or only an acad.lsp file? If you have
both, are there some routines being loaded in one file that are not listed
on the other one? What is your current setting in the "System" tab of
"Options" for the "Load Acad.lsp with every drawing" option?
Alfredo Medina
alfm...@hotmail.com
--------------------------------------------------------------------------------