Convert Units with Revit API

# Variable
value = 10.55

#🅰️ Convert value from Feet to Meters
units   = UnitTypeId.Meters #UnitTypeId.Centimeters ...
value_m = UnitUtils.ConvertToInternalUnits(value, units)

#🅱️ Convert value from Meters to Feet
value_ft = UnitUtils.ConvertFromInternalUnits(value, units)

⌨️ Happy Coding!
Erik Frits