RVTDocs.com
Namespace: Autodesk.Revit.DB Class: BasicFileInfo

Extract

Method
Description:
Returns an instance of BasicFileInfo filled with basic information about a Revit file located at the given file-path
Syntax
public static BasicFileInfo Extract(
	string file
)
Parameters
Parameter Type Description
file System.String The full path to the file to be queried, including project (.rvt) and family (.rfa) files.
Return Value
Type Description
Autodesk.Revit.Exceptions.ArgumentNullException If successful, basic file data.
Exceptions
Exception Condition
Autodesk.Revit.Exceptions.ArgumentNullException A non-optional argument was null
Autodesk.Revit.Exceptions.FileArgumentNotFoundException The file doesn't exist.
Autodesk.Revit.Exceptions.InvalidOperationException The file is a newer format file where the structure of the BasicFileInfo storage has changed, or the file is saved in very old version of Revit without basic file data.