# Getting wrong stairs length/width from Python & Revit API

**URL:** <https://forum.dynamobim.com/t/getting-wrong-stairs-length-width-from-python-revit-api/67176>\
**Category:** Developers\
**Tags:** python, dynamo, api\
**Created:** [August 15, 2021, 9:12pm UTC](https://forum.dynamobim.com/t/getting-wrong-stairs-length-width-from-python-revit-api/67176 "2021-08-15T21:12:10Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)\
**Post date:** [August 16, 2021, 9:54pm UTC](https://forum.dynamobim.com/t/getting-wrong-stairs-length-width-from-python-revit-api/67176/6 "2021-08-16T21:54:25Z")

</div>

Here is an example using Revit 2022, but the import should be the same.

```auto
import clr

clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *

OUT = UnitUtils.Convert(11.7,UnitTypeId.Feet,UnitTypeId.Millimeters)

```

Keep in mind too that in R2021 the DisplayUnitType was depreciated, and then in R2022 is it replaced by the SpecTypeId, ForgeTypeId and UnitTypeId classes.

---

_[View the full topic](https://forum.dynamobim.com/t/getting-wrong-stairs-length-width-from-python-revit-api/67176)._
