Undo command disables DocumentCollection reactors

Undo command disables DocumentCollection reactors

SRSDS
Advisor Advisor
754 Views
3 Replies
Message 1 of 4

Undo command disables DocumentCollection reactors

SRSDS
Advisor
Advisor

Hi,

 

Can anyone suggest a reason why Undo might disable DocumentCollection reactors?

It has something to do with me undoing the annotation scale as when I remove the line

db.Cannoscale = tstAnnoScale

The problem doesn't occur.

 

0 Likes
755 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Sounds strange. Can you post some code that replicates the problem?
0 Likes
Message 3 of 4

StephenPreston
Alumni
Alumni

Hard to say without seeing code. Event handlers can become disabled if you allow an exception thrown in your event handler to propagate to AutoCAD (i.e. if you don't catch and handle the exception in your event handler). 

Cheers,

Stephen Preston
Autodesk Developer Network
0 Likes
Message 4 of 4

SRSDS
Advisor
Advisor

Hi,

I've only just fixed the problem but I'm not entirely sure where the exact problem was as I changed a few things and moved a few buits of code around.

One thing I found was that two events were bouncing off each other but for some reason it wasn't and endless loop.

 

 

0 Likes