View Full Version : HOW TO CANCEL ACTIVE COMMAND USING VB
supils
22nd Feb 2005, 04:30 am
Using Visual Basic how can I cancel an active command in AUTOCAD.
I already use this command but is doesn't work..
acadapp.ActiveDocument.SendCommand (Chr(27) & Chr(27) )
[ where acadapp is declared as autocad application ]
hendie
22nd Feb 2005, 09:17 am
why would you want to cancel a command in progress ? surely you would be better not issuing the command in the first place ?
or you should be accounting for any responses in your coding/error handling
supils
22nd Feb 2005, 11:23 am
I just want to make sure that whenever i opened my program and if there is an existing command in autocad environment I will cancel it. I do not want to go/switch to autocad environment just to cancel any existing command. I want a code that can cancel any existing command in autocad environment..
Any idea on how to cancel this.. Thanks..
hendie
22nd Feb 2005, 11:38 am
Autocad uses ^C^C as cancel, have you tried using Sendkeys ?
Powered by vBulletin™ Version 4.1.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.