i am using “rs.CurveClosestPoint” and i was expecting to get a point as the result but what I get is a float not a point does anyone know what is going wrong?

You can use rs.EvaluateCurve(param) to get the point at the curve parameter returned by rs.CurveClosestPoint(point).

Thank you for the help. I tried the script but it is asking for a second parameter which i do not know what it can be.

also tried the grasshopper help but it gives another error

This is a good example of when/why to just implement RhinoCommon directly: (3.3 KB)

it became like this now

Right, if you input guids you’ll need to implement rhinoscriptsyntax wrapper functions: (5.1 KB)

1 Like

@AndersDeleuran Thank you so much :slight_smile:

1 Like