Exchange Forum > AutoLISP and Visual LISP
S::Startup in AutoCAD 2007+
S::Startup in AutoCAD 2007+

#1

isoplane
Join Date:
07-27-2007
Is there something new with AutoCAD 2007 not wanting to reload Acaddoc.lsp with the S::Startup function? I keep getting as error with the S::Startup function when I try to reload Acaddoc.lsp. It didn't happen in previous versions. Any ideas?
S::Startup in AutoCAD 2007+

#2

Hayes
Join Date:
07-28-2007
The s::startup function is initially only loaded once when you either open a drawing or start a new drawing. You can test or debug this by adding a (princ "1.") just before your s::startup function in your Acaddoc.lsp, and also add a (princ "2.") as the first line of code inside the s::startup function. I use AutoCAD 2006, and I'm seeing "1.2." when a drawing is opened, and only a "1." when I reload Acaddoc.lsp.
S::Startup in AutoCAD 2007+

#3

Zeanor
Join Date:
07-26-2007
If you're using (defun s::Startup, try using (defun-q s::Startup and see if that fixes it.
S::Startup in AutoCAD 2007+

#4

isoplane
Join Date:
07-27-2007
I've never used defun-q before, but that made the difference.
S::Startup in AutoCAD 2007+

#5

gile
Join Date:
11-06-2007
Quote:
I've never used defun-q before, but that made the difference.
Hi,
 
Quickly said, defun-q defines a function as a list.
 
You can see this reply in AUGI forum for a longer explaination in better English.