GetEndPointReference Method


Returns a stable reference to the start point or the end point of the curve.

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

Syntax

C#
public Reference GetEndPointReference(
	int index
)
Visual Basic
Public Function GetEndPointReference ( _
	index As Integer _
) As Reference
Visual C++
public:
Reference^ GetEndPointReference(
	int index
)

Parameters

index
Type: SystemInt32
Use 0 for the start point; 1 for the end point.

Return Value

Reference to the point or a null reference (Nothing in Visual Basic) if reference cannot be obtained.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentOutOfRangeException Thrown when the specified index is not 0 or 1.
Autodesk.Revit.ExceptionsInvalidOperationException Thrown when the object is internally marked as read-only or this curve is unbound.

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 →