Revit 2022 API |
Document..::..ExportImage Method |
Document Class See Also |
Exports a view or set of views into an image file.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since:
2011
Syntax
C# |
---|
public void ExportImage( ImageExportOptions options ) |
Visual Basic |
---|
Public Sub ExportImage ( _ options As ImageExportOptions _ ) |
Visual C++ |
---|
public: void ExportImage( ImageExportOptions^ options ) |
Parameters
- options
- Type: Autodesk.Revit.DB..::..ImageExportOptions
The options which govern the image export.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentException | The current view cannot be exported as an image |
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |
Autodesk.Revit.Exceptions..::..FileAccessException | The path indicated could not be accessed. |
Autodesk.Revit.Exceptions..::..FileNotFoundException | The path indicated could not be found. |
Autodesk.Revit.Exceptions..::..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. |
Autodesk.Revit.Exceptions..::..OptionalFunctionalityNotAvailableException | The Graphics module is not available in the installed Revit. |