Accessing lisp from tool palette repeats last command

Accessing lisp from tool palette repeats last command

brettS6K2S
Contributor Contributor
367 Views
2 Replies
Message 1 of 3

Accessing lisp from tool palette repeats last command

brettS6K2S
Contributor
Contributor

I'm using C3D 2022 1.2, ACAD 2022 1.1, Map 3D 2022 0.1

I've recently noticed that when loading a custom lisp file from a custom tool palette, my last command is repeated.

It's requiring me to press the ESC key in order to bypass this.

Note that I have the typical ^C^C at the beginning of the command string, which should already take care of this.

For example:

There is a lisp routine that we have in a tool palette for converting mtext to MLeader

I've drawn a circle, then notice I have some mtext that would like to be a MLeader instead.

I should be able to select my lisp in the tool palette and proceed as normally prompted to select mtext.

Instead, when I first select the lisp in the tool palette, I get my last command instead...in this example, the circle command is initiated rather than the lisp. 

When I manually press ESC key before initiating the lisp from the tool palette, everything works as it should. No repeat of last command.

 

 

 

0 Likes
Accepted solutions (1)
368 Views
2 Replies
Replies (2)
Message 2 of 3

john.uhden
Mentor
Mentor
Accepted solution

@brettS6K2S 

It's been years since I've messed with tool palettes and macros, but off the top of my empty head maybe try a few different things...

a)  Try dropping the two ^C^Cs

b)  Try adding a 3rd ^C

c)  Try adding the harmless REDRAW command before the call to your program.

OR

Might there be something in your code that is invoking the previous command?

Is there a semicolon right after the ^C^Cs?  Or a space?

John F. Uhden

0 Likes
Message 3 of 3

brettS6K2S
Contributor
Contributor

Thank you John!

I missed that there was a space right after the ^C^C's. I removed the space and success.

Sometimes the littlest thing can cause a big disruption.

 

0 Likes