<Code Lib>
2026 Method
Changes 0
M

Document.SaveToProjectAsImage

Description:
Creates an image view from the currently active view.

public ElementId SaveToProjectAsImage(
	ImageExportOptions options
)

Return Value ElementId Id of the newly created view if the operation succeeded, invalid element id otherwise.

  • 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
  • A non-optional argument was null

Loading…