GetEndPoint Method


Returns the 3D point at the start or end of this curve.

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

Syntax

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

Parameters

index
Type: SystemInt32
0 for the start or 1 for end of the curve.

Return Value

The curve endpoint.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException curve is unbound and does not have start and end points. -or- index must be 0 for the start of the curve or 1 for the end.
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was NULL

See Also