Filling a tree of trees with data in c#

Hi guys,

I am creating a data tree which contains a number of trees in each branch (for ex. one main tree with 3 branches, with 4 more trees in each of the 3 branches), which is defined within a c# component as follows:
DataTree<DataTree> TreeOfTrees = new DataTree<DataTree>();

I am aware that to add data to a tree branch, I need to specify the path to which the item should be added. But how can I specify a path within one of the secondary trees?

Many thanks

I think it would be , making a new Path,something like TreeOfTrees.Add(itemOfSubtree,new GH_Path(i,j,k));

1 Like

Thank you very much. Your answer was very helpful and worked exactly as I wanted. :+1: