IsValidRegion Method


Topography Surface Is Valid Region Method

Identify whether the points can construct a valid region for a topography surface.

Namespace: Autodesk.Revit.DB.Architecture
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static bool IsValidRegion(
	IList<XYZ> points
)

Parameters

points IList XYZ
The points set to be checked.

Return Value

Boolean
True if the size of points is not less than 3 and the points are not collinear after projecting to XY plane, that is, ignoring the elevation.
Exceptions
Exception Condition
ArgumentException There are no points in the input points set.
ArgumentNullException 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 →