Active Member
Posts: 7
Registered: ‎09-20-2011
Message 1 of 3 (151 Views)

text rotation

151 Views, 2 Replies
09-13-2013 06:24 AM
Text = New DBText
                Text.Height = 2.25 * Application.GetSystemVariable("DIMSCALE")
                Text.Rotation = 300
                Text.TextString = coord
                Text.Layer = "GRID-TEXT"
Text.TextStyleId = newTSId If MIR = True Then Text.HorizontalMode = TextHorizontalMode.TextRight Text.VerticalMode = TextVerticalMode.TextBottom Else Text.HorizontalMode = TextHorizontalMode.TextLeft Text.VerticalMode = TextVerticalMode.TextBottom End If Text.AlignmentPoint = pt If ucs = True Then Text.TransformBy(Doc.Editor.CurrentUserCoordinateSystem) End If btr.AppendEntity(Text) tr.AddNewlyCreatedDBObject(Text, True) tr.Commit()


when placing text the rotation is off in autocad, i set it to 300 and in autocad it should be 270 degrees it is 269. am i doing something wrong?


*Expert Elite*
Posts: 2,133
Registered: ‎04-29-2006
Message 2 of 3 (127 Views)

Re : text rotation

09-13-2013 09:09 AM in reply to: sybold



Except when using the command line (i.e. SendStringtoExecute), the angles have to be expressed in radians.

Gilles Chanteau
Active Member
Posts: 7
Registered: ‎09-20-2011
Message 3 of 3 (123 Views)

Re: text rotation

09-13-2013 09:35 AM in reply to: sybold

Doh! thought it was in grads.


Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.