# Revit units

**URL:** <https://forum.dynamobim.com/t/revit-units/60432>\
**Category:** Developers\
**Created:** [February 14, 2021, 3:18am UTC](https://forum.dynamobim.com/t/revit-units/60432 "2021-02-14T03:18:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shibujoseukken](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@shibujoseukken](https://forum.dynamobim.com/u/shibujoseukken)\
**Post date:** [February 14, 2021, 3:18am UTC](https://forum.dynamobim.com/t/revit-units/60432/1 "2021-02-14T03:18:40Z")

</div>

How can i get the units used in the revit file by using RevitAPI

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [February 14, 2021, 5:09am UTC](https://forum.dynamobim.com/t/revit-units/60432/2 "2021-02-14T05:09:25Z")

</div>

Uselly dynamo will take feet You probably work in mm. You need to convert between units

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [February 14, 2021, 5:10am UTC](https://forum.dynamobim.com/t/revit-units/60432/3 "2021-02-14T05:10:45Z")

</div>

Here something,

> [@Units in dynamo and python](https://forum.dynamobim.com/t/units-in-dynamo-and-python/29251/3):
>
> Be aware when you obtain parameter values using python via API methods. It will return internal units if you do not convert the values: From the example parameter, we can obtain the numeric value as a double or as a string representation: String representation: import clr #Import the Revit API clr.AddReference('RevitAPI') import Autodesk from Autodesk.Revit.DB import \* pipe = UnwrapElement(IN[0]) x = pipe.get\_Parameter(BuiltInParameter.RBS\_PIPE\_OUTER\_DIAMETER).AsValueSt…

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [February 14, 2021, 8:58am UTC](https://forum.dynamobim.com/t/revit-units/60432/4 "2021-02-14T08:58:08Z")

</div>

Hi @shibujoseukken,

You can use the _Document Units_ node.

 ![Document units](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/5/753410f1b34e45c39d568fc9606a80a405c598e5.png)

Here is the python script :

> <https://github.com/albandechasteigner/GeniusLociForDynamo/blob/master/Nodes/Document%20Units.dyf>
