TheSwamp

Code Red => .NET => Topic started by: Jeff H on August 25, 2011, 03:07:27 AM

Title: Feet inches conversion
Post by: Jeff H 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.
Title: Re: Feet inches conversion
Post by: SEANT on August 25, 2011, 04:06:44 AM
I think the Autodesk.AutoCAD.Runtime.Converter class has that functionality.
Title: Re: Feet inches conversion
Post by: Jeff H 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.