Grasshopper

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?

Views: 256

Replies to This Discussion

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.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service