Database Events
The following table lists database events, their type and whether they are available at the application and/or document level:
Table 53: DB Event Types
Event
|
Type
|
Application
|
Document
|
DocumentChanged event
|
single
|
X
|
|
DocumentClosing
|
pre
|
X
|
X
|
DocumentClosed
|
post
|
X
|
|
DocumentCreating
|
pre
|
X
|
|
DocumentCreated
|
post
|
X
|
|
DocumentOpening
|
pre
|
X
|
|
DocumentOpened
|
post
|
X
|
|
DocumentPrinting
|
pre
|
X
|
X
|
DocumentPrinted
|
post
|
X
|
X
|
DocumentSaving
|
pre
|
X
|
X
|
DocumentSaved
|
post
|
X
|
X
|
DocumentSavingAs
|
pre
|
X
|
X
|
DocumentSavedAs
|
post
|
X
|
X
|
DocumentSynchronizingWithCentral
|
pre
|
X
|
|
DocumentSynchronizedWithCentral
|
post
|
X
|
|
FailuresProcessing
|
single
|
X
|
|
FileExporting
|
pre
|
X
|
|
FileExported
|
post
|
X
|
|
FileImporting
|
pre
|
X
|
|
FileImported
|
post
|
X
|
|
ProgressChanged
|
single
|
X
|
|
ViewPrinting
|
pre
|
X
|
X
|
ViewPrinted
|
post
|
X
|
X
|
- DocumentChanged - notification when a transaction is committed, undone or redone
- DocumentClosing - notification when Revit is about to close a document
- DocumentClosed - notification just after Revit has closed a document
- DocumentCreating - notification when Revit is about to create a new document
- DocumentCreated - notification when Revit has finished creating a new document
- DocumentOpening - notification when Revit is about to open a document
- DocumentOpened - notification after Revit has opened a document
- DocumentPrinting - notification when Revit is about to print a view or ViewSet of the document
- DocumentPrinted - notification just after Revit has printed a view or ViewSet of the document
- DocumentSaving - notification when Revit is about to save the document
- DocumentSaved - notification just after Revit has saved the document
- DocumentSavingAs - notification when Revit is about to save the document with a new name
- DocumentSavedAs - notification when Revit has just saved the document with a new name
- DocumentSynchronizingWithCentral - notification when Revit is about to synchronize a document with the central file
- DocumentSynchronizedWithCentral - notification just after Revit has synchronized a document with the central file
- FailuresProcessing - notification when Revit is processing failures at the end of a transaction
- FileExporting - notification when Revit is about to export to a file format supported by the API
- FileExported - notification after Revit has exported to a file format supported by the API
- FileImporting - notification when Revit is about to import a file format supported by the API
- FileImported - notification after Revit has imported a file format supported by the API
- ProgressChanged - notification when an operation in Revit has progress bar data
- ViewPrinting - notification when Revit is about to print a view of the document
- ViewPrinted - notification just after Revit has printed a view of the document