how can i convert length of tray to meters?
Multiply by 304.8 to convert from decimal feet to millimetres
1 Like
I don’t understand where I should multiply
Use this method.
from Autodesk.Revit.DB.UnitUtils import ConvertFromInternalUnits
length_mm = ConvertFromInternalUnits(length, DisplayUnitType.DUT_MILLIMETERS)
3 Likes
Just fyi this has changed for 2021+ https://forums.autodesk.com/t5/revit-api-forum/forgetypeid-how-to-use/td-p/9439210