How do I get the 0" to show in a distance string. i.e.; DistanceToString(240) -> 20' but I want it to show 20'-0"
Anyone?
Mike
Maybe it has something to do with your units in your drawing? When i use the Autodesk.Autocad.Runtime.Convertor.DistanceToString it places the result into architectural units (20'-0") but that is how I have my units of my drawing setup.
hi,
The overloaded DistanceToString() method take three arguments the value (double) the units format (DistanceUnitFormat) and the precision (double)
Converter.DistanceToString(240, DistanceUnitFormat.Architectural, 2)
should work, but you have to look at the DIMZIN sysvar too (set to 1 to display the ending zeros).