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

Undo command disables DocumentCollection reactors

3 REPLIES 3
Reply
Message 1 of 4
SRSDS
392 Views, 3 Replies

Undo command disables DocumentCollection reactors

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.

 

3 REPLIES 3
Message 2 of 4
Artvegas
in reply to: SRSDS

Sounds strange. Can you post some code that replicates the problem?
Message 3 of 4
StephenPreston
in reply to: SRSDS

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
Message 4 of 4
SRSDS
in reply to: StephenPreston

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.

 

 

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