algorithmic modeling for Rhino
Can someone please explain to me how to use lists?
I can add items to them easy enough, but I can't figure out how to extract items from the list, or better yet, access properties of the list.
For example.
Dim pt as List (Of Point3d)
but when I go to access the properties of the list with a dot-operator
all I get is properties of lists!
pt.Add
pt.Copy
usw.
How do I access the member type properties once items are in a list?
Tags:
Hi Matthew,
the code editor we use doesn't handle lists correctly.
Dim pts As New List(Of Point3d)
pts.Add(somePoint)
Dim firstZ As Double = pts(0).Z
--
David Rutten
david@mcneel.com
Poprad, Slovakia
I am very happy right now! Thank you!
It's been a rough start ot scripting, but I'm making some progress.
Thanks for all of your help David.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by