.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to cancel active command?

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
4768 Views, 6 Replies

How to cancel active command?

I have an active command that I want to cancel, how can I do this? Right
now I'm working with 3dorbit, if that makes a difference.

Thanks in advance.

--

Tim
"A blind man lets nothing block his vision."
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: Anonymous

http://through-the-interface.typepad.com/through_the_interface/2006/08/cancelling_an_a.html
Message 3 of 7
Anonymous
in reply to: Anonymous

It seems that I would have to use the undocumented acedPostCommand(), but
how would I in C#? I think this is usually called in Arx.

Thanks.

--

Tim
"A blind man lets nothing block his vision."


wrote in message news:5327794@discussion.autodesk.com...
http://through-the-interface.typepad.com/through_the_interface/2006/08/cancelling_an_a.html
Message 4 of 7
Anonymous
in reply to: Anonymous

I found a way from one of Tony's post, and it seems to be working.

--

Tim
"A blind man lets nothing block his vision."


"T.Willey" wrote in message
news:5327843@discussion.autodesk.com...
It seems that I would have to use the undocumented acedPostCommand(), but
how would I in C#? I think this is usually called in Arx.

Thanks.

--

Tim
"A blind man lets nothing block his vision."


wrote in message news:5327794@discussion.autodesk.com...
http://through-the-interface.typepad.com/through_the_interface/2006/08/cancelling_an_a.html
Message 5 of 7
JanetDavidson
in reply to: Anonymous

Hello Tim,

Could you please share your finding? I have the same problem. I want to cancel a  command pragmatically.

Basically sending Escape to command prompt. But don't want to use sendstring.

Hopefully you won't be disappear like Tony did . I searched for his post regarding this and not found anything.

Thanks

Janet.

 

Message 6 of 7
jeff
in reply to: JanetDavidson

Take a look at HostApplicationServices.UserBreak Method

You can also find your answers @ TheSwamp
Message 7 of 7
JanetDavidson
in reply to: jeff

Hey Old Friend.

Thanks . You are really a gentle man.

 

This is the result of my finding based on your suggestion

 

            If HostApplicationServices.Current.UserBreak() Then Throw New Autodesk.AutoCAD.Runtime.Exception(ErrorStatus.UserBreak, "ESCAPE pressed") End If

 

correct me if I am wrong Jeff. This is good to catch if user press Escaped.

But I need to send the EScape to  Command in action / in progress.

 

 

So basically either I don't know how to use this method , or  there is some misunderstanding.

 

You are a man any lady wish . So caring.

Cheers.

Janet.

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost