Being notified when a Revit Link hasbeen loaded

Being notified when a Revit Link hasbeen loaded

Anonymous
Not applicable
450 Views
1 Reply
Message 1 of 2

Being notified when a Revit Link hasbeen loaded

Anonymous
Not applicable

Good Morning

 

I am developing a Revit Addin that requires to be notified when the active view has just loaded a Revit link file.

Is there any notification mechanism in the Revit API to be registered to for such event?

 

Many Thanks

0 Likes
Accepted solutions (1)
451 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk
Accepted solution

The Revit API provides two very basic and generic document modification notification mechanisms, the DocumentChanged event, posted after the modification has ended, and the DMU dynamic model updater framework, which can trigger a notification before it has ended and allows you to add your own changes to the same transaction, or cancel the whole thing.

 

You can probably implement a filter for the exact event you are interested in using either of those.

 

Here is more information on them:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.31

 

There may be other events of interest to you as well. 

 

I do not see any candidates on the Document class, however:

 

https://apidocs.co/apps/revit/2019/93d26466-11de-842c-f089-6b15b839e6af.htm

 

Maybe there are some others that I missed...

 

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder