# Mesh extracted from a Wall is in a different unit/scale

**URL:** <https://forum.dynamobim.com/t/mesh-extracted-from-a-wall-is-in-a-different-unit-scale/37545>\
**Category:** Developers\
**Tags:** python\
**Created:** [June 24, 2019, 5:16pm UTC](https://forum.dynamobim.com/t/mesh-extracted-from-a-wall-is-in-a-different-unit-scale/37545 "2019-06-24T17:16:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![masaaki.mikI](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@masaaki.mikI](https://forum.dynamobim.com/u/masaaki.mikI)\
**Post date:** [June 24, 2019, 5:16pm UTC](https://forum.dynamobim.com/t/mesh-extracted-from-a-wall-is-in-a-different-unit-scale/37545/1 "2019-06-24T17:16:48Z")

</div>

Hi, I extracted an Autodesk.Revit.DB.Solid out of a Wall and get a mesh by calling Audodesk.Revit.DB.Face.Triangulate().  
The wall is 4000mm tall and the mesh is 13.1233496801758 (unit is not known) tall.  
I believe the Revit project is in metric. Does anybody know where this scale difference come from?

Thank you.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [June 24, 2019, 5:36pm UTC](https://forum.dynamobim.com/t/mesh-extracted-from-a-wall-is-in-a-different-unit-scale/37545/2 "2019-06-24T17:36:14Z")

</div>

My guess is that you’re using an older Dynamo or Revit version, as 4000 mm is 13.123 feet.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/7/17c14f6addf7f43478da705ba645073257b7c888.png)

This is something which has been addressed in most cases in current releases.

---

<div class="post-metadata">

**Author:** ![MartinSpence](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/martinspence/32/25208_2.png) [@MartinSpence](https://forum.dynamobim.com/u/MartinSpence)\
**Post date:** [June 24, 2019, 5:57pm UTC](https://forum.dynamobim.com/t/mesh-extracted-from-a-wall-is-in-a-different-unit-scale/37545/3 "2019-06-24T17:57:19Z")

</div>

When obtaining values like that directly using the API, you will get the values in internal units, which is imperial.

You can use the unitutils class to convert the value.

---

<div class="post-metadata">

**Author:** ![masaaki.mikI](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@masaaki.mikI](https://forum.dynamobim.com/u/masaaki.mikI)\
**Post date:** [June 25, 2019, 7:08pm UTC](https://forum.dynamobim.com/t/mesh-extracted-from-a-wall-is-in-a-different-unit-scale/37545/4 "2019-06-25T19:08:18Z")

</div>

Thanks! This is helpful!

---

<div class="post-metadata">

**Author:** ![MartinSpence](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/martinspence/32/25208_2.png) [@MartinSpence](https://forum.dynamobim.com/u/MartinSpence)\
**Post date:** [June 25, 2019, 7:14pm UTC](https://forum.dynamobim.com/t/mesh-extracted-from-a-wall-is-in-a-different-unit-scale/37545/5 "2019-06-25T19:14:08Z")

</div>

No problem!

This is the class I’m referring to: [https://apidocs.co/apps/revit/2018.2/128dd879-fea8-5d7b-1eb2-d64f87753990.htm](https://apidocs.co/apps/revit/2018.2/128dd879-fea8-5d7b-1eb2-d64f87753990.htm)

Good luck 🙂
