Stop the command through VB which was issued from AutoCAD.

Stop the command through VB which was issued from AutoCAD.

Anonymous
Not applicable
195 Views
4 Replies
Message 1 of 5

Stop the command through VB which was issued from AutoCAD.

Anonymous
Not applicable
I have a requirement where the 'Erase' command given in AutoCAD has to be executed only if a flag value is 'TRUE'. Otherwise, the command has to stopped.

I have trapped the begin_command event and checks the flag. But I don't know how I can stop the command which is already issued from AutoCAD. It would be really useful if somebody can help me.

Thanking you in anticipation
Sumod
0 Likes
196 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
The failing of reactors is that you cannot *stop* a command, you can only
react to it. You will want to use
ObjectErased reactor to restore the object after the erase.

--
R. Robert Bell, MCSE
Network Administrator
www.acadx.com

sumod wrote in message
news:ef065a6.-1@WebX.SaUCah8kaAW...
| I have a requirement where the 'Erase' command given in AutoCAD has to be
executed only if a flag value is 'TRUE'. Otherwise, the command has to
stopped.
|
| I have trapped the begin_command event and checks the flag. But I don't
know how I can stop the command which is already issued from AutoCAD. It
would be really useful if somebody can help me.
|
| Thanking you in anticipation
| Sumod
0 Likes
Message 3 of 5

Anonymous
Not applicable
I don't think you can. Have you tried performing an UNDO instead?

--
Visit me at http://www2.stonemedia.com/franko

"sumod" wrote in message
news:ef065a6.-1@WebX.SaUCah8kaAW...
> I have a requirement where the 'Erase' command given in AutoCAD has to be
executed only if a flag value is 'TRUE'. Otherwise, the command has to
stopped.
>
> I have trapped the begin_command event and checks the flag. But I don't
know how I can stop the command which is already issued from AutoCAD. It
would be really useful if somebody can help me.
>
> Thanking you in anticipation
> Sumod
0 Likes
Message 4 of 5

Anonymous
Not applicable
Have you tried Sendcommand "", or maybe Sendcommand with no parameter?

Gary
0 Likes
Message 5 of 5

Anonymous
Not applicable
Can you redefine the erase command? We do that with our save command to
update our L.E.C. dates on our drawings.

You can check for your flag at the begin_command event and if it is TRUE
than you do your own erase command, otherwise exit your command.

just my .02

Hope it helps
0 Likes