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

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

jrauRM2PM
Explorer Explorer
1,520 Views
15 Replies
Message 1 of 16

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

jrauRM2PM
Explorer
Explorer

Attached is a Smash command that worked in AutoCAD 2018 but when now that I am using AutoCAD 2021 it does not work. I'm new to AutoCAD lsip programs and I'm not sure what needs updated.

0 Likes
1,521 Views
15 Replies
Replies (15)
Message 2 of 16

Moshe-A
Mentor
Mentor

@jrauRM2PM  hi,

 

fixed 🤣

 

enjoy

moshe

 

Message 3 of 16

jrauRM2PM
Explorer
Explorer

Thank you for your help. I'm still getting an error though, probably something I did?

 

Command: malformed list on input
Command:
Command:
Command:
Command: smash no function definition: VDPW_SMASH_MAIN
Command:

0 Likes
Message 4 of 16

ronjonp
Mentor
Mentor

@jrauRM2PM The code loads fine for me.

_$ 

C:SMASH 
VDPW_SMASH_MAIN 
VDPW_SMASH_ERRORHANDLER 
nil 
 
; 5 forms loaded from #<editor "<Untitled-6> loading...">
Message 5 of 16

Kent1Cooper
Consultant
Consultant

You can simply do what it recommends.  Any (command) function(s) inside the *error* handler should be converted by having the -s added to the end of the function name.

Kent Cooper, AIA
Message 6 of 16

Moshe-A
Mentor
Mentor

@jrauRM2PM 

 

did you touch the code?

 

try the attched

 

 

 

0 Likes
Message 7 of 16

jrauRM2PM
Explorer
Explorer

Error: no function definition: VDPW_SPIN

0 Likes
Message 8 of 16

Moshe-A
Mentor
Mentor

@jrauRM2PM ,

 


@jrauRM2PM wrote:

Error: no function definition: VDPW_SPIN


(vdpw_spin) is a missing function (probably lay in other lisp file), go back to who gave this for complete set 😀

 

Moshe

Message 9 of 16

jrauRM2PM
Explorer
Explorer

Thak you!

0 Likes
Message 10 of 16

Kent1Cooper
Consultant
Consultant

@jrauRM2PM wrote:

Thak you!


[Notice that your tha[n]k-you shows as being in Reply to yourself.  That means you must have used the "Reply to the topic..." slot below the last Message.  Everything entered there always shows as if it's in Reply to Message 1, including the to-whom part.  Instead, always use the REPLY "box" toward the bottom right of the specific Message you're actually Replying to.]

Kent Cooper, AIA
Message 11 of 16

jrauRM2PM
Explorer
Explorer

Sorry, I have no idea what I need. I have an AutoCAD Customization Guidebook I just started reading. Other than that I have 0 experience with coding.

0 Likes
Message 12 of 16

Moshe-A
Mentor
Mentor

how \ from where did you get this lisp?

0 Likes
Message 13 of 16

jrauRM2PM
Explorer
Explorer

I'm not sure where it came from. It was on our computers when I started here.

0 Likes
Message 14 of 16

Kent1Cooper
Consultant
Consultant

@jrauRM2PM wrote:

I'm not sure where it came from. It was on our computers when I started here.


Then if it ever worked, the vdpw_spin function definition must also have been on them, somewhere.  Might the problem just be with its folder location?  If you can Search for content in text files, look for something containing that, we would hope in a file with a .lsp filetype ending.  But if it's in a compiled variety of file like .fas or .vlx, you won't be able to find it that way.  Could there be something about the file name that relates to its purpose?

Kent Cooper, AIA
0 Likes
Message 15 of 16

Kent1Cooper
Consultant
Consultant

A further question:  Since that missing function appears to be triggered only for "Polyline" [not "LWPolyline"] objects [which can be "heavy" 2D Polylines, 3D Polylines, or meshes], if you use it in a situation without any of those, does it work correctly?

Kent Cooper, AIA
0 Likes
Message 16 of 16

jrauRM2PM
Explorer
Explorer

Yes, it does appear to work.

0 Likes