<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Lat/Long to String in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lat-long-to-string/m-p/2363477#M23351</link>
    <description>I'm doing the .NET equivalent (Converter.AngleToString) in order to convert the double to an angle.  The problem is the rest of the Lat/Long.  There are a variety of formatting options - short name prepended, short name appended, long name prepended, short name spaced prepended, capitalization options, etc.&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
I actually just did it "the hard way", and did all that processing myself.  I couldn't find anything in the API that would do it.  But I think I have something that works now.&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
The only real trick seems to be that the double must be converted to an absolute value, because a value of "-30" for Latitude means "South30°", not 330°.  And then there's a lot of grunge, of course, to get the rest.&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
-- Sinc&lt;BR /&gt;&lt;BR /&gt;
http://www.ejsurveying.com&lt;BR /&gt;&lt;BR /&gt;
http://www.quux.biz&lt;BR /&gt;&lt;BR /&gt;
http://www.sincpac3d.com&lt;BR /&gt;</description>
    <pubDate>Fri, 17 Oct 2008 14:16:09 GMT</pubDate>
    <dc:creator>Sinc</dc:creator>
    <dc:date>2008-10-17T14:16:09Z</dc:date>
    <item>
      <title>Lat/Long to String</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lat-long-to-string/m-p/2363473#M23347</link>
      <description>Lat/Long seems to be stored as a double.  How do I convert this to a string?</description>
      <pubDate>Fri, 17 Oct 2008 03:31:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lat-long-to-string/m-p/2363473#M23347</guid>
      <dc:creator>Sinc</dc:creator>
      <dc:date>2008-10-17T03:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lat/Long to String</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lat-long-to-string/m-p/2363474#M23348</link>
      <description>With some exploration, I think I've figured out enough to convert it to a string "the long way".  It looks like a positive value means North or East, while a negative value means South or West.  Then there are all those settings and enums in AeccSettingsLatLong, indicating long or short name, etc., that can be used to piece together a string.&lt;BR /&gt;
&lt;BR /&gt;
Is that the only way to do it?</description>
      <pubDate>Fri, 17 Oct 2008 04:08:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lat-long-to-string/m-p/2363474#M23348</guid>
      <dc:creator>Sinc</dc:creator>
      <dc:date>2008-10-17T04:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Lat/Long to String</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lat-long-to-string/m-p/2363475#M23349</link>
      <description>Hi Sinc&lt;BR /&gt;
&lt;BR /&gt;
Is it feasible that the format parameters may do the trick for you"&lt;BR /&gt;
&lt;BR /&gt;
Something like:&lt;BR /&gt;
&lt;BR /&gt;
MyString = Format(MyDouble, "DD-MM-SS")&lt;BR /&gt;
&lt;BR /&gt;
Things to look for would include a constant offset from the Date parameters.&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
dei-feif wrote:&lt;BR /&gt;
&amp;gt; With some exploration, I think I've figured out enough to convert it to &lt;BR /&gt;
&amp;gt; a string "the long way". It looks like a positive value means North or &lt;BR /&gt;
&amp;gt; East, while a negative value means South or West. Then there are all &lt;BR /&gt;
&amp;gt; those settings and enums in AeccSettingsLatLong, indicating long or &lt;BR /&gt;
&amp;gt; short name, etc., that can be used to piece together a string.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Is that the only way to do it?</description>
      <pubDate>Fri, 17 Oct 2008 04:41:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lat-long-to-string/m-p/2363475#M23349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-17T04:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lat/Long to String</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lat-long-to-string/m-p/2363476#M23350</link>
      <description>I'm doing the .NET equivalent (Converter.AngleToString) in order to convert the double to an angle.  The problem is the rest of the Lat/Long.  There are a variety of formatting options - short name prepended, short name appended, long name prepended, short name spaced prepended, capitalization options, etc.&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
I actually just did it "the hard way", and did all that processing myself.  I couldn't find anything in the API that would do it.  But I think I have something that works now.&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
The only real trick seems to be that the double must be converted to an absolute value, because a value of "-30" for Latitude means "South30°", not 330°.  And then there's a lot of grunge, of course, to get the rest.&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
-- Sinc&lt;BR /&gt;&lt;BR /&gt;
http://www.ejsurveying.com&lt;BR /&gt;&lt;BR /&gt;
http://www.quux.biz&lt;BR /&gt;&lt;BR /&gt;
http://www.sincpac3d.com&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Oct 2008 14:16:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lat-long-to-string/m-p/2363476#M23350</guid>
      <dc:creator>Sinc</dc:creator>
      <dc:date>2008-10-17T14:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lat/Long to String</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lat-long-to-string/m-p/2363477#M23351</link>
      <description>I'm doing the .NET equivalent (Converter.AngleToString) in order to convert the double to an angle.  The problem is the rest of the Lat/Long.  There are a variety of formatting options - short name prepended, short name appended, long name prepended, short name spaced prepended, capitalization options, etc.&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
I actually just did it "the hard way", and did all that processing myself.  I couldn't find anything in the API that would do it.  But I think I have something that works now.&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
The only real trick seems to be that the double must be converted to an absolute value, because a value of "-30" for Latitude means "South30°", not 330°.  And then there's a lot of grunge, of course, to get the rest.&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
-- Sinc&lt;BR /&gt;&lt;BR /&gt;
http://www.ejsurveying.com&lt;BR /&gt;&lt;BR /&gt;
http://www.quux.biz&lt;BR /&gt;&lt;BR /&gt;
http://www.sincpac3d.com&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Oct 2008 14:16:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lat-long-to-string/m-p/2363477#M23351</guid>
      <dc:creator>Sinc</dc:creator>
      <dc:date>2008-10-17T14:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lat/Long to String</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lat-long-to-string/m-p/2363478#M23352</link>
      <description>Oh, and of course there's also the problem that the Converter.AngleToString method drops the leading zeros in minutes and seconds, but those are relatively easy to add with a RegEx.&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
-- Sinc&lt;BR /&gt;&lt;BR /&gt;
http://www.ejsurveying.com&lt;BR /&gt;&lt;BR /&gt;
http://www.quux.biz&lt;BR /&gt;&lt;BR /&gt;
http://www.sincpac3d.com&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Oct 2008 14:18:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lat-long-to-string/m-p/2363478#M23352</guid>
      <dc:creator>Sinc</dc:creator>
      <dc:date>2008-10-17T14:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lat/Long to String</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lat-long-to-string/m-p/2363479#M23353</link>
      <description>I ran into a couple of other bugs in C3D in this process, as well.&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
First is that the "Short name suffix" and "Short name suffix spaced" options do not seem to work in C3D.  The settings work, and they work for my program, but when I configure C3D to use one of those "Short name suffix" options, I get the long name displayed in C3D instead.  This includes all Point Displays, such as in the Details Pane and the Panorama view, as well as tool tips.&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
The other is that, in the API, the enums contain an entry for "AeccLatLongDirectionType.aeccLatLongDirectionSinged" - it should be "AeccLatLongDirectionType.aeccLatLongDirectionSigned".  One of Autodesk's programmers must be either dyslexic or a pyromaniac.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
-- Sinc&lt;BR /&gt;&lt;BR /&gt;
http://www.ejsurveying.com&lt;BR /&gt;&lt;BR /&gt;
http://www.quux.biz&lt;BR /&gt;&lt;BR /&gt;
http://www.sincpac3d.com&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Oct 2008 14:48:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lat-long-to-string/m-p/2363479#M23353</guid>
      <dc:creator>Sinc</dc:creator>
      <dc:date>2008-10-20T14:48:14Z</dc:date>
    </item>
  </channel>
</rss>

