Dim strObject,dblDegree,arrPoints,strCmd,arrPoint,i
strObject= Rhino.GetObject ("Select curve to redraw",4)
If IsNull (strObject) Then Exit Sub
If Rhino.IsCurveClosed(strObject) Then
Rhino.Print "The object is a closed curve."
Exit Sub
End If
Rhino.DeleteObject strObject
Dim strE
strE=" "
If IsArray(arrPoints) Then
For Each arrPoint In arrPoints
If i=UBound(arrPoints) Then strE=""
strCmd=strCmd&"W"&Pt2str(arrPoint)&strE
Next
End If
Rhino.command "Curve Degree="&CStr(dblDegree)&" "&strCmd, False