AutoCAD Architecture 2015 - Cannot invoke (command) from *error* without ...

AutoCAD Architecture 2015 - Cannot invoke (command) from *error* without ...

Anonymous
70,951 Views
37 Replies
Message 1 of 38

AutoCAD Architecture 2015 - Cannot invoke (command) from *error* without ...

Anonymous
Not applicable

I have recently upgraded to AutoCAD 2015 - I'm actually using MEP installed as part of the Building Design Suite but I'm running it under the Architecture profile, hence me posting in this section.

 

I have noticed that whenever any kind of error is triggered I get the following message on the command line:

 

Cannot invoke (command) from *error* without prior call to (*push-error-using-command*).
Converting (command) calls to (command-s) is recommended.

 

This is a clean install with no form of add-ons or personal lisp routines etc so I am 100% confident that this message is not linked to something I have added. The message comes up regardless of what the error trigger is, even something as simple as typing (alert 1) will throw this message out rather than the expected bad argument type: stringp 1.

 

I then changed my profile to plain AutoCAD, restarted CAD and tried triggering an error and this time I get the correct error message. So it seems that whatever is going on, it is related to something within the Architecture profile.

 

Has anybody else experienced this situation? I have tried on three machines (all running the same software setup) and each of them throws the same error when in the Architecture profile but not in the AutoCAD profile so I know it is not specific to just one machine.

 

[ The subject line of this post has been edited to include the product name by @handjonathan ]

0 Likes
Accepted solutions (1)
70,952 Views
37 Replies
Replies (37)
Message 21 of 38

Anonymous
Not applicable

I have just reinstalled ACA 2015 and given the suggested fix a try but it isn't working for me. If I manually paste the re-definition code into the command window it works perfectly but when I use it in my acaddoc.lsp file it doesn't. I know the code is being run because I added princ statements before and after so that I could be sure but for some reason it won't work.

 

Not sure if it makes any difference but I'm running SP2 (why didn't Autodesk fix this as part of the SP?) whereas previous comments have been based on machines running SP1.

0 Likes
Message 22 of 38

BillGlennie
Alumni
Alumni
Accepted solution

Here is the solution.  There is an error handler in one of the welding lisp files that needs to be updated.  Replace the original version of AecDetailsWeldCMD.lsp, which is located in the Welding folder under the install directory (typically C:\Program Files\Autodesk\AutoCAD 2015), with the attached file, and this problem should be resolved.  

 

Thanks,  Bill



Bill Glennie
AutoCAD Team, including Architecture and MEP
Autodesk, Inc.

Message 23 of 38

rlfultz
Participant
Participant

Thanks, but I don't think I have that file installed. I'm running Map, not Civil and don't have a "welding" folder in my install directory. Is it possible that the bad error handler is written to other lisps as well?

0 Likes
Message 24 of 38

Anonymous
Not applicable

I had the same problem as some of the other post in this forum and I have to say that the file you attached has worked a treat and fixed the problem for me... Thank you very much!...

 

I searched the suggested folder for the file  - noticed it werent there and so copied the file into it and voila problem solved...

 

Thanks Bill... 

 

 

Regards

Matt 

0 Likes
Message 25 of 38

BillGlennie
Alumni
Alumni

Thanks Matt - I'm glad you could find the answer.

 

Cheers,  Bill



Bill Glennie
AutoCAD Team, including Architecture and MEP
Autodesk, Inc.

0 Likes
Message 26 of 38

RPITTMANAECOM
Explorer
Explorer

I am having the same problem with all my expresstools. Works once, then have to close to get it to work again.

 

 I do not have a welding directory. Any ideas?  I am just using Autocad 2015 SP2.

 

Thanks


Ryan

 

0 Likes
Message 27 of 38

Victoria.Studley
Autodesk
Autodesk

Hi @RPITTMANAECOM,

 

