Returns a Reference to a Face from the same or a different MassEnergyAnalyticalModel that is coincident with the input Face.

Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since:  2012

Syntax

C#
public static Reference GetCoincidentEnergyAnalyticalModelFaceReference(
	Document document,
	Reference referenceToFace
)
Visual Basic
Public Shared Function GetCoincidentEnergyAnalyticalModelFaceReference ( _
	document As Document, _
	referenceToFace As Reference _
) As Reference
Visual C++
public:
static Reference^ GetCoincidentEnergyAnalyticalModelFaceReference(
	Document^ document, 
	Reference^ referenceToFace
)

Parameters

document
Type: Autodesk.Revit.DB..::..Document
The Document.
referenceToFace
Type: Autodesk.Revit.DB..::..Reference
A Reference to a Face of a MassEnergyAnalyticalModel.

Remarks

The result is always a Reference to a Face. The Reference Type should report as REFERENCE_TYPE_SURFACE. Currently Revit improperly reports it as REFERENCE_TYPE_NONE.

Exceptions

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

See Also