convert unit dynamo revit 1

convert unit dynamo revit

import clr

from Autodesk.Revit.DB import *

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

Here is what the above code is Doing:
1. Import the RevitAPI.dll
2. Create a variable called OUT
3. Set the value of OUT to the result of the UnitUtils.Convert method
4. The UnitUtils.Convert method takes 3 arguments:
a. The value to convert
b. The unit type to convert from
c. The unit type to convert to

Similar Posts