Lisps are not loaded HELP!

Lisps are not loaded HELP!

Anonymous
Not applicable
4,097 Views
9 Replies
Message 1 of 10

Lisps are not loaded HELP!

Anonymous
Not applicable

Hi,

 

I have problem of loading my lisps automatically for all my documents:

 

I put all my desired lisps in this folder:

C:\Program Files\Autodesk\AutoCAD 2018\Support\en-us

also I add these lines to my  ACAD2018DOC.LSP (there are more but for example) :

(load "3PRD")
(load "atc")
(load "b1")
(load "bi")

In autocad I made custom toolbar and loaded the lisp :

(for example)  for "3prd.lsp"  I wrote in the Macro line :

^C^C_3PRD;

In other versions of autocad it works fine , but I have tried in on Autocad 2018 and it didn't work.

 

Also every time I open my Autocad  my toolbars is messy (here is a picture):

 

https://drive.google.com/open?id=0BywYPAsctPuLdFpqNmNfMVVTZFU

 

Any help would be greatfull.

Thank you

Eyal

 

 

 

0 Likes
Accepted solutions (2)
4,098 Views
9 Replies
Replies (9)
Message 2 of 10

Anonymous
Not applicable

Perhaps this works:

 

^C^C^P(if (= C:3PRD nil)(load"3PRD")(princ))^P _3PRD

 

0 Likes
Message 3 of 10

Anonymous
Not applicable

Hi,

 

It doesn't work.

 

The problem seems to be with loading the lisps when the document is loading.

 

I put the lisps in this path:

 

C:\Program Files\Autodesk\AutoCAD 2018\Support\en-us

 

is it ok for Autocad 2018?

 

Also in acad2018doc.lsp I put the line:

 

for example to load the lisp : linebetween.lsp

 

(load "LineBetween")

 

What's the problem? 

 

When I load the lisp within Autocad regularly it works fine.

 

Please I need your help.

 

0 Likes
Message 4 of 10

cadffm
Consultant
Consultant
Use a S::STARTUP function for load your Lisp, works?
http://help.autodesk.com/view/ACD/2018/ENU/?guid=GUID-FDB4038D-1620-4A56-8824-D37729D42520

Note: Acad20xxdoc.lsp is a Systemfile, For own gaming use ACADDOC.lsp

Sebastian

0 Likes
Message 5 of 10

Anonymous
Not applicable

Hi,

 

It doesn't work for me. I installed the update of 2018 and still the lisps are not loaded maybe I need to put them in another directory and not in:

C:\Program Files\Autodesk\AutoCAD 2018\Support\en-us.

 

In the acadoc.lsp I put the lines:

 

for example:

 

(load "LINE_DIV")
(load "ObjectBreakV1-0")

 

whats wrong?

 

 

regards.

0 Likes
Message 6 of 10

ВeekeeCZ
Consultant
Consultant
Accepted solution

It's acaddoc.lsp

 

make sure that the file path of your lisp files is one of your support path... and also check the security setting. See HERE and help.

 

Good luck.

Message 7 of 10

Ranjit_Singh
Advisor
Advisor
Accepted solution

You need to put them in one of the support file search paths; one of these

(getenv "Path")

If C:\Program Files\Autodesk\AutoCAD 2018\Support\en-us isn't part of the path variable then add it to the support path via options -> filesSupportPath.png

Message 8 of 10

Kent1Cooper
Consultant
Consultant

@ВeekeeCZ wrote:

It's acaddoc.lsp

 

....

Absolutely.  Help specifically warns against modifying the ACAD<release-number>.lsp file, and makes no mention whatever of any ACAD<release-number>DOC.lsp file.  The one that it looks for, and loads in every drawing if it's present in a folder in the Support File Search Path list, is under the name ACADDOC.lsp.  Also, make sure you don't have more than one such file in different folders in the list -- if you do, I believe it will run what's in the first one it finds, and ignore any others, so if anything you want done is spelled out but in another ACADDOC.lsp file, it won't be done.

Kent Cooper, AIA
0 Likes
Message 9 of 10

Ranjit_Singh
Advisor
Advisor

@Kent1Cooper wrote:
no mention whatever of any ACAD<release-number>DOC.lsp file.............


I believe with AutoCAD 2017 they have started the acad<release-number>doc.lsp. See help from AutoCAD for AutoCAD 2017. However, they do warn not to change its contents. So OPs best bet is to add to acaddoc.lsp and/or acad.lsp

 

EDIT: I did find this AutoCAD help which even mentions of acad2000doc.lsp So, I guess it has existed forever, maybe/maybe not in R14.

0 Likes
Message 10 of 10

Kent1Cooper
Consultant
Consultant

@Ranjit_Singh wrote:

@Kent1Cooper wrote:
no mention whatever of any ACAD<release-number>DOC.lsp file.............

I believe with AutoCAD 2017 they have started the acad<release-number>doc.lsp. See help from AutoCAD for AutoCAD 2017. However, they do warn not to change its contents. ....


I was looking in just-plain Help, not the Knowledge Network.  There's no mention of it in the area about automatically loading stuff, where it talks about ACAD.lsp and ACADDOC.lsp.

 

In any case, it does say, in your linked Knowledge Network article:

 

Note: Do not modify the reserved acad<release>doc.lsp file. Autodesk provides the acad<release>doc.lsp file, which contains required, release-specific, AutoLISP-defined functions.

Kent Cooper, AIA
0 Likes