IsValidZoomLevel Method


Verifies if the value of zoom level is valid.

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

Syntax

C#
public bool IsValidZoomLevel(
	int zoomLevel
)
Visual Basic
Public Function IsValidZoomLevel ( _
	zoomLevel As Integer _
) As Boolean
Visual C++
public:
bool IsValidZoomLevel(
	int zoomLevel
)

Parameters

zoomLevel
Type: SystemInt32
The value of zoom level.

Return Value

True if the value of zoom level is inside of the acceptable range, false otherwise.

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 →