RVTDocs.com
Namespace: Autodesk.Revit.DB Class: Curve

Curve.GetEndPoint

Method
Description:
Returns the 3D point at the start or end of this curve.
Syntax
public XYZ GetEndPoint(
	int index
)
Parameters
Parameter Type Description
index Int32 0 for the start or 1 for end of the curve.
Return Value
Type Description
XYZ The curve endpoint.
Exceptions
Exception Condition
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