Subscribe to the DocumentClosing event to be notified when Revit is just about to close a document.
Namespace: Autodesk.Revit.ApplicationServicesAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since: 2010
Syntax
C# |
---|
public event EventHandler<DocumentClosedEventArgs> DocumentClosed |
Visual Basic |
---|
Public Event DocumentClosed As EventHandler(Of DocumentClosedEventArgs) |
Visual C++ |
---|
public: event EventHandler<DocumentClosedEventArgs^>^ DocumentClosed { void add (EventHandler<DocumentClosedEventArgs^>^ value); void remove (EventHandler<DocumentClosedEventArgs^>^ value); } |
Remarks
This event is raised immediately after Revit has finished closing a document. It is raised even when document closing failed or was cancelled (during DocumentClosing event).
This event is not cancellable, for the process of closing document has already been finished.
The document cannot be modified because the corresponding object does not exist anymore.