Sort Rectangular Openings in each Branch of a Data Tree

I have wall panels faces that can have any number of openings. I would like to sort the rectangular areas by decreasing area. The tree structure needs to be maintained for future operations. I can sort the data after flattening the tree, but I cannot seem to figure out how to re-create the data tree correctly. Another rookie mistake I am sure, but maybe someone can point me in the correct direction.

precast-test.3dm (112.5 KB)
precast-test.gh (19.2 KB)

This is disappointing, can you internalize geometry after the Tekla Convert to Brep?

Yes, I can bake that in I believe. I need to do some reading how to post this to ask for help. Twice now I have not included a complete file.

Connect a Brep param between Convert to Brep and Deconstruct Brep, then right-click on it and choose “Internalize data”. Then save the GH file, of course, and post it again. Then there will be no need for the Rhino file.

P.S. What is taking so long :question: :zzz:

Great video help. I think this is correct.

precast-test-FORUM.gh (6.5 KB)

The Point param is not a brep :bangbang: How silly.

There is much that could be said about this but I’ve gotta go.

P.S. Actually ridiculous :bangbang:


precast-test_JO.gh (11.1 KB)

I know I have lots to figure out yet, so improving the routine will be inevitable.

Thank you very much for your help.

Why are you messing with points when you have two surfaces and their edges?


precast-test_2024Oct11a.gh (14.3 KB)

Breps are internalized, no need for Rhino file. And no need for Tekla :interrobang:

1 Like

That is a much better idea. Not very bright on my part. Thanks for pointing that out.

@Brad_Shipton Can recommend this GH training course https://edu.learngrasshopper.com/

Yes, I think so. I have spent enought time trying the hard way. I have made good progress using Grasshopper to parametrize my Tekla projects, but now I need to understand the data tree much better. The Tekla edits have involved mainly attributes and contol lines to add geometry. All of that is the same as all the custom components I have made in tekla. Manipulating the data trees will take some time to understand well.