Revit 2026 API
DocumentExport |
Exports a view or set of views into an image file.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public void ExportImage( ImageExportOptions options )
Public Sub ExportImage ( options As ImageExportOptions )
public: void ExportImage( ImageExportOptions^ options )
member ExportImage : options : ImageExportOptions -> unit
Parameters
- options ImageExportOptions
- The options which govern the image export.

Exception | Condition |
---|---|
ArgumentException | The current view cannot be exported as an image |
ArgumentNullException | A non-optional argument was null |
FileAccessException | The path indicated could not be accessed. |
FileNotFoundException | The path indicated could not be found. |
InvalidOperationException | Exporting is not allowed in the current application mode. -or- Failed to export image due to an error with the inputs. -or- Failed to export image due to an issue where the DirectX Device was lost. |
OptionalFunctionalityNotAvailableException | The Graphics module is not available in the installed Revit. |
See Also