Ham007 Posted February 26, 2009 Posted February 26, 2009 Hello, I am trying to learn about AutoLISP for a project that I have to present in two weeks in my job. I would like to know where do I save the file acaddoc.lsp? If the code within the file acaddoc.lsp I need to call another .lsp functions, where do I save them so the acaddoc.lsp can load them properly? I will appreciate your help and comments. Thank you! Quote
ReMark Posted February 26, 2009 Posted February 26, 2009 Look in the CADTutor AutoCAD FAQ under Customizations. There is a FAQ that might be of some help (load variables). Quote
Lee Mac Posted February 26, 2009 Posted February 26, 2009 I believe you need to save the ACADDOC.lsp in your ACAD search path - the easiest location for this would be within the support files in the program files. You can also change the default ACAD search path within the "files" tab in the ACAD options. But I could be wrong. Quote
ReMark Posted February 26, 2009 Posted February 26, 2009 You do know there is a default acaddoc.lsp in AutoCAD right? You're not creating a new one are you? Quote
lpseifert Posted February 26, 2009 Posted February 26, 2009 You do know there is a default acaddoc.lsp in AutoCAD right? You're not creating a new one are you? Maybe I'm wrong, but I think you need to create one; installation (in my case 2008) comes with acad2008.lsp & acad2008doc.lsp but no acaddoc.lsp. Quote
Ham007 Posted February 26, 2009 Author Posted February 26, 2009 I already created the file acaddoc.lsp and placed it in the support folder for autocad but my question is about the rest of the .lsp files, is there any specific library to place those files? Those files will be called by acaddoc.lsp Quote
Lee Mac Posted February 26, 2009 Posted February 26, 2009 I would say, again, somewhere in the search path. Quote
ReMark Posted February 26, 2009 Posted February 26, 2009 Ah...you may be right lpseifert. The one I have may have been carried over from a previous release. I can't recall for sure. I'll have to check that out. Quote
ReMark Posted February 26, 2009 Posted February 26, 2009 I was wrong...you were right. Knocks self in head with 2x4. As per R.K.McSwain: "If you have lisp routines that you want to make available in each drawing session, forget the "Startup Suite" and load them using the "acaddoc.lsp" file. "acaddoc.lsp" is not included with AutoCAD, you create it yourself. But it is nothing more than a plain lisp file, except that the first one found at drawing startup (just put it in your support file search path), is loaded automatically each time a drawing is opened." Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.