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

Disable/Cancel Command

1 REPLY 1
Reply
Message 1 of 2
v1m2k3
552 Views, 1 Reply

Disable/Cancel Command

Hi,

 

I have a button on Palette. On click of this button, i prompts user to select entities and i process them.

Now, I would like to cancel the above sequence when the user docks the palette.

 

I have subscribed onShow and onHide events of the palette and used SendStringToExecute but no luck.

 

Could some one help me.

 

Thanks,

Manoj Kumar V.

 

P.S. I am working on AutoCAD.NET 2007

1 REPLY 1
Message 2 of 2
Anonymous
in reply to: v1m2k3

Docking a palette will trigger AutoCAD to behave as if the user

pressed ESCape.

 

You can use HostApplicationServices.UserBreak() to detect

if the user pressed ESCape while your process is running.

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