Reverses the direction of a curve object. This feature can also be found in Rhino's Dir command.
rhinoscriptsyntax.ReverseCurve (curve_id)
rhinoscript.curve.ReverseCurve (curve_id)
curve_id |
Required. String or Guid. The object's identifier. |
Boolean |
True or False indicating success or failure. |
import rhinoscriptsyntax as rs
curve = rs.GetObject("Select a curve to reverse")
if rs.IsCurve(curve): rs.ReverseCurve(curve)