IsValidFaceSet Method


Identifies whether the facets can construct a valid topography surface.

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

Syntax

C#
public static bool IsValidFaceSet(
	IList<PolymeshFacet> facets,
	IList<XYZ> points
)
Visual Basic
Public Shared Function IsValidFaceSet ( _
	facets As IList(Of PolymeshFacet), _
	points As IList(Of XYZ) _
) As Boolean
Visual C++
public:
static bool IsValidFaceSet(
	IList<PolymeshFacet^>^ facets, 
	IList<XYZ^>^ points
)

Parameters

facets
Type: System.Collections.GenericIListPolymeshFacet
The facets to be checked.
points
Type: System.Collections.GenericIListXYZ
A collection of points.

Return Value

True if the facets are valid, otherwise false.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException There are no points in the input points set. -or- There were not enough points to form a valid region (at least 3 are required), or the points were collinear ignoring elevation.
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 →