.NET

Reply
Distinguished Contributor
SRSDS
Posts: 243
Registered: ‎04-15-2011
Message 1 of 4 (152 Views)

Undo command disables DocumentCollection reactors

152 Views, 3 Replies
04-27-2012 12:29 PM

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.

 

Distinguished Contributor
Artvegas
Posts: 104
Registered: ‎04-21-2011
Message 2 of 4 (132 Views)

Re: Undo command disables DocumentCollection reactors

04-28-2012 12:58 AM in reply to: SRSDS
Sounds strange. Can you post some code that replicates the problem?
Board Manager
StephenPreston
Posts: 368
Registered: ‎05-22-2006
Message 3 of 4 (115 Views)

Re: Undo command disables DocumentCollection reactors

04-29-2012 07:53 AM 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
Distinguished Contributor
SRSDS
Posts: 243
Registered: ‎04-15-2011
Message 4 of 4 (110 Views)

Re: Undo command disables DocumentCollection reactors

04-29-2012 08:28 AM 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.

 

 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community