.NET string formatting doesn't do angles and distances,
so unless you need the more generic conversion, its not
too helpful.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
"Matt" wrote in message news:5403763@discussion.autodesk.com...
Brilliant. Just what I wanted.
So I can fail to understand the .net string formatting for a couple of weeks
more
/Matt
"Tony Tanzillo" wrote in message
news:5403635@discussion.autodesk.com...
Not sure about the C++ equivalent, but you can use
the Autodesk.AutoCAD.Runtime.Converter class in
acdbmgd.dll to convert between distance/angle and
strings.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
"Matt" wrote in message
news:5403173@discussion.autodesk.com...
Ok, this is not really an acad-related issue, but i'm doing an Acad-net app,
so ....
In c++ i format at string with dynamic precision using the formatstring
"%.*f", m_sPrecision, x
How do i do that in .NET. I'm totally lost.
Or even better, (look; Acad related) can i format a string the same way as
using the %q formaters in ARX.
i.e. let Acad format the strings according to the unit-settings
/Matt