.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

text rotation

2 REPLIES 2
Reply
Message 1 of 3
sybold
443 Views, 2 Replies

text rotation

Text = New DBText
                Text.SetDatabaseDefaults()
                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?

 

Tags (2)
2 REPLIES 2
Message 2 of 3
_gile
in reply to: sybold

Hi,

 

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



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 3
sybold
in reply to: sybold

Doh! thought it was in grads.

thanks!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost