Returns the end point of a curve object.
rhinoscriptsyntax.CurveEndPoint (curve_id)
rhinoscript.curve.CurveEndPoint (curve_id)
curve_id |
Required. String or Guid. The object's identifier. |
Point3d |
The 3-D end point of the curve if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
object = rs.GetObject("Select a curve")
if rs.IsCurve(object):
point = rs.CurveEndPoint(object)
rs.AddPoint(point)