C

Application

Description:
Represents the Autodesk Revit Application, providing access to documents, options and other application wide data and settings.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.ApplicationServices.Application
    Autodesk.Revit.DB.Macros.ApplicationEntryPoint
public class Application : IDisposable
string versionInfo = application.VersionBuild + "\n"
                    + application.VersionName + "\n"
                    + application.VersionNumber;
Name Return Type Description Inherited From
E ApplicationInitialized event Subscribe to this event to get notified after the Revit application has been initialized
E DocumentChanged event Subscribe to the DocumentChanged event to be notified when Revit document has changed.
E DocumentClosed event Subscribe to the DocumentClosing event to be notified when Revit is just about to close a document.
E DocumentClosing event Subscribe to the DocumentClosing event to be notified when Revit is just about to close a document.
E DocumentCreated event Subscribe to the DocumentCreated event to be notified immediately after Revit has finished creating a new document.
E DocumentCreating event Subscribe to the DocumentCreating event to be notified when Revit is just about to create a new document.
E DocumentOpened event Subscribe to the DocumentOpened event to be notified immediately after Revit has finished opening a document.
E DocumentOpening event Subscribe to the DocumentOpening event to be notified when Revit is just about to open a document.
E DocumentPrinted event Subscribe to the DocumentPrinted event to be notified immediately after Revit has finished printing a view or ViewSet of the document.
E DocumentPrinting event Subscribe to the DocumentPrinting event to be notified when Revit is just about to print a view or ViewSet of the document.
E DocumentReloadedLatest event Subscribe to the DocumentReloadedLatestEventArgs event to be notified immediately after Revit has finished reloading a document with central model.
E DocumentReloadingLatest event Subscribe to the DocumentReloadingLatestEventArgs event to be notified when Revit is just about to reload latest changes from a central model.
E DocumentSaved event Subscribe to the DocumentSaved event to be notified immediately after Revit has finished saving a document.
E DocumentSavedAs event Subscribe to the DocumentSavedAs event to be notified immediately after Revit has finished saving document with a new file name.
E DocumentSaving event Subscribe to the DocumentSaving event to be notified when Revit is just about to save a document.
E DocumentSavingAs event Subscribe to the DocumentSavingAs event to be notified when Revit is just about to save the document with a new file name.
E DocumentSynchronizedWithCentral event Subscribe to the DocumentSynchronizedWithCentral event to be notified immediately after Revit has finished synchronizing a document with central model.
E DocumentSynchronizingWithCentral event Subscribe to the DocumentSynchronizingWithCentral event to be notified when Revit is just about to synchronize a document with central model.
E DocumentWorksharingEnabled event Subscribe to the DocumentWorksharingEnabled event to be notified when a document has become workshared.
E ElementTypeDuplicated event Subscribe to the ElementTypeDuplicated event to be notified immediately after Revit has finished duplicating an element type.
E ElementTypeDuplicating event Subscribe to the ElementTypeDuplicating event to be notified when Revit is just about to duplicate an element type.
E FailuresProcessing event Subscribe to the FailuresProcessing event to be notified when failures are being processed at the end of transaction.
E FamilyLoadedIntoDocument event Subscribe to the FamilyLoadedInto event to be notified after Revit loaded a family into a document.
E FamilyLoadingIntoDocument event Subscribe to the FamilyLoadingInto event to be notified when Revit is just about to load a family into a document.
E FileExported event Subscribe to the FileExported event to be notified immediately after Revit has finished exporting files of formats supported by the API.
E FileExporting event Subscribe to the FileExporting event to be notified when Revit is just about to export files of formats supported by the API.
E FileImported event Subscribe to the FileImported event to be notified immediately after Revit has finished importing a file of format supported by the API.
E 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.
E LinkedResourceOpened event Subscribe to the LinkedResourceOpened event to be notified immediately after Revit has finished opening a linked resource.
E LinkedResourceOpening event Subscribe to the LinkedResourceOpening event to be notified when Revit is just about to open a linked resource.
E ProgressChanged event Subscribe to the ProgressChanged event to be notified when an operation in Revit has progress bar data available.
E ViewExported event Subscribe to the ViewExported event to be notified immediately after Revit has finished exporting a view of the document.
E ViewExporting event Subscribe to the ViewExporting event to be notified when Revit is just about to export a view of the document.
E ViewPrinted event Subscribe to the ViewPrinted event to be notified immediately after Revit has finished printing a view of the document.
E ViewPrinting event Subscribe to the ViewPrinting event to be notified when Revit is just about to print a view of the document.
E ViewsExportedByContext event Subscribe to the ViewsExportedByContext event to be notified immediately after Revit has finished exporting one or more views of the document via an export context by CustomExporter.
E ViewsExportingByContext event Subscribe to the ViewsExportingByContext event to be notified when Revit is just about to export one or more views of the document via an export context by CustomExporter.
E 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
M CopyModel(ModelPath, String, Boolean) None Copies an existing model to a new file. Overwriting a file of the same name is allowed.
M Dispose() None Releases all resources used by the Application
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M ExtractPartAtomFromFamilyFile(String, String) None Writes a PartAtom XML from the contents of a family file.
M GetAssets(AssetType) IList<Asset> Gets all the Assets of the specified type.
M GetExtendedApiService<TService>(?) TService
M GetFailureDefinitionRegistry() FailureDefinitionRegistry Returns the instance of FailureDefinitionRegistry.
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetLibraryPaths() IDictionary<String,String> Returns path information identifying where Revit searches for content.
M GetRevitServerNetworkHosts() IList<String> Gets the list of all Revit Server Network hosts in current session.
M GetSystemsAnalysisWorkflowNames() IList<String> Returns names for systems analysis workflows.
M GetSystemsAnalysisWorkflows() IDictionary<String,String> Returns name and path information identifying systems analysis workflow files.
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M GetWorksharingCentralGUID(ServerPath) Guid Gets the worksharing central GUID of the given server-based model.
M IsJournalPlaying() Boolean Determines if the application is currently in journal playback mode.
M IsValidThickness(Double) Boolean Checks if the input value is valid to be supplied as a thickness (for an extrusion, or blend, or wall layer, or similar geometric construct).
M NewFamilyDocument(String) Document New family document, including family, titleblock, and annotation symbol
M NewProjectDocument(String) Document New project document
M NewProjectDocument(UnitSystem) Document Creates a new project document with no template file specified.
M NewProjectTemplateDocument(String) Document New project template document
M OpenDocumentFile(String) Document Opens a document from disk.
M OpenDocumentFile(ModelPath, OpenOptions) Document Opens a document from disk or cloud.
M OpenDocumentFile(ModelPath, OpenOptions, IOpenFromCloudCallback) Document Opens a document from disk or cloud.
M OpenIFCDocument(String) Document Opens an IFC document from disk using default options.
M OpenIFCDocument(String, IFCImportOptions) Document Opens an IFC document from disk using custom options.
M OpenSharedParameterFile() DefinitionFile Enables access to shared parameter groups and definitions that are maintained on disk.
M PurgeReleasedAPIObjects() None Explicitly purges all API objects that have been released but are still awaiting to be finalized
M 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.
M SetLibraryPaths(IDictionary<StringString>) None Sets path information identifying where Revit searches for content.
M SetSystemsAnalysisWorkflows(IDictionary<StringString>) None Sets name and path information identifying systems analysis workflow files.
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
M UpdateRenderAppearanceLibrary() None Updates the stored render appearance library, giving the Revit session access to any new RPC content.
M WriteJournalComment(String, Boolean) None Writes a comment to the Revit journal file.
Name Return Type Description Inherited From
P ActiveAddInId AddInId Retrieves the Id of the currently running external application.
P AllowNavigationDuringRedraw bool Checks whether or not the navigation during redraw is enabled, and enable or disable it.
P AllUsersAddinsLocation string The folder location for .addin files for all users.
P AngleTolerance double Angle tolerance.
P BackgroundColor Color The background color to use for model views in this session.
P Cities CitySet Returns a set of all the known city locations within Revit.
P Create Application Provides an object that can be used to create new instances of Autodesk Revit API objects.
P CurrentRevitServerAccelerator string Current Revit Server accelerator.
P CurrentUserAddinsLocation string The folder location for .addin files for the current user.
P CurrentUsersAddinsDataFolderPath string Path to AddinsData folder for the current user.
P CurrentUsersDataFolderPath string Path to data folder for the current user.
P DefaultIFCProjectTemplate string Full path to the default template file for new IFC project documents. It may be empty, in which case the DefaultProjectTemplate should be used.
P DefaultProjectTemplate string Full path to the default template file for new project documents.
P DefaultViewDiscipline ViewDiscipline The view discipline that will be applied to new views by default.
P Documents DocumentSet Returns a set of documents within Revit.
P ExportIFCCategoryTable string Full path to the file that defines Revit category to IFC entity mappings for IFC export.
P FamilyTemplatePath string Default path for family template files.
P ImportIFCCategoryTable string Full path to the file that defines IFC entity to Revit category mappings for IFC import.
P IsArchitectureEnabled bool Checks whether or not the architecture discipline is enabled, and enable or disable it.
P IsConcreteEnabled bool Checks whether or not the concrete discipline is enabled, and enable or disable it.
P IsElectricalAnalysisEnabled bool Checks whether or not electrical analysis is enabled, and enable or disable it.
P IsElectricalEnabled bool Checks whether or not the electrical discipline is enabled, and enable or disable it.
P IsEnergyAnalysisEnabled bool Checks whether or not energy analysis is enabled, and enable or disable it.
P IsInfrastructureEnabled bool Checks whether or not infrastructure discipline is enabled, and enable or disable it.
P IsLoggedIn bool Checks if the user is logged in from this session to their Autodesk account.
P IsMassingEnabled bool Checks whether or not the massing and site tools are enabled, and enable or disable them.
P IsMechanicalAnalysisEnabled bool Checks whether or not mechanical analysis is enabled, and enable or disable it.
P IsMechanicalEnabled bool Checks whether or not the mechanical discipline is enabled, and enable or disable it.
P IsPipingAnalysisEnabled bool Checks whether or not piping analysis is enabled, and enable or disable it.
P IsPipingEnabled bool Checks whether or not the piping discipline is enabled, and enable or disable it.
P IsPrecastEnabled bool Checks whether or not the precast is enabled, and enable or disable it.
P IsRouteAnalysisEnabled bool Checks whether or not route analysis is enabled, and enable or disable it.
P IsStructuralAnalysisEnabled bool Checks whether or not the structural analysis is enabled, and enable or disable it.
P IsStructureEnabled bool Checks whether or not the structure discipline is enabled, and enable or disable it.
P IsSystemsEnabled bool Checks whether or not any systems disciplines (mechanical, electrical, or piping) are enabled.
P IsValidObject Boolean Specifies whether the .NET object represents a valid Revit entity.
P Language LanguageType The language used in the current session of Revit.
P LoginUserId string The user id of the user currently logged in. The user id will be empty if the user is not logged in.
P MinimumThickness double The minimum thickness allowed in Revit for a variety of geometric constructs. These include blends, extrusions, and wall layers.
P PointCloudsRootPath string Root path for point cloud files.
P Product ProductType The product type for the current session of Revit.
P RecordingJournalFilename string Retrieve the name of the journal file the Revit is currently recording to.
P SharedComponentsLocation string Location of shared components used by Revit.
P SharedParametersFilename string Contains the fully qualified path to a shared parameters file.
P ShortCurveTolerance double The enforced minimum length for any curve created by Revit.
P ShowGraphicalOpenEndsAreaBasedLoadBoundaryDisconnects bool Whether or not to show the graphical open ends for Area Based Load Boundary disconnects.
P ShowGraphicalWarningCableTrayConduitDisconnects bool Whether or not to show the graphical warnings for CTC disconnects.
P ShowGraphicalWarningDuctDisconnects bool Whether or not to show the graphical warnings for duct disconnects.
P ShowGraphicalWarningElectricalDisconnects bool Whether or not to show the graphical warnings for Electrical disconnects.
P ShowGraphicalWarningHangerDisconnects bool Whether or not to show the graphical warnings for Fabrication Hanger disconnects.
P ShowGraphicalWarningPipeDisconnects bool Whether or not to show the graphical warnings for Pipe disconnects.
P SubVersionNumber string The minor version number of Revit
P SystemsAnalysisWorkfilesRootPath string Root path for systems analysis workfiles
P Username string Gets the user name for the current Revit session.
P VersionBuild string Returns the internal build number of the Autodesk Revit application.
P VersionName string Returns the name of the Revit application.
P VersionNumber string Return the primary version of the Revit application.
P VertexTolerance double Vertex tolerance.