Grasshopper

algorithmic modeling for Rhino

Hi all, 

I have been marginally successful at outputting lists from a VB node by simple defining 1-dimensional array and then filling it in as needed. 

But what is the syntax for outputting a tree (or a list of 1D arrays)? Should I be using the list object instead of a 1D array? And if so, what is the syntax for creating that? 

Preemptive thanks!

Views: 299

Replies to This Discussion

Dim aTree as new datatree(of Object)

'For add an item:

aTree.add(someObject, new gh_path(PathIndex))

Or to add a list:

aTree.addRange(someListOfObjects, new gh_path(PathIndex))

'To output:

A = aTree

2 for 2!!! Thanks man!!!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service