BasicFileInfo Class

Encapsulates basic information about a Revit file, including worksharing status, Revit version, username and central path.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBBasicFileInfo

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class BasicFileInfo : IDisposable

The BasicFileInfo type exposes the following members.

Properties
 NameDescription
Public propertyAllLocalChangesSavedToCentral Are all local changes saved to the central file?
Public propertyCentralPath Returns the central model path.
Public propertyFormat The file format indicator (currently, the major release version such as "2019") used for saving the file.
Public propertyIsCentral Checks if the file is workshared and Central.
Public propertyIsCreatedLocal Checks if the file is local and created by RevitServerTool.exe.
Public propertyIsInProgress Checks if the file is workshared and is in process of becoming Central.
Public propertyIsLocal Checks if the file is workshared and Local.
Public propertyIsSavedInCurrentVersion Checks if the file is saved in the current version.
Public propertyIsSavedInLaterVersion Checks if the file is saved in a later version of Revit than the running Revit.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyIsWorkshared Checks if the file is workshared.
Public propertyLanguageWhenSaved Return the language active for the last save
Public propertyLatestCentralEpisodeGUID This is the central model's episode GUID corresponding to the last reload latest done for this model.
Public propertyLatestCentralVersion This is the central model's version number corresponding to the last reload latest done for this model.
Public propertyUsername Returns the username.
Top
Methods
 NameDescription
Public methodDisposeReleases all resources used by the BasicFileInfo
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodStatic memberExtract Returns an instance of BasicFileInfo filled with basic information about a Revit file located at the given file-path
Public methodGetDocumentVersion Gets the DocumentVersion for the file.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
This class provides a fast access to get basic information without fully opening a Revit file. The Extract method can initialize a new instance of this class by providing a full path for Revit file, including project (.rvt) and family (.rfa) files. This class can extract information from files of older formats. If the structure of the BasicFileInfo storage has not changed, it can also extract information from files of newer formats (making the method IsSavedInLaterVersion relevant). However, if the structure of the storage has changed in a newer file format, Extract will not be able to extract the information.
See Also