Hi Mary, I haven't looked at the file you posted yet, so maybe this post will completely miss the mark..
The 2 easiest ways to iterate through a List of something: ----------------------------------------------------------- For Each crv As OnCurve in crvList Next ----------------------------------------------------------- For i As Int32 = 0 To crvList.Count - 1 Dim crv As OnCurve = crvList(i) Next ----------------------------------------------------------- If your loop only runs once, then it probably means the CrvNum value equals zero, or the loop crashes somewhere inside the first iteration. If it crashes however, you should get error messages in the output parameter of the component. -- David Rutten [email protected] Robert McNeel & Associates On Feb 22, 7:42 pm, Mary <[email protected]> wrote: > Hi, > > I've come across a seemingly simple vb.net rhinoclass issue that I > cannot find an answer to. > > the short version of this question is : > > Input to the script is a list of curves : ByVal crvList As List(Of > OnCurve) > > Then I am dividing each curve by equal length within a for loop. The > division of one curve works perfectly fine but the loop will not > advance past the first curve in the list. > > For b As Integer = 0 To CrvNum > Dim crv As OnCurve = crvList(b) > > --and then I have all of the dividing code here and I am drawing > new curves from the division points, I have this simplified right now > but it works > > next > > Is this not working because I am not declaring the OnCurve class > correctly, or because I am not pulling out the curve on crvList at b > correctly? > > The long version of this question is : > > http://groups.google.com/group/grasshopper3d/web/vbnet%20curves%20alo... > > You can see that the output of my code is many of the same curve, > instead of one curve at each divided curve. > > Thanks so much! > Mary
