IsValidViewScale Method


This validator checks that the view scale is in the allowable range.

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

Syntax

C#
public static bool IsValidViewScale(
	int viewScale
)
Visual Basic
Public Shared Function IsValidViewScale ( _
	viewScale As Integer _
) As Boolean
Visual C++
public:
static bool IsValidViewScale(
	int viewScale
)

Parameters

viewScale
Type: SystemInt32
The denominator X in the view scale 1/X.

Return Value

True if the view scale is within the allowable range, false otherwise.

Remarks

The view scale is expressed as 1/X, where X is an integer the range 1 to 24,000.

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 →