GetMassSurfaceDataIdForReference Method


Get the ElementId of the MassSurfaceData corresponding to the Reference.

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

Syntax

C#
public ElementId GetMassSurfaceDataIdForReference(
	Reference reference
)
Visual Basic
Public Function GetMassSurfaceDataIdForReference ( _
	reference As Reference _
) As ElementId
Visual C++
public:
ElementId^ GetMassSurfaceDataIdForReference(
	Reference^ reference
)

Parameters

reference
Type: Autodesk.Revit.DB Reference
A Reference to a face of this MassEnergyAnalyticalModel.

Return Value

ElementId of a MassSurfaceData.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException The Reference is not a Face of this MassEnergyAnalyticalModel.
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 →