Cancelling any running commands
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to figure out essentially how to send a few escape key presses to AutoCAD when I run a procedure in my code to make sure that nothing else is running.
It's ok if I run my command from a palette as I just preceed the command string with ^c^c which is fine. The code I'm running gets kicked off by a button press on a modeless form though so in theory the user could be halfway through doing anything in AutoCAD when they click my button.
I thought about using acedPostCommand as suggested in Kean's blog here:
http://through-the-interface.typepad.com/through_the_interface/2006/08/cancelling_an_a.html
The problem with that is that there are (or seem to be) different entry points for 32 and 64 bit so I don't know how to declare the function so it will work. I need my app to work on either.
So, I thought I'd try Tony T's commandline thing; the problem with that is that I can't seem to figure out how to pass it what I want. I need to pass it chr(27) but can't get it to work. Am I just being thick? (don't answer that)
This must have come up before but I can't find anything or anyone who's done it.
Thanks in advance
Paul