GetFaceRegions Method


Gets the FaceRegions in the existing face.

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

Syntax

C#
public static IList<Reference> GetFaceRegions(
	Document cda,
	Reference referenceOfFace
)
Visual Basic
Public Shared Function GetFaceRegions ( _
	cda As Document, _
	referenceOfFace As Reference _
) As IList(Of Reference)
Visual C++
public:
static IList<Reference^>^ GetFaceRegions(
	Document^ cda, 
	Reference^ referenceOfFace
)

Parameters

cda
Type: Autodesk.Revit.DB Document
The Document.
referenceOfFace
Type: Autodesk.Revit.DB Reference
The Reference of the existing face.

Return Value

The FaceRegions in the existing face, or an empty collection if no FaceRegions are found.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException The Reference is not a Face Reference.
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was null

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →