I need to group a list of items under a specific path, to be able to merge it with another data tree in the right position. However I cannot seem to be able to output anything other than a list.
First try: for i until end of items: tree.Add(item, new GH_Path(i));
Second: create a List → tree.AddRange(List, new GH_Path(i));
The output is always a list.
Thank you for your time;
Have you initialized your tree?
public GH_Structure<GH_Point> tree= new GH_Structure<GH_Point>();
After that, DA.SetDataTree in SolveInstance
Well … for grouping things I would suggest a “similar” [classic] approach as exposed in this indicative/entry level demo.