< Rev API Docs

Document Events

The Document type exposes the following members.

Events
 NameDescription
Public eventDocumentClosing Subscribe to the DocumentClosing event to be notified when Revit is just about to close a document.
Public eventDocumentPrinted Subscribe to the DocumentPrinted event to be notified immediately after Revit has finished printing a view or ViewSet of the document.
Public eventDocumentPrinting Subscribe to the DocumentPrinting event to be notified when Revit is just about to print a view or ViewSet of the document.
Public eventDocumentSaved Subscribe to the DocumentSaved event to be notified immediately after Revit has finished saving a document.
Public eventDocumentSavedAs Subscribe to the DocumentSavedAs event to be notified immediately after Revit has finished saving document with a new file name.
Public eventDocumentSaving Subscribe to the DocumentSaving event to be notified when Revit is just about to save a document.
Public eventDocumentSavingAs Subscribe to the DocumentSavingAs event to be notified when Revit is just about to save the document with a new file name.
Public eventViewPrinted Subscribe to the ViewPrinted event to be notified immediately after Revit has finished printing a view of the document.
Public eventViewPrinting Subscribe to the ViewPrinting event to be notified when Revit is just about to print a view of the document.
Top
See Also