Pauses for user input of a point constrained to a curve object.
rhinoscriptsyntax.GetPointOnCurve (curve_id, message=None)
rhinoscript.userinterface.GetPointOnCurve (curve_id, message=None)
curve_id |
Required. String or Guid. The object's identifier. |
message |
Optional. String. A prompt or message. |
Point3d |
The 3-D point selected by the user if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Pick a curve")
if rs.IsCurve(obj):
point = rs.GetPointOnCurve(obj, "Point on curve")
if point: rs.AddPoint(point)