Search the Community
Showing results for tags 'acad.lsp'.
-
acad.lsp and acaddoc.lsp with local variables appending S::STARTUP
rickh posted a topic in AutoLISP, Visual LISP & DCL
Am I using acad.lsp and acaddoc.lsp poorly? I am using defun-q and appending S::STARTUP (as per the help files). This much works in general. The ony problem is if they have local variables. On autocad startup, the acad.lsp is added to S::STARTUP. Then the acaddoc.lsp is added to S::STARTUP. For arguments sake, lets assume acad.lsp is the first thing in the S::STARTUP (nothing before it). In this case, the acad.lsp functions will load just fine, then the S::STARTUP will cancel because it reads the ( / local variables) line from the acaddoc.lsp, which are now somewhere in the middle of the S::STARTUP - no longer defined as local variables. Of course the error is a numberp nil because it treats it as division. I hope this all makes sense. Do any of you have suggestions or other methods to try? I appreciate the help. p.s. the acaddoc.lsp loads just fine on any subsequent drawings opened after startup, when acad.lsp is not loading...so I am pretty positive it is the local variables shown in the middle of the S::STARTUP causing the error.- 5 replies
-
- acaddoc.lsp
- acad.lsp
-
(and 1 more)
Tagged with:
-
Thanks to the help I've received on this forum I've developed a number of simple lisp routines that help a great deal. My issue is that each time I open up acad, I need to go to tools>lisp>load application in order to load my lisp file. I've read online that you can create / modify your acad.lsp file, place it in a place where acad searches for it (options-->files-->support file search path). I've put my acad.lsp file in there with contents: load "U:\\LISP\filename.lsp" but when I start up Acad, my defined commands are "unknown". Any help? thanks Erik
- 5 replies
-
- autoload lisp
- acad.lsp
-
(and 1 more)
Tagged with: