Disruption of CommandEnded by Zoom Extents

Disruption of CommandEnded by Zoom Extents

SRSDS
Advisor Advisor
203 Views
2 Replies
Message 1 of 3

Disruption of CommandEnded by Zoom Extents

SRSDS
Advisor
Advisor

Hi,

I have CommandWillStart and CommandEnded events to handle entities being copied.

 

If I start the COPY command, then zoom extents by double clicking the middle mouse button, a ZOOM command is initiated that triggers it's own CommandWillStart and CommandEnded.

 

CommandEnded for the COPY event is then never triggered.

Is there a way I can handle this?

0 Likes
Accepted solutions (1)
204 Views
2 Replies
Replies (2)
Message 2 of 3

ActivistInvestor
Mentor
Mentor
Accepted solution

There is no command ended notification because when you double click to zoom extents it cancels the current command, so there will be a command canceled notification instead of a command ended notification.

0 Likes
Message 3 of 3

SRSDS
Advisor
Advisor

Thank you! That explains it.

ZOOM triggering CommandEnded was removing the my DeepCloneEnded handler. 

I'll need to look at doing that a little differently.

 

0 Likes