Author Topic: Rotation Values  (Read 115 times)

0 Members and 1 Guest are viewing this topic.

rugaroo

  • Bull Frog
  • Posts: 369
  • 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-15 | Infraworks 360 | VS2012

"Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."

gile

  • Water Moccasin
  • Posts: 2086
  • 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: 369
  • The Other CAD Guy
Re: Rotation Values
« Reply #2 on: July 15, 2017, 05:57:53 pm »
 :uglystupid2:
LDD06-09 | C3D 04-15 | Infraworks 360 | VS2012

"Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."

Atook

  • Swamp Rat
  • Posts: 830
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.