I just helped another customer with this issue in AutoCAD 2015, and the cause turned out to be a third-party application he was using in conjunction with AutoCAD. In this case, the application was created by CADFX, and the customer contacted them directly for a fix.

 

Do you have any third-party applications or plugins installed? If so, try uninstalling the third-party application to determine if it is the root cause.

 

Finally, if you have any custom LISP routines you use, you can also temporarily remove these to determine if they are the cause.


Victoria Studley
Principal Experience Designer - Fusion Configurations
Join us in the Fusion Insider Program
Fusion Learn & Support | Fusion Documentation
0 Likes
Message 28 of 38

Anonymous
Not applicable

I am having a similar issue that just started a day ago.  Running Civil3D 2015, with SP3 and no special lisp routines or 3rd party add-ins.  I get the error when using GATTE (an express tools command).  It only occurs in a single drawing, and I can't predict when it will happen.  Closing the drawing and re-opening resolves the issue.  I am not limited to a single use of the command as others have noted.  It just eventually quits working and gives the error message.  I do not have a "welding" folder into which I could insert the file.

0 Likes
Message 29 of 38

grogers
Participant
Participant

Has this been resolved yet for AutoCAD only?  This is very frustrating ever time Burst stops working.  Especially if you have multiple drawings open.

 

BU error: (*pop-error-mode*) underflow.

 

 

Message 30 of 38

Anonymous
Not applicable

Which AutoCAD are you running? I'm using plain AutoCAD 2015, and kept getting this error. If this file could do harm to my version of AutoCAD, then I don't really want to use it.

Message 31 of 38

Anonymous
Not applicable

Hey there....I tried everything u all wrote up there (i've written

(defun *error* (msg) (princ "error: ") (princ msg) (princ))

in the acad2015doc.lsp - nothing......i've copied the .LSP u attached-nothing) ....still get this error...and I cannot use some of my commands...pls help

0 Likes
Message 32 of 38

dbroad
Mentor
Mentor

@Anonymous:  Welcome to the forums.  As you post, especially when replying to an individual post within a long thread, you should use the @ key and choose to whom you are replying rather than using something like "you posted." Also, provide enough information so that we could respond.

 

The error handler you (orbanrazan) posted couldn't possibly trigger a command error since the command function is not part of your error handler, nor could it fix other poorly constructed *error* functions for reasons stated later.

 

If this is an AutoCAD Architecture problem, then you are in the right forum.  If you are trying to customize, this is not the best forum for customization answers.  Try the AutoCAD Customization forum.

 

These kinds of errors were a problem for the initial versions of ACA 2015 because the LSP files provided out of the box had the command functions built-in to their error handlers.  Error handlers are usually locally defined so even if you provide your own definition, a particular lsp file that contained an embedded *errror* function would not be fixed.

Architect, Registered NC, VA, SC, & GA.
Message 33 of 38

Anonymous
Not applicable

Make sure Layer "0" is NOT turned off. I run into this sometimes where my lisps won't work and this is ALWAYS the reason why!

Message 34 of 38

Anonymous
Not applicable

😕

 

0 Likes
Message 35 of 38

jorge.enrique.espinel
Community Visitor
Community Visitor

Old post, but for everyone that are working in AutoCAD and still having the same issue, I was trying to convert some text to geometry and got the same error than the OP.  What worked for me was: creating a new autocad file, use xref and bind the file with the text I wanted to convert to polyline, hope this is useful to somebody

Message 36 of 38

c9lara
Community Visitor
Community Visitor

Thank you so much. When I entering TCOUNT command the AutoCAD showed that same problem. Your solution helped me a lot.

0 Likes
Message 37 of 38

ljcrepaldi
Community Visitor
Community Visitor

I have the same problem in 2022, should I use the same solution?

0 Likes
Message 38 of 38

pendean
Community Legend
Community Legend

@ljcrepaldi wrote:

I have the same problem in 2022, should I use the same solution?


You should.

0 Likes