Option Explicit 'Script written by Russell Loveridge 'Script copyrighted by RAL:lapa.epfl.ch 'This script shows the difference between the AddCurve and AddInterpCurve commands. Call Makepolyline() Sub Makepolyline() Dim arrPolyline(), arrPt(2), arrPtF(2) Dim intPolyPoints, i, intDegree, intPeriodic Dim strPoly1 intPolyPoints = Rhino.GetInteger("How many points do you want on your polyline?", 6, 2 ) ' minimum number of points 2, no maximum. intDegree = Rhino.GetInteger("Spline = 0, Straight segments = 1", 1, 0, 1 ) ' minimum number of points 2, no maximum. intPeriodic = Rhino.GetInteger("Periodic (smooth closed)= 1, Not Periodic = 0", 1, 0, 1 ) For i=0 To (intPolyPoints) 'This is a loop that makes all of the calculations for the points o the polyline. ReDim Preserve arrPolyline(i) ' This command allows you to change the number of points in an array dynamically If i