ACAD.LSP Loads, and only the 1st one runs, the rest don't load/work.

ACAD.LSP Loads, and only the 1st one runs, the rest don't load/work.

Anonymous
Not applicable
1,624 Views
6 Replies
Message 1 of 7

ACAD.LSP Loads, and only the 1st one runs, the rest don't load/work.

Anonymous
Not applicable

I'm using AutoCAD Architecture 2019. I'm currently loading the acad.lsp file via the Manage/Applications/Load Application menu. It says that the file loads just find. My problem is that the first routine works, but none of the rest of them work. I've used this acad.lsp file for years now and all of them (that are inside of acad.lsp). Am I missing something? Yes, I know that the acaddoc.lsp file is the one that is loaded if it's in the startup suite.

 

Thanks for all of your help.

0 Likes
1,625 Views
6 Replies
Replies (6)
Message 2 of 7

cadffm
Consultant
Consultant

 

 

>" I'm currently loading the acad.lsp file via the Manage/Applications/Load Application menu."

1. Why? that way or why this filename?

2. Really by select the acad.lsp file and then [LOAD] or do have the acad.lsp added to the appload/Startup suite?

 

>"It says that the file loads just find." (fine you mean?!)

Please check the text log after load [F2] - No errors?

 

>"My problem is that the first routine works, but none of the rest of them work."

So the problem starts after the first defun in your file. I am sure if you delete the first routine (for testing),

NO one will work (also not the routine which is the first now.

 

>"I've used this acad.lsp file for years now and all of them (that are inside of acad.lsp)."

 Also in this productversion with success before? If not: What was the last version where it works well?

 

>"Am I missing something?"

Yes, but we can not check the problem without this lisp file and if the problem

only appears in some cad files and not in a new one, we need this CAD file too.

 

>"Yes, I know that the acaddoc.lsp file is the one that is loaded if it's in the startup suite."

No, you can all files add to the startup suite, but acad.lsp and acaddoc.lsp are special file(name)s

which can be loaded automatically due to the name alone.

(Acad need tofind the files due supportpathes)

 

And: If you load acad.lsp  automatically due to the name&location,

you can also use ACADLSPASDOC to loaf acad.lsp in every file!

But this is stupid because this is exactly the different between acad.lsp and acadodc.lsp,

so i prefer to use it as designed long time ago.

acad.lsp just on program startup, acaddoc.lsp on every document.

 

And now:

Can you see an error in text log [F2]?

Do you like to share the acad.lsp file?

 

Without the data and informations it is hard to help.

Sebastian

0 Likes
Message 3 of 7

Anonymous
Not applicable

>" I'm currently loading the acad.lsp file via the Manage/Applications/Load Application menu."

  1. Why? that way or why this filename? I was doing it this way until I can get this issue resolved.
  2. Really by select the acad.lsp file and then [LOAD] Yes or do have the acad.lsp added to the appload/Startup suite? Yes, it is in there also.

 

>"It says that the file loads just find." (fine you mean?!) Yes.

Please check the text log after load [F2] - No errors? "Command: LOAD failed: ...<gives the address>

 

>"My problem is that the first routine works, but none of the rest of them work."

So the problem starts after the first defun in your file. I am sure if you delete the first routine (for testing),

NO one will work (also not the routine which is the first now. Well, no; as you can see if you take a look at the supplied acad.lsp file the "zzx" is the first one and even with it erroring out the "zzx" when typed at the command prompt still works, but it says that it's an unknown command. I did try getting rid of the zzx with the same issue.

 

>"I've used this acad.lsp file for years now and all of them (that are inside of acad.lsp)."

 Also in this productversion with success before? Yes, up until about a month or so ago. If not: What was the last version where it works well?

 

>"Am I missing something?"

Yes, but we can not check the problem without this lisp file and if the problem

only appears in some cad files and not in a new one, we need this CAD file too. It seems to be appearing in all of the drawing files that are opened.

 

>"Yes, I know that the acaddoc.lsp file is the one that is loaded if it's in the startup suite."

No, you can all files add to the startup suite, but acad.lsp and acaddoc.lsp are special file(name)s

which can be loaded automatically due to the name alone.

(Acad need tofind the files due supportpathes) In the startup suite, the acad.lsp file has the path listed.

 

And: If you load acad.lsp  automatically due to the name&location,

you can also use ACADLSPASDOC to loaf acad.lsp in every file!

But this is stupid because this is exactly the different between acad.lsp and acadodc.lsp,

so i prefer to use it as designed long time ago.

acad.lsp just on program startup, acaddoc.lsp on every document.

 

And now:

Can you see an error in text log [F2]? "Command: LOAD failed: ...<gives the address>

Do you like to share the acad.lsp file? Attached, I've renamed it to acad_test.lsp

0 Likes
Message 4 of 7

rkmcswain
Mentor
Mentor

There is no need to load "Acad.lsp" through any means. As long as there is one found in the support file search path, it will be loaded automatically, once per *session* (presuming you don't alter the sysvar "acadlspasdoc"). This is built into AutoCAD (and its verticals).

 

The same applies to "Acaddoc.lsp", except it loads automatically once per *drawing*

 

If you want lisp functions to be available in all drawings, they should be defined (or loaded) from "Acaddoc.lsp"

 

If only *part* of a lisp file is loading, that means there is an error in the code. Step through it one line at a time, or remove parts of it as a test, until you find the culprit. If you want to share the file, post it here and someone will find the problem.

 

There is no need to ever use the startup suite since you can load lisp files using acaddoc.lsp.

R.K. McSwain     | CADpanacea | on twitter
0 Likes
Message 5 of 7

Anonymous
Not applicable

I'm aware of using acaddoc.lsp, I was just loading it that way due to it having an issue. Please refer to the previous reply and it (acad_test.lsp, it was renamed) can be downloaded there.

Thanks

0 Likes
Message 6 of 7

cadffm
Consultant
Consultant

Sorry, but i can not believe that you understand us or how to handle with acad.lsp/acaddoc.lsp.

Please remove acad.lsp and/or acaddoc. lsp from the startup suite (or rename the file(s)).

 

And your statement "I've used this acad.lsp file for years now and all of them (that are inside of acad.lsp).""

is wrong or not you mean only the file and not the content.

We can see it because of your path  "AutoCAD 2019", i am sure in Version 2013 you don't used a path to a 2019 AutoCADversion 🙂

 

This file content will never work, not in the past, not now and not in the future.

Over 1000 rows and the  mistake is in line 7 located, just one (

 

190213-6.jpg

 

Add the one (

and test again.

Sebastian

0 Likes
Message 7 of 7

Anonymous
Not applicable

Thank you, yes that worked, must be blind...Smiley Happy

0 Likes