I’m really confused… What have I done?
I have the area using Dynamo and the area (I think) using Python…
Yet the Python one seems to be 10.76 times larger. Why?
I’m really confused… What have I done?
I have the area using Dynamo and the area (I think) using Python…
Yet the Python one seems to be 10.76 times larger. Why?
Revit works in Feet under the hood. Dynamo does some of that unit conversion for you. Since you’re in the Revit API if you want meters you’re going to have to ask for the value to be returned as such. This gets difficult to sum up with the Units API changes, but there are several good examples on the forum already. Give it a shot and see where you get.
Oh… Doh…
I was thinking 0.09290304…
OK, move along. Nothing to see here
The number of google searches I have for “N UnitX to metric” is certainly throwing off my search history…
Hello, add this to your code, if you want m2 area=area_param.AsDouble()*0.3048**2
Cordially
christian.stan
That’s 0.09290304 which is the number I was thinking of to start.
I multiplied it by 10.763910416709716061984585413053 and it’s happy.
the foot power 2 your answer😉
1/(0,3048**2)
Cordially
christian.stan
Feet are stupid