Author Topic: Feet inches conversion  (Read 1954 times)

0 Members and 1 Guest are viewing this topic.

Jeff H

  • Needs a day job
  • Posts: 6150
Feet inches conversion
« on: August 25, 2011, 03:07:27 AM »
Does'nt AutoCAD .NET API provide a unit coversion?
 
If the drawing is already set Arch and inches and you get back for example 1645.33800798796
Does the API have built in functions to convert that in feet-inches format or do you have to write your own?
 
I thought it did but cannot find it.

SEANT

  • Bull Frog
  • Posts: 345
Re: Feet inches conversion
« Reply #1 on: August 25, 2011, 04:06:44 AM »
I think the Autodesk.AutoCAD.Runtime.Converter class has that functionality.
Sean Tessier
AutoCAD 2016 Mechanical

Jeff H

  • Needs a day job
  • Posts: 6150
Re: Feet inches conversion
« Reply #2 on: August 25, 2011, 04:52:52 AM »
Thaks Seant,
 
I thought that was it and tried it but it was not working and after your reply I went back and looked closer and 
noticed I was using
Converter.StringToDistance
 instead of
Converter.DistanceToString

Thanks for putting me back on the right track.