# Centroid

**URL:** <https://forum.dynamobim.com/t/centroid/3070>\
**Category:** Packages\
**Created:** [February 2, 2016, 12:24pm UTC](https://forum.dynamobim.com/t/centroid/3070 "2016-02-02T12:24:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andre\_J](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Andre\_J](https://forum.dynamobim.com/u/Andre_J)\
**Post date:** [February 2, 2016, 12:24pm UTC](https://forum.dynamobim.com/t/centroid/3070/1 "2016-02-02T12:24:23Z")

</div>

Hello All,

was wondering if some of the experts here can help me obtain the c.g. of a particular Revit element. I have successfully been using the centroid node to get the c.g. but there are several cases where the geometry is not converted to a solid, instead I get a list of surfaces instead. does anyone have any other methods of evaluating a elements in order to get the center of gravity? (Revit file attached for reference).

![c.g](http://dynamobim.org/wp-content/uploads/forum-assets/ajagnanangateprecast-com/02/02/c.g.png)

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

[panel c.g.test\_detached](http://dynamobim.org/wp-content/uploads/forum-assets/ajagnanangateprecast-com/02/02/panel-c.g.test_detached.rvt)

&nbsp;

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Paul\_Wintour](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paul_wintour/32/9381_2.png) [@Paul\_Wintour](https://forum.dynamobim.com/u/Paul_Wintour)\
**Post date:** [February 2, 2016, 5:38pm UTC](https://forum.dynamobim.com/t/centroid/3070/2 "2016-02-02T17:38:39Z")

</div>

Have you tried joining all the surface into a solid using ‘ByJoinedSurfaces’?

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [February 2, 2016, 10:12pm UTC](https://forum.dynamobim.com/t/centroid/3070/3 "2016-02-02T22:12:35Z")

</div>

![20160203-3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/e/e1dbf0d44b527fc607a14762bd0037ba6f75a7e8.png)

---

<div class="post-metadata">

**Author:** ![Andre\_J](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Andre\_J](https://forum.dynamobim.com/u/Andre_J)\
**Post date:** [February 3, 2016, 7:45am UTC](https://forum.dynamobim.com/t/centroid/3070/4 "2016-02-03T07:45:40Z")

</div>

I will try this when I get back into the office.

Thank you.

---

<div class="post-metadata">

**Author:** ![Andre\_J](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Andre\_J](https://forum.dynamobim.com/u/Andre_J)\
**Post date:** [February 3, 2016, 7:46am UTC](https://forum.dynamobim.com/t/centroid/3070/5 "2016-02-03T07:46:51Z")

</div>

worked like a charm.

&nbsp;

Thank you Vickram!
