# Revit Solid.Centroid returning XYZ (0,0,0)

**URL:** <https://forum.dynamobim.com/t/revit-solid-centroid-returning-xyz-0-0-0/56140>\
**Category:** Revit\
**Tags:** revit, geometry, dynamo, familyinstance\
**Created:** [October 13, 2020, 12:20pm UTC](https://forum.dynamobim.com/t/revit-solid-centroid-returning-xyz-0-0-0/56140 "2020-10-13T12:20:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dick.elsman\_infranea](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@dick.elsman\_infranea](https://forum.dynamobim.com/u/dick.elsman_infranea)\
**Post date:** [October 13, 2020, 12:20pm UTC](https://forum.dynamobim.com/t/revit-solid-centroid-returning-xyz-0-0-0/56140/1 "2020-10-13T12:20:28Z")

</div>

Hello all,

I have a family that contains multiple solids, however the solid centroids of the family instances keep returning 0,0,0. this is not correct

The operation in short is Element.Geometry\> filter only solids\> Solid.Centroid

Does anyone know how this can happen, and what i can do to solve this?  
I am not able to upload the projectfile due to the sensitivity of the project.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/a/fa3836fe66a6928d39d77720f6669e04d31c11bf.png)

Best regards,

Dick

---

<div class="post-metadata">

**Author:** ![robert12546358](https://avatars.discourse-cdn.com/v4/letter/r/c5a1d2/32.png) [@robert12546358](https://forum.dynamobim.com/u/robert12546358)\
**Post date:** [October 13, 2020, 12:49pm UTC](https://forum.dynamobim.com/t/revit-solid-centroid-returning-xyz-0-0-0/56140/2 "2020-10-13T12:49:13Z")

</div>

Can you show me the full graph.

---

<div class="post-metadata">

**Author:** ![dick.elsman\_infranea](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@dick.elsman\_infranea](https://forum.dynamobim.com/u/dick.elsman_infranea)\
**Post date:** [October 13, 2020, 1:06pm UTC](https://forum.dynamobim.com/t/revit-solid-centroid-returning-xyz-0-0-0/56140/3 "2020-10-13T13:06:20Z")

</div>

graph1/2 :

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/e/aef6cc9d46469b07647a2ddedcd5a66e3ad49ac5.png)

---

<div class="post-metadata">

**Author:** ![dick.elsman\_infranea](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@dick.elsman\_infranea](https://forum.dynamobim.com/u/dick.elsman_infranea)\
**Post date:** [October 13, 2020, 1:06pm UTC](https://forum.dynamobim.com/t/revit-solid-centroid-returning-xyz-0-0-0/56140/4 "2020-10-13T13:06:51Z")

</div>

2/2

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/9/f9a3f293f7d5084870f703e438af202d77d4c17e.png)

Note: the “empty” family instances do not influence this behaviour.

for other families it seems to work correctly.

the family is a 2 point adaptive family with a linebased family hosted on a reference line

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [October 13, 2020, 3:11pm UTC](https://forum.dynamobim.com/t/revit-solid-centroid-returning-xyz-0-0-0/56140/5 "2020-10-13T15:11:27Z")

</div>

Are your Families “Shared” ?  
Can you try that?  
_long shot_

---

<div class="post-metadata">

**Author:** ![dick.elsman\_infranea](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@dick.elsman\_infranea](https://forum.dynamobim.com/u/dick.elsman_infranea)\
**Post date:** [October 14, 2020, 8:29am UTC](https://forum.dynamobim.com/t/revit-solid-centroid-returning-xyz-0-0-0/56140/6 "2020-10-14T08:29:39Z")

</div>

I tried both shared and non/shared version, but both returned the same result…

---

<div class="post-metadata">

**Author:** ![dick.elsman\_infranea](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@dick.elsman\_infranea](https://forum.dynamobim.com/u/dick.elsman_infranea)\
**Post date:** [October 23, 2020, 9:29am UTC](https://forum.dynamobim.com/t/revit-solid-centroid-returning-xyz-0-0-0/56140/7 "2020-10-23T09:29:11Z")

</div>

It seem to have to do something with the fact that it is a linebased family. I resolved this for now by just obtaining familyInstance.location… this is not really correct though
