GetPointOnCurve

Pauses for user input of a point constrained to a curve object.

Syntax

rhinoscriptsyntax.GetPointOnCurve (curve_id, message=None)

rhinoscript.userinterface.GetPointOnCurve (curve_id, message=None)

Parameters

curve_id

Required.  String or Guid.  The object's identifier.

message

Optional.  String.  A prompt or message.

Returns

Point3d

The 3-D point selected by the user if successful.

None

If not successful, or on error.

Example

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)

Also See

GetPoint

GetPointOnMesh

GetPointOnSurface

GetPoints