Interactive editing in Rhino

INTERACTIVE EDITING IN RHINO:
input a space curve → apply the method → select a point on the curve and update the curve (drag with the selected or any control point) → apply the method again this cycle continues for n times.

pseudo code:
method applied to the initialised curve.
for loop (select a point on the curve and update the curve). #ntimes
if (curve updated):
apply the method
else break

I am facing difficulty in “to update the curve”

I don’t want to select the curve again to apply the method it should be taken automatically. Please help.

Hi Kanika - if I understand you, you can but GetPoint() in a loop and constain GetPoint() to the curve.

(gp.Constrain(curve, boolean)

(GetPoint.Constrain Method)

Does that help at all?

-Pascal

Hi Pascal,

I have updated my question.

I want to update it with the previous curve with the same guid and apply the method again.