Extract Method


Basic File Info Extract Method

Returns an instance of BasicFileInfo filled with basic information about a Revit file located at the given file-path

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static BasicFileInfo Extract(
	string file
)

Parameters

file String
The full path to the file to be queried, including project (.rvt) and family (.rfa) files.

Return Value

BasicFileInfo
If successful, basic file data.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
FileArgumentNotFoundException The file doesn't exist.
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.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →