<?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: Extract info to txt in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-info-to-txt/m-p/12775669#M13943</link>
    <description>&lt;P&gt;glad to have helped...cheers!!!&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2024 18:19:21 GMT</pubDate>
    <dc:creator>paullimapa</dc:creator>
    <dc:date>2024-05-15T18:19:21Z</dc:date>
    <item>
      <title>Extract info to txt</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-info-to-txt/m-p/12775009#M13940</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a LSP who extract information from block call "NUM", yellow number in dwg . I need to put TAB or ; in each information extract for parcing that information in&amp;nbsp; SQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;information extract was give by nu.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 14:02:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-info-to-txt/m-p/12775009#M13940</guid>
      <dc:creator>GRONDIF01NG9V8</dc:creator>
      <dc:date>2024-05-15T14:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Extract info to txt</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-info-to-txt/m-p/12775599#M13941</link>
      <description>&lt;P&gt;Three problems:&lt;/P&gt;&lt;P&gt;1. you cannot use any &lt;STRONG&gt;TAB&lt;/STRONG&gt; codes but only the &lt;STRONG&gt;spacebar&lt;/STRONG&gt; inside the &lt;STRONG&gt;NU.txt&lt;/STRONG&gt; file&lt;/P&gt;&lt;P&gt;2. you also need to include these lines on the top of &lt;STRONG&gt;NU.txt&lt;/STRONG&gt;:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;C:DELIM {
C:QUOTE ^&lt;/LI-CODE&gt;&lt;P&gt;3. Change this line:&amp;nbsp;&lt;STRONG&gt;NUMERO N006000&lt;/STRONG&gt; to this &lt;STRONG&gt;NUMERO C007000&lt;/STRONG&gt; then it'll extract out as a separate column&lt;/P&gt;&lt;P&gt;Also for testing, your &lt;STRONG&gt;Cable.lsp&lt;/STRONG&gt; is missing a function&amp;nbsp;&lt;STRONG&gt;CHOIX&lt;/STRONG&gt; in this line:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(SETQ A (CHOIX "\nSELECTIONNEZ LE NUMÉRO DU FICHIER:  "))&lt;/LI-CODE&gt;&lt;P&gt;To make it run I replaced it with this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(SETQ A (car(entsel "\nSELECTIONNEZ LE NUMÉRO DU FICHIER:  ")))&lt;/LI-CODE&gt;&lt;P&gt;Also for my testing I replaced the following lines:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;     (SETQ D "G:\\DESSIN\\APPLACCESS\\GCBL\\")
;     (SETQ F "G:\\DESSIN\\APPLACCESS\\GCBL\\NU.TXT")&lt;/LI-CODE&gt;&lt;P&gt;With these:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;     (setq D (getvar"dwgprefix"))
     (setq F (strcat D "NU.TXT"))&lt;/LI-CODE&gt;&lt;P&gt;With the above changes I run &lt;STRONG&gt;Cable.lsp&lt;/STRONG&gt; &amp;amp; attached is &lt;STRONG&gt;NUM.txt&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You should be able to open this text file in &lt;STRONG&gt;Excel&lt;/STRONG&gt; with the proper columns formatted:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_0-1715795553239.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1362688iE129BEDB4557D608/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_0-1715795553239.png" alt="paullimapa_0-1715795553239.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_1-1715795561377.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1362689i1EDF2DFAB5B2C142/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_1-1715795561377.png" alt="paullimapa_1-1715795561377.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_2-1715795595088.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1362690i74BB8143EE541FE8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_2-1715795595088.png" alt="paullimapa_2-1715795595088.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also attached is modified &lt;STRONG&gt;NU.txt&lt;/STRONG&gt; to properly extract the block attributes&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 17:53:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-info-to-txt/m-p/12775599#M13941</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-05-15T17:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extract info to txt</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-info-to-txt/m-p/12775639#M13942</link>
      <description>&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 18:07:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-info-to-txt/m-p/12775639#M13942</guid>
      <dc:creator>GRONDIF01NG9V8</dc:creator>
      <dc:date>2024-05-15T18:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extract info to txt</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-info-to-txt/m-p/12775669#M13943</link>
      <description>&lt;P&gt;glad to have helped...cheers!!!&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 18:19:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-info-to-txt/m-p/12775669#M13943</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-05-15T18:19:21Z</dc:date>
    </item>
  </channel>
</rss>

