Wednesday, 8 July 2009

DoEvents() with Revit

Just a quickie as a follow-up to my last post. DoEvents isn't recommended for .NET, but given that Revit doesn't support multi-threading we have to use it sometimes to keep our UI responsive whilst we crunch some data.

It's commonly referred to as Application.DoEvents() but in your Revit plugin Application will probably refer to the Revit app and DoEvents won't be recognised as a method. So you need to use this:


No comments:

Post a Comment

Comments are moderated, so you'll have to wait a little bit before they appear!