How to create a rotated DbText in C#
I want to create a Text on a Layout, which is rotated by 90°. If I use the following Code
DBText txt = new DBText(); txt.Position = new Point3d(0, -15, 0); txt.TextString = "3032025"; txt.HorizontalMode = TextHorizontalMode.TextLeft; txt.Rotation = 90; txt.Height = 2;
I get a text that is rotated by 116.62° (see picture)
How can I create a text that looks like this:
0
Comments
-
The angle is in radians not degrees.
0