<?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: lisp for automatic data extratiocn in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9855742#M67821</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;,&amp;nbsp; as far as I can see , there is no way , from dwg, to know what&amp;nbsp; diameter is each pipe&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;The other data extraction is for headpipes with a 32 mm / 40 mm diameter and 25 mm pipes to the                    sprinkler. &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Nov 2020 12:55:01 GMT</pubDate>
    <dc:creator>devitg</dc:creator>
    <dc:date>2020-11-09T12:55:01Z</dc:date>
    <item>
      <title>lisp for automatic data extratiocn</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9855390#M67820</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering if it is possible to write a lisp for the following situations.&lt;/P&gt;&lt;P&gt;We're doing two kinds of data extraction, and it takes some time to fill in the extraction form. If we could do it by typing in a command to get the results this would be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's just one difference between the data extractions. The first one is for a 25 mm headpipe and 25 mm pipes to the sprinklers. This data extraction looks like the following steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;step 1:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data extraction 1.png" style="width: 815px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/841975iC052A89750327C59/image-size/large?v=v2&amp;amp;px=999" role="button" title="data extraction 1.png" alt="data extraction 1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;step 2:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data extraction 2.png" style="width: 816px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/841976i051EB3D7A2DDB253/image-size/large?v=v2&amp;amp;px=999" role="button" title="data extraction 2.png" alt="data extraction 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 3:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data extraction 3.png" style="width: 814px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/841977i273BC1F960EFF9BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="data extraction 3.png" alt="data extraction 3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 4:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data extraction 4.png" style="width: 813px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/841978i6EAEFF7DD9EEEAEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="data extraction 4.png" alt="data extraction 4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 5:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data extraction 5.png" style="width: 814px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/841980i19DB3C7ADABE40C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="data extraction 5.png" alt="data extraction 5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 6:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data extraction 6.png" style="width: 808px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/841979i7B3112B36ED08937/image-size/large?v=v2&amp;amp;px=999" role="button" title="data extraction 6.png" alt="data extraction 6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will export the lengt of the selected polylines and lines into an excel sheet. (the layers of these lines are just for a controle check). If it is possible to do this with a command (something like berekenleiding25 ) it would be great and saves a lot of time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other data extraction is for headpipes with a 32 mm / 40 mm diameter and 25 mm pipes to the sprinkler.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks quite the same as the data extraction shown above, but now it should only take the length of the lines and not the polylines.&amp;nbsp; I think the command for this should be something like berekenleiding&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the data extractions could be saved in one&amp;nbsp; excel file and this file could be overwritten each time we use the command.&amp;nbsp; (i could enter the filelocation by myself in the lisp if marked where to do).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached an example dwg and the files I'm currently using for data extraction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering if this is possible and if anyone is able to help me (i'm just a basic level autocad user, writing lisp's is something I've never done before).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kinds regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Niels&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 09:52:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9855390#M67820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-09T09:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for automatic data extratiocn</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9855742#M67821</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;,&amp;nbsp; as far as I can see , there is no way , from dwg, to know what&amp;nbsp; diameter is each pipe&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;The other data extraction is for headpipes with a 32 mm / 40 mm diameter and 25 mm pipes to the                    sprinkler. &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 12:55:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9855742#M67821</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2020-11-09T12:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for automatic data extratiocn</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9855811#M67822</link>
      <description>&lt;P&gt;Hi Devitg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's correct. It's only&amp;nbsp; visible in the autocad add-on "landexpert". However, this add-on does not calculate everything correctly and that is why we use a data extraction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What matters most: An automatic data extraction should be done based on the displayed lines (copied directly from the "landexpert" plug-in), if possible of course. One for the length of both the lines and the polylines and one that only shows the length of the lines. This is the difference between all pipes in 25 mm (polylines are main pipes) or another diameter main pipe (pipes to the sprinklers are lines). The length of the main pipe is in the last case shown correctly in landexpert so this is not an issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe a better discription of the case:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If I could get a routine (command)&amp;nbsp; that extracts all the data of the selected lines in a drawing&amp;nbsp; and a routine that extracts the length of all the selected polylines and lines into an excelsheet is this "problem" solved..&amp;nbsp; (I don't like the data extraction wizzard at all, takes to much time :p)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;first one: command: berekenleiding , select lines and polylines, get length of only lines into excelsheet&lt;BR /&gt;second one: berekenleiding25, select lines and polylines, get length of selected lines and polylines into excelsheet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I made myself a bit clearer now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kinds regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CraZy-N&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 13:18:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9855811#M67822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-09T13:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for automatic data extratiocn</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9855826#M67823</link>
      <description>&lt;P&gt;@AnonymousIt is not a problem to write a script that would create CSV file with desired data, but you have to give us more details. Since all pipes are created in same layer define which color defines particular pipe type.&lt;/P&gt;&lt;P&gt;As &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/58962"&gt;@devitg&lt;/a&gt;&amp;nbsp; has stated, there is no way to read it out from your dwg sample.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 13:25:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9855826#M67823</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2020-11-09T13:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for automatic data extratiocn</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9855911#M67824</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;,&amp;nbsp; an option is to set color has number 25 32 45 50 .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See my first csv .and lisp&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 13:55:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9855911#M67824</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2020-11-09T13:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for automatic data extratiocn</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9856018#M67825</link>
      <description>&lt;P&gt;canceled&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 14:43:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9856018#M67825</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2020-11-09T14:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for automatic data extratiocn</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9856152#M67826</link>
      <description>&lt;P&gt;I've tried to make things clear in the new dwg which I've attached&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if this is not clear, forget the idea of different pipe diameters. In essence, it concerns two different data extractions that I would like to have automated:&lt;BR /&gt;- one where I select both the lines and the polylines and see the lengths of both in the excel file. I can adjust the command for this myself if I have to.&lt;BR /&gt;- One (separate command) where I can select both the lines and the polylines and only find the lengths of the selected lines in the excel file. Excluding the polylines in the selection would be more difficult.&amp;nbsp;The data extraction wizard also offers the possibility to filter between lines and polylines, so this shouldn't be very difficult to filter them out?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 15:20:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9856152#M67826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-09T15:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for automatic data extratiocn</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9856255#M67827</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;, hi please test this lisp . it will give you&amp;nbsp; CSV file, you can open with XLS , and&amp;nbsp; the use the column to text , or text in column, xls command&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;&lt;LI-CODE lang="general"&gt;;;arranque 
;;***********************************************************************************************
;; Hecho por  Gabo CALOS DE VIT de CORDOBA ARGENTINA
;;;    Copyleft 1995-2020 por Gabriel Calos De Vit 
;; DEVITG@GMAIL.COM \n
;;;(ascii "\"")
;;*//*/*/*/*/*/*/*/*/*/*/*/*/**/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
(DEFUN GUARDA-LISTA-CSV-W-CABEZA/cabeza-lista (CABEZA
                                               LISTA
                                               /
                                               ;;ar
 ;nombre-archivo
                                              )
  ;;(setq nombre-archivo (getfiled "Archivo donde guardara los datos " "" ext 1))
  (SETQ NOMBRE-ARCHIVO
         (STRCAT (GETVAR "dwgprefix")
                 (VL-FILENAME-BASE (GETVAR "dwgname"))
;;;                 " lista de capas "
                 ".csv"
         ) ;_  STRCAT
  ) ;_  SETQ
  (SETQ AR (OPEN NOMBRE-ARCHIVO "w"))
  (WRITE-LINE CABEZA AR)
  (FOREACH
         TEXTO LISTA
    (WRITE-LINE TEXTO AR)
  ) ;_  FOREACH
  (CLOSE AR)
  NOMBRE-ARCHIVO
)

(defun initio ()
(VL-LOAD-COM)
  (SETQ ACAD-OBJ (VLAX-GET-ACAD-OBJECT)) ;_ el programa ACAD 
  (SETQ ADOC (VLA-GET-ACTIVEDOCUMENT ACAD-OBJ)) ;_ el DWG que esta abierto-
  (SETQ MODEL (VLA-GET-MODELSPACE ADOC))
  (SETQ SELECTIONSETS (VLA-GET-SELECTIONSETS ADOC))
  (SETQ LAY-COLL (VLA-GET-LAYERS ADOC))

);end defun initio

(defun pipe-dia-2-csv (/ ADOC CSV-FILE HEAD HEAD-AND-PIPES HEAD-AND-PIPES-OBJ HEAD-AND-PIPES-OBJ-SS
                       HEAD-AND-PIPES-OBJS OBJ-COLOR OBJ-LAYER OBJ-LENGTH OBJ-TYPE
                       OBJ-TYPE+LENGTH+CLR+LAY TYPE-LENGTH-LAY-COLOR-LIST
                      )
  (initio)

  (prompt "\n Select pipes and headpipes")

  (setq head-and-pipes (ssget '((0 . "*line*"))))

  (setq head-and-pipes-obj-ss (VLA-GET-ACTIVESELECTIONSET adoc))
;;;  (setq head-and-pipes-obj (vla-item head-and-pipes-obj-ss 5))

  (setq type-length-lay-color-list ())
  (setq HEAD (strcat "PIPE" "," "LENGTH" "," "COLOR" "," "LAYER"))
  (VLAX-FOR
         head-and-pipes-obj
                           head-and-pipes-obj-ss
    (setq obj-type (vla-get-ObjectName head-and-pipes-obj))
    (setq obj-length (rtos (VLA-GET-LENGTH head-and-pipes-obj) 2 4))
    (setq obj-color (itoa (VLA-GET-COLOR head-and-pipes-obj)))
    (setq obj-layer (VLA-GET-LAYER head-and-pipes-obj))
    (setq obj-type+length+clr+lay (Strcat obj-type "," obj-length "," obj-color "," obj-layer))
    (setq type-length-lay-color-list (cons obj-type+length+clr+lay type-length-lay-color-list))
  ) ;_  VLAX-FOR

  (setq csv-file (GUARDA-LISTA-CSV-W-CABEZA/cabeza-lista HEAD type-length-lay-color-list))

  (startapp "notepad" csv-file)


) ;_  defun




(defun c:p-2-fil ()

(pipe-dia-2-csv)

)


  &lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 15:59:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9856255#M67827</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2020-11-09T15:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for automatic data extratiocn</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9856330#M67828</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/58962"&gt;@devitg&lt;/a&gt;&amp;nbsp; I will not write down my code since your code works very well. I would just propose, if OP wants it, to sort output strings (lines) in accordance to pipe type (diameter) i.e. depending on color. Option is to add an empty line between different types, or sum total lengths.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, instead of "," I would use ";" as a delimiter.&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;LI-CODE lang="general"&gt;(setq HEAD (strcat "PIPE" ";" "LENGTH" ";" "COLOR" ";" "LAYER"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To directly connect output csv with spreadsheet app&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(startapp "explorer" csv-file)&lt;/LI-CODE&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>Mon, 09 Nov 2020 16:32:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9856330#M67828</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2020-11-09T16:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for automatic data extratiocn</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9856661#M67829</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556"&gt;@hak_vz&lt;/a&gt;&amp;nbsp;, thanks for your tip , I learn a new one today .&amp;nbsp;&lt;/P&gt;&lt;P&gt;I always use the&amp;nbsp; comma separator , and did not know about the way xls will open it with not Text on Column .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I left the OP to handle it as he needs on the xls .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 18:43:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9856661#M67829</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2020-11-09T18:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for automatic data extratiocn</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9856956#M67830</link>
      <description>&lt;P&gt;Hi Devitg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wich command do I need to start your lisp? I'm not that good in spanish / portugese.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the uploaded csv file:&lt;/P&gt;&lt;P&gt;- It's not interesting wich color a line has, this option may be deleted. I want the outcome of the csv file just as simple as it should be.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm really looking forward to test this and could see if this lisp is what I'm searching for &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&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>Mon, 09 Nov 2020 20:52:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9856956#M67830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-09T20:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for automatic data extratiocn</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9857039#M67831</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp; First APPLOAD the lisp , and&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;just type&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;p-2-fil&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;at the command line,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Meanwhile I suit to need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test it , and send me any error if happens.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 21:31:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9857039#M67831</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2020-11-09T21:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for automatic data extratiocn</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9858558#M67832</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;, please test it . it will make a new XLS , each time is used&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in this name format x:folders\folder\dwgname date&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;"K:\\crayzi\\beregeningsplan example new20201110.09513200.csv" &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 12:52:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9858558#M67832</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2020-11-10T12:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for automatic data extratiocn</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9858804#M67833</link>
      <description>&lt;P&gt;Hi Devitg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tested the routine a few times and it works fine. I would like to have adjusted it slightly based on feedback from a colleague.&lt;/P&gt;&lt;P&gt;Is it possible to remove the polylines from the results? So that only the lengths of lines are visible, even though we select the polylines in autocad?&lt;/P&gt;&lt;P&gt;This change could be made in the routine with colors shown ( my colleagues like to see the colors).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the only adjustment that I (and my colleagues) would like to see &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great job so far!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kinds regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CraZy-N&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 14:15:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9858804#M67833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-10T14:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for automatic data extratiocn</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9858876#M67834</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;and colleagues , back and for . What a nice way to spend the day.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can add the color , again, an only lines&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 14:36:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9858876#M67834</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2020-11-10T14:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for automatic data extratiocn</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9861676#M67835</link>
      <description>&lt;P&gt;Hi DevitG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry to put you to work so much. The lisp works perfect, but I still have one question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would be an ideal scenario for us is that we can load them both and use them. (based on command get a csv file with both polyline and lines or with a different command get a csv file with only lines)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have done is the following:&lt;BR /&gt;- Changed the commands of both files&lt;BR /&gt;- Both routines have separate names&lt;BR /&gt;- Changed the filename of the created csv file (just a detail)&lt;/P&gt;&lt;P&gt;- Used appload to load both of them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;However, if both routines are loaded in autocad, things are not working correctly. As soon as I enter the lisp "leidingberekenen"(both polylines and lines) it goes wrong when calculating only the lines (lisp aftakkingberekenen, command "aftakkingberekenen"). With the lisp "leidingberekenen"&amp;nbsp; the csv file contains the polylines and lines and this is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I'm using "aftakkingberekenen" the csv file does not exclude the polylines anymore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I don't load one of the two routines it works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've inserted both edited lips as attachment. Is there a way to use them both and get the correct outcome based purely on a different command? (Give command leidingberekenen and get the lenght of both polylines and lines, give command aftakkingberekenen and get a csv file with only lines? CSV file may have a name like leidingen m1 in both cases).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you still want to help us with this, I am a difficult customer I know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 12:26:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9861676#M67835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-11T12:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: lisp for automatic data extratiocn</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9862792#M67836</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;find attached MY WAY to do it .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to modify to your need , do it.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 20:07:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-data-extratiocn/m-p/9862792#M67836</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2020-11-11T20:07:10Z</dc:date>
    </item>
  </channel>
</rss>

