as I was updating my graphs from Dynamo 2.6 to 2.12 for the switchover to Revit 2022, I noticed something strange with my graphs concerning geometry nodes. And I’m unsure if its a bug or an intended change.
I use a graph in which geometries (spheres) are created, cut and then inserted into Revit as ImportInstances.
The problem now is that in Revit 2022 (Dynamo 2.12) the created objects have a different size and position in the model, although I used exactly the same inputs as in 2021 and the same Revit model (Updated directly from Revit 2021 to 2022).
While testing, I noticed that by manually changing the units/scaling of the imported elements (in the type properties) from feet to decimeters, I was able to achieve the correct size.
So I suspect that Dynamo automatically uses a different unit than Revit in 2022, probably feet.
Apparently the error occurs when creating and editing geometries. I suspect nodes like “PolySurface.BySolid” and “Geometry.Split” cause it.
I always work with the metric system and also the project units in Revit are completely set to metric.
And in the older Revit/Dynamo versions there were never such problems.
Is it possible to change the units of Dynamo or what the nodes are using?
Or is this hardcoded in the nodes?
I already tried the “Convert between units” node for the radius, using decimeter to feet, which solves the size problem, but the position of the elements in the model is still messed up.
@dominikleuchter I meant the center point coordinates, my bad , the thing is there is a units modification in the Revit API starting Revit 2022, maybe it is affecting the zero touch node of Sphere.ByCenterPointRadius, if converting the coordinates value fix it for you, I think it would be the easiest solution
That said, @dominikleuchter please submit a support case via the accounts portal (same as you would for any other Revit issue) so that we can get a Revit bug created (the root cause is on the Revit side not the Dynamo one).
Yeah you are right. The problem seems to be the import to revit aka “ImportInstance.ByGeometry” node. The dynamo stuff beforehand seems to work just fine.
Will try your workaroud and see if this solves the unit problem.
I hope this gets fixed in the future.
It’s very sad, that we still haven’t got rid of imperial and switch worldwide to metric. Would prevent those problems and many others.