Centroid of Multiple Elements

I created a custom node in Revit 2017 for a project that I am involved with. Each piece of this node is created using a generic model with accurate shape, size, and thickness. I used Dynamo within Revit to find the centroid of a singular element, which placed a generic model at the centroid to view visually.

https://www.linkedin.com/pulse/center-gravity-dynamo-jason-murray

Is there a way to find the centroid of multiple elements? I tried to create a group and analyze the centroid, but that did not seem to work.

1 Like

@devon.roche Something like this?..
SolidsCentroid.dyn (4.8 KB)

1 Like

@Vikram_Subbaiah
Yes, basically. See my attached photo. I can analyze the large gusset plate by itself. However, I would like to analyze the center of gravity using the other generic models. Any suggestions?

@devon.roche Just follow the above example. Combine a flattened list of individual solids that make up the assembly into one using Solid.ByUnion.
The only difference is that in my example I used detached solids, while in your case, they’re attached to one another.

@Vikram_Subbaiah Awesome, I will try that. Thank you!

1 Like