Gets the FaceRegions in the existing face.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
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

ExceptionCondition
Autodesk.Revit.Exceptions..::..ArgumentException The Reference is not a Face Reference.
Autodesk.Revit.Exceptions..::..ArgumentNullException A non-optional argument was NULL

See Also