GetReference Method


Returns a reference to a given curve within the Analytical Element.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2023

Syntax

C#
public Reference GetReference(
	AnalyticalModelSelector selector
)
Visual Basic
Public Function GetReference ( _
	selector As AnalyticalModelSelector _
) As Reference
Visual C++
public:
Reference^ GetReference(
	AnalyticalModelSelector^ selector
)

Parameters

selector
Type: Autodesk.Revit.DB.StructureAnalyticalModelSelector
Specifies where in the Analytical Element the reference lies.

Return Value

Requested reference.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException selector is not valid for this AnalyticalElement.
Autodesk.Revit.ExceptionsArgumentNullException 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 →