Curve.GetEndPoint Method

CurveGetEndPoint Method

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

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public XYZ GetEndPoint(
	int index
)
Public Function GetEndPoint ( 
	index As Integer
) As XYZ
public:
XYZ^ GetEndPoint(
	int index
)
member GetEndPoint : 
        index : int -> XYZ 

Parameters

index  Int32
0 for the start or 1 for end of the curve.

Return Value

XYZ
The curve endpoint.
Exceptions
ExceptionCondition
ArgumentException 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.
ArgumentNullException A non-optional argument was NULL
See Also