<?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: Text to a CSV in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8990238#M85756</link>
    <description>&lt;P&gt;1&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2019 14:46:00 GMT</pubDate>
    <dc:creator>StanThe</dc:creator>
    <dc:date>2019-08-27T14:46:00Z</dc:date>
    <item>
      <title>Text to a CSV</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8951090#M85747</link>
      <description>&lt;P&gt;I need a lisp that will extract text on a certain layer from multiple enclosed polylines into a csv file and label it according to which polyline it came from.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 15:13:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8951090#M85747</guid>
      <dc:creator>StanThe</dc:creator>
      <dc:date>2019-08-06T15:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Text to a CSV</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8953643#M85748</link>
      <description>&lt;P&gt;Gonna need more info, what line do you want it coming from cause if its from an enclosed polyline (polygon)... not too sure what you mean.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 16:23:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8953643#M85748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-07T16:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Text to a CSV</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8953713#M85749</link>
      <description>&lt;P&gt;This pdf hopefully shows what i want to accomplish. Left side is my drawing and right side is basically what i'd like to see in a csv or xls file.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 16:58:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8953713#M85749</guid>
      <dc:creator>StanThe</dc:creator>
      <dc:date>2019-08-07T16:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Text to a CSV</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8956838#M85750</link>
      <description>&lt;P&gt;This is very easily done using ssget "WP" selection set within polygon and look for blocks. I posted elsewhere here almost exactly what you want. Will see if I can edit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dataextraction should do what you want for now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 02:57:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8956838#M85750</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2019-08-09T02:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Text to a CSV</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8956931#M85751</link>
      <description>&lt;P&gt;Have a look at this, its hard coded for output file but that can be changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;; simple export text
; By Alan H Aug 2019


(defun c:test ( / obj lay lay2 fo ss ss2 ent txt box)
(setq obj (vlax-ename-&amp;gt;vla-object (car (entsel "Pick pline object"))))
(setq lay (vla-get-layer obj))
(setq obj (vlax-ename-&amp;gt;vla-object (car (entsel "Pick text object"))))
(setq lay2 (vla-get-layer obj))
(setq box 1)
(if (/= (setq ss  (ssget "X" (list (cons 0 "lwpolyline")(cons 8 lay)))) nil)
(progn
(setq fo (open "d:\\acadtemp\\test.csv" "w") )
(repeat (setq x (sslength ss))
(setq ent (ssname ss (setq x (- x 1))))
(if ent (setq co-ord (mapcar 'cdr (vl-remove-if-not '(lambda (x) (= (car x) 10)) (entget ent)))))
(setq ss2 (ssget "wP" co-ord (list (cons 0 "*text")(cons 8 lay2))))
(repeat (setq y (sslength ss2))
(setq txt (vla-get-textstring (vlax-ename-&amp;gt;vla-object (ssname ss2 (setq y (- y 1))))))
(write-line (strcat txt "," "box " (rtos box 2 0)) fo)
)
(setq box (+ box 1))
)
)
)
(close fo)
(alert "done")
(princ)
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 05:42:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8956931#M85751</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2019-08-09T05:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Text to a CSV</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8958352#M85752</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4608899"&gt;@StanThe&lt;/a&gt;&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your request is very simple to solve and creating the csv file is the easiest part but i thought to take it one level up, i mean what happened if the enclose polyline is not a just simple box and contains arcs? (see the weird test1.dwg) so attached dent.vlx (Dump ENclose Text) when prompt for select objects you need to select text + polylines.&amp;nbsp; overlaid polylines is&amp;nbsp;forbbiden.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;enjoy&lt;/P&gt;&lt;P&gt;moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 18:51:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8958352#M85752</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2019-08-09T18:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Text to a CSV</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8979586#M85753</link>
      <description>&lt;P&gt;Sorry I haven't even been able to look at this! Been swamped at work! I do appreciate your help!!! Hopefully I'll be able to look at it soon!!!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 19:52:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8979586#M85753</guid>
      <dc:creator>StanThe</dc:creator>
      <dc:date>2019-08-21T19:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Text to a CSV</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8987893#M85754</link>
      <description>&lt;P&gt;This will work and i sincerely thank you! Is there a way to tell it which is box 1, box 2, etc. ? Even if the box at the top would be #1 and the box below that is #2 and so forth?&lt;/P&gt;&lt;P&gt;Thanks again!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 15:07:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8987893#M85754</guid>
      <dc:creator>StanThe</dc:creator>
      <dc:date>2019-08-26T15:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Text to a CSV</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8988826#M85755</link>
      <description>&lt;P&gt;You would have to add a label to each pline, if you just pick all it would be in creation order, if you pick pick pick it would be in that order. There is a centroid of pline.lsp out there that could be added for text point.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 00:40:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8988826#M85755</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2019-08-27T00:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Text to a CSV</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8990238#M85756</link>
      <description>&lt;P&gt;1&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 14:46:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-to-a-csv/m-p/8990238#M85756</guid>
      <dc:creator>StanThe</dc:creator>
      <dc:date>2019-08-27T14:46:00Z</dc:date>
    </item>
  </channel>
</rss>

