Jump to content

Recommended Posts

Posted

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! :unsure:

Posted

Look in the CADTutor AutoCAD FAQ under Customizations. There is a FAQ that might be of some help (load variables).

Posted

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. :P

Posted

You do know there is a default acaddoc.lsp in AutoCAD right? You're not creating a new one are you?

Posted
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.

Posted

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

Posted

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.

Posted

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."

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...