[VB.Net] Create Curve like Curve command


I’m trying to let the user click as many times as it wants to create a curve like the command curve.
Think I’m able to do it but not limitless and only until I say there are no more points.

Anyone has an example for me?

A RhinoCommon-equivalent to the Curve command would use Rhino.Geometry.Curve.CreateControlPointCurve to construct the curve.

For defining a curve, you will need to loop through multiple Rhino.Input.Custom.GetPoint operations, all the while dynamically drawing the temporary curve.