6 Replies Latest reply on Apr 17, 2009 11:32 AM by Peter Kahrel

    Unit conversion

    Ken Krugh Level 1

      Is there an easy way to convert measurement units?

       

      For instance I need to calculate the depth of a paragraph with a rule below it and the .RuleBelowLineWeight always returns points, which makes sense. But, all the calculations I'm doing in this particular script can be done in whatever units are currently active except for that .RuleBelowLineWeight value.

       

      I'm currently changing the units to points to do all the calculations so it works with the .RuleBelowLineWeight value (seemed easiest) but it would be cool to have a way, or even a routine, to be able to pass the value and a unit and receive back a value in the unit I need.

       

      Thanks!

      Ken