ControlledApplication
Description:
Represents the Autodesk Revit Application with no access to documents. It provides options and other application wide data and settings for external applications OnStartup/OnShutdown.
Represents the Autodesk Revit Application with no access to documents. It provides options and other application wide data and settings for external applications OnStartup/OnShutdown.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.ApplicationServices.ControlledApplication
System.Object
Autodesk.Revit.ApplicationServices.ControlledApplication
public class ControlledApplication
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| ApplicationInitialized | event | Subscribe to this event to get notified after the Revit application has been initialized | |
| DocumentChanged | event | Subscribe to the DocumentChanged event to be notified when Revit document has changed. | |
| DocumentClosed | event | Subscribe to the DocumentClosing event to be notified when Revit is just about to close a document. | |
| DocumentClosing | event | Subscribe to the DocumentClosing event to be notified when Revit is just about to close a document. | |
| DocumentCreated | event | Subscribe to the DocumentCreated event to be notified immediately after Revit has finished creating a new document. | |
| DocumentCreating | event | Subscribe to the DocumentCreating event to be notified when Revit is just about to create a new document. | |
| DocumentOpened | event | Subscribe to the DocumentOpened event to be notified immediately after Revit has finished opening a document. | |
| DocumentOpening | event | Subscribe to the DocumentOpening event to be notified when Revit is just about to open a document. | |
| DocumentPrinted | event | Subscribe to the DocumentPrinted event to be notified immediately after Revit has finished printing a view or ViewSet of the document. | |
| DocumentPrinting | event | Subscribe to the DocumentPrinting event to be notified when Revit is just about to print a view or ViewSet of the document. | |
| DocumentReloadedLatest | event | Subscribe to the DocumentReloadedLatestEventArgs event to be notified immediately after Revit has finished reloading a document with central model. | |
| DocumentReloadingLatest | event | Subscribe to the DocumentReloadingLatestEventArgs event to be notified when Revit is just about to reload latest changes from a central model. | |
| DocumentSaved | event | Subscribe to the DocumentSaved event to be notified immediately after Revit has finished saving a document. | |
| DocumentSavedAs | event | Subscribe to the DocumentSavedAs event to be notified immediately after Revit has finished saving document with a new file name. | |
| DocumentSaving | event | Subscribe to the DocumentSaving event to be notified when Revit is just about to save a document. | |
| DocumentSavingAs | event | Subscribe to the DocumentSavingAs event to be notified when Revit is just about to save the document with a new file name. | |
| DocumentSynchronizedWithCentral | event | Subscribe to the DocumentSynchronizedWithCentral event to be notified immediately after Revit has finished synchronizing a document with central model. | |
| DocumentSynchronizingWithCentral | event | Subscribe to the DocumentSynchronizingWithCentral event to be notified when Revit is just about to synchronize a document with central model. | |
| ElementTypeDuplicated | event | Subscribe to the ElementTypeDuplicated event to be notified immediately after Revit has finished duplicating an element type. | |
| ElementTypeDuplicating | event | Subscribe to the ElementTypeDuplicating event to be notified when Revit is just about to duplicate an element type. | |
| FailuresProcessing | event | Subscribe to the FailuresProcessing event to be notified when failures are being processed at the end of transaction. | |
| FamilyLoadedIntoDocument | event | Subscribe to the FamilyLoadedInto event to be notified after Revit loaded a family into a document. | |
| FamilyLoadingIntoDocument | event | Subscribe to the FamilyLoadingInto event to be notified when Revit is just about to load a family into a document. | |
| FileExported | event | Subscribe to the FileExported event to be notified immediately after Revit has finished exporting files of formats supported by the API. | |
| FileExporting | event | Subscribe to the FileExporting event to be notified when Revit is just about to export files of formats supported by the API. | |
| FileImported | event | Subscribe to the FileImported event to be notified immediately after Revit has finished importing a file of format supported by the API. | |
| FileImporting | event | Subscribe to the FileImporting event to be notified when Revit is just about to import a file of format supported by the API. | |
| LinkedResourceOpened | event | Subscribe to the LinkedResourceOpened event to be notified immediately after Revit has finished opening a linked resource. | |
| LinkedResourceOpening | event | Subscribe to the LinkedResourceOpening event to be notified when Revit is just about to open a linked resource. | |
| ProgressChanged | event | Subscribe to the ProgressChanged event to be notified when an operation in Revit has progress bar data available. | |
| ViewPrinted | event | Subscribe to the ViewPrinted event to be notified immediately after Revit has finished printing a view of the document. | |
| ViewPrinting | event | Subscribe to the ViewPrinting event to be notified when Revit is just about to print a view of the document. | |
| WorksharedOperationProgressChanged | event | Subscribe to the WorksharedOperationProgressChanged to be notified when progress has changed during Collaboration for Revit's workshared operations: open model and synchronize with central. |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Equals | None | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetExtendedApiService<TService>(?) | TService | ||
| GetFailureDefinitionRegistry() | FailureDefinitionRegistry | Returns the instance of FailureDefinitionRegistry. | |
| GetHashCode | None | Serves as the default hash function. (Inherited from Object ) | Object |
| GetLibraryPaths() | IDictionary<String,String> | Returns path information identifying where Revit searches for content. | |
| GetType | None | Gets the Type of the current instance. (Inherited from Object ) | Object |
| IsJournalPlaying() | Boolean | Determines if the application is currently in journal playback mode. | |
| OpenSharedParameterFile() | DefinitionFile | Enables access to shared parameter groups and definitions that are maintained on disk. | |
| RegisterFailuresProcessor(IFailuresProcessor) | None | Replaces Revit's default user interface (if present) with alternative handling for all warnings and errors (including those not generated by your application) for the rest of the Revit session; if your application is not prepared to respond to all warnings and errors, consider use of IFailuresPreprocessor (in your opened Transaction) or the FailuresProcessing event instead of this interface. | |
| SetLibraryPaths(IDictionary<StringString>) | None | Sets path information identifying where Revit searches for content. | |
| ToString | None | Returns a string that represents the current object. (Inherited from Object ) | Object |
| WriteJournalComment(String, Boolean) | None | Writes a comment to the Revit journal file. |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| ActiveAddInId | AddInId | Retrieves the Id of the currently running external application. | |
| AllUsersAddinsLocation | string | The folder location for .addin files for all users. | |
| Cities | CitySet | Returns a set of all the known city locations within Revit. | |
| Create | Application | Provides an object that can be used to create new instances of Autodesk Revit API objects. | |
| CurrentUserAddinsLocation | string | The folder location for .addin files for the current user. | |
| CurrentUsersAddinsDataFolderPath | string | Path to AddinsData folder for the current user. | |
| CurrentUsersDataFolderPath | string | Path to data folder for the current user. | |
| IsLateAddinLoading | bool | Indicates whether this add-in is loaded on the fly or not. If it is loaded when is Revit starting up, it is false, otherwise it should be true. | |
| Language | LanguageType | The language used in the current session of Revit. | |
| Product | ProductType | The product type for the current session of Revit. | |
| RecordingJournalFilename | string | Retrieve the name of the journal file the Revit is currently recording to. | |
| SharedComponentsLocation | string | Location of shared components used by Revit. | |
| SharedParametersFilename | string | Contains the fully qualified path to a shared parameters file. | |
| SubVersionNumber | string | The minor version number of Revit | |
| VersionBuild | string | Returns the internal build number of the Autodesk Revit application. | |
| VersionName | string | Returns the name of the Revit application. | |
| VersionNumber | string | Return the primary version of the Revit application. |