IsPermittedSurfaceType Method


A validator function that checks whether the surface object is of type supported as face surface by BRepBuilder.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since: 2016

Syntax

C#
public static bool IsPermittedSurfaceType(
	Surface surface
)
Visual Basic
Public Shared Function IsPermittedSurfaceType ( _
	surface As Surface _
) As Boolean
Visual C++
public:
static bool IsPermittedSurfaceType(
	Surface^ surface
)

Parameters

surface
Type: Autodesk.Revit.DB Surface
Surface object intended to be used as a face surface.

Return Value

True if surface of this type may be used as a face surface, false otherwise.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions 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 →