<?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: Remove spaces in bearing-distance LISP output in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/remove-spaces-in-bearing-distance-lisp-output/m-p/9850709#M67910</link>
    <description>&lt;P&gt;Replace this line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;(setq brng (angtos ang 4 4))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with this, to strip the spaces out of it [nested, because (vl-string-subst) substitutes only the first instance]:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;(setq brng (vl-string-subst "" " " (vl-string-subst "" " " (angtos ang 4 4))))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333333"&gt;[That's specific to this case, assuming the string returned by (angtos) for Surveyor's Units (the first 4), which will have 2 and only 2 spaces in it.&amp;nbsp; If you want to strip spaces out of something that might have &lt;EM&gt;any number&lt;/EM&gt;&amp;nbsp; of spaces, a (while) loop approach would be needed.]&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2020 15:56:28 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2020-11-06T15:56:28Z</dc:date>
    <item>
      <title>Remove spaces in bearing-distance LISP output</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/remove-spaces-in-bearing-distance-lisp-output/m-p/9850647#M67909</link>
      <description>&lt;P&gt;How can I remove spaces at the "N" and "E" in the output of this LISP routine? For example, to go from&amp;nbsp;N 89°30’30” E&amp;nbsp; &amp;nbsp;100.00' to N89°30’30”E&amp;nbsp; &amp;nbsp;100.00'. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 15:27:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/remove-spaces-in-bearing-distance-lisp-output/m-p/9850647#M67909</guid>
      <dc:creator>EBDBC3D</dc:creator>
      <dc:date>2020-11-06T15:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Remove spaces in bearing-distance LISP output</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/remove-spaces-in-bearing-distance-lisp-output/m-p/9850709#M67910</link>
      <description>&lt;P&gt;Replace this line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;(setq brng (angtos ang 4 4))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with this, to strip the spaces out of it [nested, because (vl-string-subst) substitutes only the first instance]:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;(setq brng (vl-string-subst "" " " (vl-string-subst "" " " (angtos ang 4 4))))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333333"&gt;[That's specific to this case, assuming the string returned by (angtos) for Surveyor's Units (the first 4), which will have 2 and only 2 spaces in it.&amp;nbsp; If you want to strip spaces out of something that might have &lt;EM&gt;any number&lt;/EM&gt;&amp;nbsp; of spaces, a (while) loop approach would be needed.]&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 15:56:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/remove-spaces-in-bearing-distance-lisp-output/m-p/9850709#M67910</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-11-06T15:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Remove spaces in bearing-distance LISP output</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/remove-spaces-in-bearing-distance-lisp-output/m-p/9850826#M67911</link>
      <description>&lt;P&gt;That worked - thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 16:26:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/remove-spaces-in-bearing-distance-lisp-output/m-p/9850826#M67911</guid>
      <dc:creator>EBDBC3D</dc:creator>
      <dc:date>2020-11-06T16:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Remove spaces in bearing-distance LISP output</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/remove-spaces-in-bearing-distance-lisp-output/m-p/9851702#M67912</link>
      <description>&lt;P&gt;Checkout the UNITMODE system variable.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Nov 2020 00:31:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/remove-spaces-in-bearing-distance-lisp-output/m-p/9851702#M67912</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-11-07T00:31:32Z</dc:date>
    </item>
  </channel>
</rss>

