Hi everyone,
I’ve looked very hard to try and solve my challenge, and found a lot of good posts. But I cannot find this issue or tips to solve it.
I want to build a data tree with about 4 layers. In the ghpython component, there are 4 inputs, each one is part of a branch layer hierarchy, example:
Devs = {0}
Plots = {0,0}
Buildings = {0,0,0}
Massing = {0,0,0,0}
The goal is to be able to see what items are contained below each higher-order element. The tree can then be used for calculations of (# items, M2, GFA, etc.)
I want to organize the items on each lower (successive) layer underneath the item which contains them. example:
Dev[1] contains Plots[3,4,5] contains Buildings[10,11,15] contains Massing[90,91,92]
Problems:
My problem is that the data is duplicating and not filtering
- I might be using the wrong filtering techniques (ex. Curve.Contain might be bad method)
- I might be structuring the for loops incorrectly
- I might be constructing the dataTree incorrectly
MassDataMaker_0.4_SentOut.gh (31.3 KB)
I’ve already read through these important posts, and more
- GH SDK DataTree(Of T) Class
- GH SDK GH_Path Class
- ghpthon.treehelpers - Gist on Github
- Discourse Tree Operations in Python
- Discourse C# Create Data Tree
- Discourse C# 3 Layer Data Tree
- James Ramsden C# Data Trees in GH
- Grasshopper3D Convert Array to datatree
1 post - 1 participant