loading lisp applications on all drawing files
I can load my lisp files on start up but, if I open a new drawing, I have to appload again.
What am I doing wrong
I have copied my lisp files into on_start.lsp which I understand to be the correct thing to do.
Is there anyone who can help me here?
Regards,
Anthony
What am I doing wrong
I have copied my lisp files into on_start.lsp which I understand to be the correct thing to do.
Is there anyone who can help me here?
Regards,
Anthony
0
Comments
-
The "on_start.lsp" is (by default) only loaded once ("on start") ...
but there is ACADLSPASDOC=1/0, which allows to load the "on_start.lsp" for each drawing when set as 1.
Nevertheless, it is always better to place the loader code into "on_doc_load.lsp", because that file is loaded per drawing always, independent from ACADLSPASDOC setting.
Many greetings !0 -
Thank you very much for your reply.
I don't seem to have "on_doc_load.lsp" in my Bricscad files.
Can I copy on_start.lsp with the other name?
Regards,
Anthony0 -
.....it seems to work.
Thank you Torsten.0 -
Yes, of course you can copy the file to "on_doc_load.lsp") ...
Just a hint :
using (setvar "ACADLSPASDOC" 1) in such automatically loaded Lisp files (on_start.lsp + on_doc_load.lsp) solves such trouble once & foreever :-)
having ACADLSPASDOC=0 does really not make much sense ...
Many greetings !0
This discussion has been closed.