AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mtext Rotation

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Sgear
502 Views, 2 Replies

Mtext Rotation

 

Hi

 

I export from Argis into Excel I am try to get Rotation to the mtext when I import into Autocad

in the Excel file I got Angle from Argis  

 

how can I use Angel to Rotation the Mtext in Autocad

 

acMText.Rotation = "-26.621873"  this is the Angle from Argis the Rotation is wrong if I use this number

 

 

Regards

Sgear

2 REPLIES 2
Message 2 of 3
hgasty1001
in reply to: Sgear

Hi,

 

That number looks like sexagesimal degrees (the common degree full circle equal 360 degress), but may also be a centesimal degree (full circle equal 400 degrees, surveryors  use it), try converting  to radians before pass the value to mtext.rotation property.

 

Gaston Nunez

Message 3 of 3
Sgear
in reply to: hgasty1001

 

Thanks gasty1001

 

 

This fix my problem 

 

        mtx.Rotation = angle * Math.PI / 180.0

 

Regards

sgear

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

Post to forums  

Autodesk Design & Make Report

”Boost