Document.ExportImage
Method
Description:
Exports a view or set of views into an image file.
Exports a view or set of views into an image file.
Parameters
| Parameter | Type | Description |
|---|---|---|
| options | ImageExportOptions | The options which govern the image export. |
Return Value
Exceptions
| 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. |