2021 Class
Changes 0
C

BasicFileInfo

Description:
Encapsulates basic information about a Revit file, including worksharing status, Revit version, username and central path.
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.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.BasicFileInfo
public class BasicFileInfo : IDisposable
Name Return Type Description
M Dispose() None Releases all resources used by the
M Extract(String) BasicFileInfo Returns an instance of BasicFileInfo filled with basic information about a Revit file located at the given file-path
M GetDocumentVersion() DocumentVersion Gets the DocumentVersion for the file.
Name Return Type Description
P AllLocalChangesSavedToCentral bool Are all local changes saved to the central file?
P CentralPath string Returns the central model path.
P Format string The file format indicator (currently, the major release version such as "2019") used for saving the file.
P IsCentral bool Checks if the file is workshared and Central.
P IsCreatedLocal bool Checks if the file is local and created by RevitServerTool.exe.
P IsInProgress bool Checks if the file is workshared and is in process of becoming Central.
P IsLocal bool Checks if the file is workshared and Local.
P IsSavedInCurrentVersion bool Checks if the file is saved in the current version.
P IsSavedInLaterVersion bool Checks if the file is saved in a later version of Revit than the running Revit.
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.
P IsWorkshared bool Checks if the file is workshared.
P LanguageWhenSaved LanguageType Return the language active for the last save
P LatestCentralEpisodeGUID Guid This is the central model's episode GUID corresponding to the last reload latest done for this model.
P LatestCentralVersion int This is the central model's version number corresponding to the last reload latest done for this model.
P Username string Returns the username.