how to clear (*pop-error-mode*) using

how to clear (*pop-error-mode*) using

MakCADD
Advocate Advocate
1,211 Views
10 Replies
Message 1 of 11

how to clear (*pop-error-mode*) using

MakCADD
Advocate
Advocate

How can i clear this error message using VBA

which occurs while escaping from the express commands

 

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

 

every time I have to restart the autocad to use the express commands again

 

0 Likes
1,212 Views
10 Replies
Replies (10)
Message 2 of 11

Ed__Jobe
Mentor
Mentor

Are we to assume that you are using VBA SendCommand to call these lisp routines? Which Express commands are you having trouble with?

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 11

MakCADD
Advocate
Advocate

this is the error message from autocad, when I break the execution of an autocad express command

then you will get the same error message while using the express commands untill you restart autocad

 

I did it before with the help of someone

using lisp,  I forgot it,  I am not familiar with lisp

 

so i  thought it could be better to to use with sendcommand

instead of restarting autocad everytime

0 Likes
Message 4 of 11

Ed__Jobe
Mentor
Mentor

You didn't say which ET commands you are having a problem with.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 5 of 11

MakCADD
Advocate
Advocate

GATTE command  to edit attributes

 

 

0 Likes
Message 6 of 11

Ed__Jobe
Mentor
Mentor

If I just run the command, I can't replicate your error. What steps are you using to get the error?

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 7 of 11

MakCADD
Advocate
Advocate

i cancelled the command using esc key without selecting any objects

then i revoke the command again ,  it shows the error

it shows the same error for other express commands

0 Likes
Message 8 of 11

Ed__Jobe
Mentor
Mentor

I typed "GATTE" at the command line and hit ESC, but I can't replicate your error. Are you using this command in VBA? Is that why you are posting in the VBA forum and not the lisp forum? I've been using VBA and C# for a number of years, so my lisp is a little rusty.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

Message 9 of 11

MakCADD
Advocate
Advocate

@Ed__Jobe 

hello jobe,

thank you for your response.

yes, it is to be captured in lisp, I am not that much expert on lisp, so tried to find a solution through vba.

 

before i solved by entering the lisp code in command prompt using vba. (...utility.prompt) ,  i lost that code.

 

now  i could not revoke that error,  i dont know what happend.

next time ill copy all the command history  for your reference

 

again thanks for your time

 

0 Likes
Message 10 of 11

Ed__Jobe
Mentor
Mentor

Then I would post this question in the LISP forum. I think some others have modified the ET commands. I think I did too, but can't remember what I did. I'm using 2021 now and it seems to be fixed.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 11 of 11

MakCADD
Advocate
Advocate

Here is the command history for an express command for autonumbering

I hit the escape key,  instead of selecting the object. 

The result is this.

I used this command successfully right now.

now I have to restart autocad to eliminate this error

------------------------------------------------------------------------
Command:
TCOUNT

Select objects: Specify opposite corner: 10 found

Select objects:                                                                             

Sort selected objects by [X/Y/Select-order] <Y>:

Specify starting number and increment (Start,increment) <1,10>: 0,10

Placement of numbers in text [Overwrite/Prefix/Suffix/Find&replace..] < Overwrite>: *Cancel*     😀👾👾

Command:
Command: "INTERNAL error in FAIL\nmessage lost, reset to top"
Command: *Cancel*

Command: *Cancel*

Command:
TCOUNT

(*pop-error-mode*) underflow.
Cannot invoke (command) from *error* without prior call to (*push-error-using-command*).
Converting (command) calls to (command-s) is recommended.
Command:
TCOUNT

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

0 Likes