Text 0 - 90 - 180 - 270 Not so much

Just a heads up on what Revit does with text and rotation.
If you place text it goes on the sheet exactly horizontal and has a base vector of (1.0, 0, 0)
If you use the rotate tool and rotate it to the 90, 180 or 270 snap angle - It isn’t -quite- 90, 180 or 270. It is off by 0.00000000000001

Even if you rotate it back to “horizontal” it is still off by 0.00000000000001

Welcome to the wonderful world of double precision floats and conversion between radians (Revits internal unit for angles) and degrees. When the unit conversion occurs, you lose fractional accuracy and there’s not a lot you can do about it other than either work directly with radians (so that means only working with the Revit API) or just round by a dp which always removes the inaccuracy.

4 Likes

I understand the issue. I’m just surprised that Autodesk didn’t provide themselves a way to snap to exact values and decided to do their own “close enough” programing. It would be simple if one could directly set the vector for the text based direction rather than doing a bunch of math and rounding number.

There’s not a lot they can do about it as its a limitation of modern day computer architecture…

1 Like