Author Topic: Rotation Values  (Read 1529 times)

0 Members and 1 Guest are viewing this topic.

rugaroo

  • Bull Frog
  • Posts: 378
  • The Other CAD Guy
Rotation Values
« on: July 15, 2017, 01:58:14 PM »
Ok, I don't think I am going crazy but maybe I am, or past due. Who know's... But... I am updating an older .Net routine for use in 2016, and found a command that no longer works like it did in 2012.

The command prompts the user for a double, then prompts for the user to select either a text, mtext or dimension entity. After that I set either the TxtEnt.Rotation, MTxtEnt.Rotation or DimensionEnt.TextRotation to the double that was obtained from the user. The issue is that the value that is getting passed to any of the entities is not what the user enters, unless it is 0, then it works fabulously!

Do I need to pass the double through as a vector or something???
LDD06-09 | C3D 04-19 | Infraworks 360 | VS2012-VS2017

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: Rotation Values
« Reply #1 on: July 15, 2017, 05:33:03 PM »
Hi,

Keep in mind that, internally, the Rotation (as any other angular values) is always expressed in radians.
Speaking English as a French Frog

rugaroo

  • Bull Frog
  • Posts: 378
  • The Other CAD Guy
Re: Rotation Values
« Reply #2 on: July 15, 2017, 05:57:53 PM »
 :uglystupid2:
LDD06-09 | C3D 04-19 | Infraworks 360 | VS2012-VS2017

Atook

  • Swamp Rat
  • Posts: 1029
  • AKA Tim
Re: Rotation Values
« Reply #3 on: July 15, 2017, 07:06:54 PM »
Also, you can prompt for a rotation instead of a double, which should make the deg/rad conversion for you if needed.