Grasshopper

algorithmic modeling for Rhino

Hello,

Im trying to write a vb module that would output a list of lists (nested arrays) but have not managed to figure out how to do it. Is there anyone that knows of a way?

Thanks in advance

msgrom

Views: 501

Replies to This Discussion

Hi Mateo,

if you want to output a Data Tree from within a Component, then you must assign an instance of the DataTree generic class:

Grasshopper.DataTree(Of ****)

You'll have to specify paths as well.
I posted a definition containing a vb.net component that outputs different paths. It's in the following thread:
http://www.grasshopper3d.com/forum/topics/3dslicer-v11
It's attached to the last message.
David & Vicente,

Thanks for taking the time to answer. Ive been looking over the file Vicente posted and the .net component seems to do exactly what I was looking for (besides being a very handy tool).

Best,

m
this seems only to output a one-dimensional tree. how do you output a tree with branches containing other branches?

EDIT: ok, i just figured it out, just create a path with more than one indice:

path as new EH_Path(i,j)

where i and j are the nested loop indices...

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service