Application Methods


The Application type exposes the following members.

Methods

  NameDescription
Public methodCopyModel
Copies an existing model to a new file. Overwriting a file of the same name is allowed.
Public methodDispose
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExtractPartAtomFromFamilyFile
Writes a PartAtom XML from the contents of a family file.
Public methodGetAssets
Gets all the Assets of the specified type.
Public methodStatic memberGetFailureDefinitionRegistry
Returns the instance of FailureDefinitionRegistry.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLibraryPaths
Returns path information identifying where Revit searches for content.
Public methodGetRevitServerNetworkHosts
Gets the list of all Revit Server Network hosts in current session.
Public methodGetSystemsAnalysisWorkflowNames
Returns names for systems analysis workflows.
Public methodGetSystemsAnalysisWorkflows
Returns name and path information identifying systems analysis workflow files.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetWorksharingCentralGUID
Gets the worksharing central GUID of the given server-based model.
Public methodIsJournalPlaying
Determines if the application is currently in journal playback mode.
Public methodStatic memberIsValidThickness
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).
Public methodNewFamilyDocument
New family document, including family, titleblock, and annotation symbol
Public methodNewProjectDocument(String)
New project document
Public methodNewProjectDocument(UnitSystem)
Creates a new project document with no template file specified.
Public methodNewProjectTemplateDocument
New project template document
Public methodOpenDocumentFile(String)
Opens a document from disk.
Public methodOpenDocumentFile(ModelPath, OpenOptions)
Opens a document from disk or cloud.
Public methodOpenDocumentFile(ModelPath, OpenOptions, IOpenFromCloudCallback)
Opens a document from disk or cloud.
Public methodOpenIFCDocument(String)
Opens an IFC document from disk using default options.
Public methodOpenIFCDocument(String, IFCImportOptions)
Opens an IFC document from disk using custom options.
Public methodOpenSharedParameterFile
Enables access to shared parameter groups and definitions that are maintained on disk.
Public methodPurgeReleasedAPIObjects
Explicitly purges all API objects that have been released but are still awaiting to be finalized
Public methodStatic memberRegisterFailuresProcessor
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.
Public methodSetLibraryPaths
Sets path information identifying where Revit searches for content.
Public methodSetSystemsAnalysisWorkflows
Sets name and path information identifying systems analysis workflow files.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateRenderAppearanceLibrary
Updates the stored render appearance library, giving the Revit session access to any new RPC content.
Public methodWriteJournalComment
Writes a comment to the Revit journal file.

See Also