Revit 2025.3 API
DocumentSave |
Creates an image view from the currently active view.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public ElementId SaveToProjectAsImage( ImageExportOptions options )
Public Function SaveToProjectAsImage ( options As ImageExportOptions ) As ElementId
public: ElementId^ SaveToProjectAsImage( ImageExportOptions^ options )
member SaveToProjectAsImage : options : ImageExportOptions -> ElementId
Parameters
- options ImageExportOptions
- The options which govern the image creation.
Return Value
ElementIdId of the newly created view if the operation succeeded, invalid element id otherwise.
| Exception | Condition |
|---|---|
| ArgumentException | options object is invalid: the ExportRange is invalid, must be CurrentView or VisibleRegionOfCurrentView, or the ViewName is invalid, must be non-empty, unique and should not contain prohibited characters. -or- The current view cannot be exported as an image |
| ArgumentNullException | A non-optional argument was null |
See Also