IsValidForSaveToProjectAsImage Method


Verify if ImageExportOptions object is valid for calling saveToProjectAsImage

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2011

Syntax

C#
public static bool IsValidForSaveToProjectAsImage(
	ImageExportOptions options,
	Document doc
)
Visual Basic
Public Shared Function IsValidForSaveToProjectAsImage ( _
	options As ImageExportOptions, _
	doc As Document _
) As Boolean
Visual C++
public:
static bool IsValidForSaveToProjectAsImage(
	ImageExportOptions^ options, 
	Document^ doc
)

Parameters

options
Type: Autodesk.Revit.DBImageExportOptions
ImageExportOptions object to be validated
doc
Type: Autodesk.Revit.DBDocument
Document for view name verification

Return Value

True if ImageExportOptions object is valid for calling saveToProjectAsImage; false otherwise

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →