# Object's position differ from its centroid's coordinates

**URL:** <https://forums.buildingsmart.org/t/objects-position-differ-from-its-centroids-coordinates/2262>\
**Category:** Developers\
**Created:** [January 14, 2020, 5:13pm UTC](https://forums.buildingsmart.org/t/objects-position-differ-from-its-centroids-coordinates/2262 "2020-01-14T17:13:44Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![yasser](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.buildingsmart.org/yasser/32/395_2.png) [@yasser](https://forums.buildingsmart.org/u/yasser)\
**Post date:** [January 14, 2020, 5:13pm UTC](https://forums.buildingsmart.org/t/objects-position-differ-from-its-centroids-coordinates/2262/1 "2020-01-14T17:13:44Z")

</div>

Hi there,  
I have created some IfcBuildingElementProxys using xBim to enrich an IFC file, gave them a geometry using the swept solid representation type. I followed the IFC schema in generating these objects. I am able to view the newly created elements in all kind of softwares that understand the IFC (BIMVision, FZKViewer, Revit,…), so far so good, Until a colleague makes a remark about the distances between these new elements.

To simplify the issue at hand, the screenshot below showcases one of the elements, its hard coded coordinates are (40.0, 40.0, -5.0) when creating the IfcCartesianPoint, but when the IFC file is generated and viewed, the actual position is at (120.0, 120.0, -8), and for the life of me I can’t figure out how is it happening. I tried different values like (2.0, 2.0, 0) but I get the position at (6.0, 6.0, 0).

Any idea or insight what I could be doing wrong?

Any help is much appreciated.

 ![duda_ifc](https://us1.discourse-cdn.com/flex016/uploads/buildingsmart1/original/1X/2a9098346c29482ea70dec5846ee0679bcf29285.png)

---

_[View the full topic](https://forums.buildingsmart.org/t/objects-position-differ-from-its-centroids-coordinates/2262)._
