Grasshopper

algorithmic modeling for Rhino

hi,

  I want to get date tree from the C#,but it doesn't work,who can help me? thanks

Views: 668

Replies to This Discussion

A data tree is not a nested collection. You have to actually create a new DataTree<string> instance instead of string[,]

DataTree<string> tree = new DataTree<string>();

tree.Add(new GH_Path(0,0,0), "a1");

tree.Add(new GH_Path(0,0,0), "a2");

tree.Add(new GH_Path(0,0,0), "a3");

tree.Add(new GH_Path(0,0,1), "b1");

tree.Add(new GH_Path(0,0,1), "b2");

tree.Add(new GH_Path(0,0,1), "b3");

thank you!

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