<?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: Export polyline data in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10204911#M62090</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;only face plane&amp;nbsp; area&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks all&lt;/P&gt;</description>
    <pubDate>Thu, 01 Apr 2021 14:12:26 GMT</pubDate>
    <dc:creator>subasio21</dc:creator>
    <dc:date>2021-04-01T14:12:26Z</dc:date>
    <item>
      <title>Export polyline data</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10195358#M62084</link>
      <description>&lt;P&gt;Hi, everyone!&lt;/P&gt;&lt;P&gt;I am searching for a lisp that can find all closed polylines in a drawing and export to excel their following information:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;area, layer ,thickness , color, x-cordinate of area ,&amp;nbsp;y-cordinate of area ,&amp;nbsp;z-cordinate of area&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ı added a sample dwg&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if anyone can help me I would be gratfull&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 10:26:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10195358#M62084</guid>
      <dc:creator>subasio21</dc:creator>
      <dc:date>2021-03-29T10:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Export polyline data</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10195403#M62085</link>
      <description>&lt;P&gt;post a csv file with an example of 1 exported polyline to take a look at its structure.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 10:45:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10195403#M62085</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-03-29T10:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Export polyline data</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10195429#M62086</link>
      <description>&lt;P&gt;And please define what you would mean by the X, Y and Z coordinates of an &lt;STRONG&gt;&lt;EM&gt;area&lt;/EM&gt;&lt;/STRONG&gt;.&amp;nbsp; Those of its centroid?&amp;nbsp; Of the middle of its bounding box?&amp;nbsp; For one with non-zero&amp;nbsp;&lt;EM&gt;thickness&lt;/EM&gt;, if you want the centroid, do you want the centroid of its drawing plane, or halfway up its thickness, or the top of its thickness?&amp;nbsp; Etc., etc.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 10:55:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10195429#M62086</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-03-29T10:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Export polyline data</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10197978#M62087</link>
      <description>&lt;P&gt;Is the area the face area baselength*thickness ? Add end areas ?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 05:34:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10197978#M62087</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-03-30T05:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Export polyline data</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10204886#M62088</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry but ı dont know how to export&amp;nbsp;&lt;SPAN&gt;polyline to csv&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:05:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10204886#M62088</guid>
      <dc:creator>subasio21</dc:creator>
      <dc:date>2021-04-01T14:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Export polyline data</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10204907#M62089</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes they are the center of its area , to calculate the weight center of all ,&amp;nbsp;I&lt;SPAN&gt;&amp;nbsp;want the centroid of its&amp;nbsp; halfway up its thickness,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:10:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10204907#M62089</guid>
      <dc:creator>subasio21</dc:creator>
      <dc:date>2021-04-01T14:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Export polyline data</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10204911#M62090</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;only face plane&amp;nbsp; area&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks all&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:12:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10204911#M62090</guid>
      <dc:creator>subasio21</dc:creator>
      <dc:date>2021-04-01T14:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Export polyline data</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10205260#M62091</link>
      <description>&lt;P&gt;Here's a quickie;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(defun c:foo (/ _f _c c f fn o s x)
  ;; RJP » 2021-04-01
  (defun _f (s)
    (strcat (cond ((= 'real (type s)) (vl-string-right-trim "0" (rtos s 2 15)))
		  ((= 'int (type s)) (itoa s))
		  ((vl-princ-to-string s))
	    )
	    ","
    )
  )
  (defun _c (o / a b)
    (if	o
      (progn (vla-getboundingbox o 'a 'b)
	     (mapcar 'set '(a b) (mapcar 'vlax-safearray-&amp;gt;list (list a b)))
	     (mapcar '/ (mapcar '+ a b) '(2 2 2))
      )
    )
  )
  (cond	((and (setq s (ssget '((0 . "LWPOLYLINE") (-4 . "&amp;amp;=") (70 . 1))))
	      (setq f (open (setq fn (strcat (getvar 'dwgprefix) "Results.csv")) "w"))
	 )
	 (write-line "AREA,LAYER,THICKNESS,COLOR,X,Y,Z" f)
	 (foreach e (vl-remove-if 'listp (mapcar 'cadr (ssnamex s)))
	   (setq c (_c (setq o (vlax-ename-&amp;gt;vla-object e))))
	   (write-line
	     (apply 'strcat
		    (append (mapcar '(lambda (x) (_f (vlax-get o x))) '(area layer thickness color))
			    (mapcar '_f c)
		    )
	     )
	     f
	   )
	 )
	 (close f)
	 (alert fn)
	)
  )
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 16:13:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10205260#M62091</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2021-04-01T16:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Export polyline data</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10207426#M62092</link>
      <description>&lt;P&gt;thanks a lots&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that's great !&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 13:25:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/export-polyline-data/m-p/10207426#M62092</guid>
      <dc:creator>subasio21</dc:creator>
      <dc:date>2021-04-02T13:25:36Z</dc:date>
    </item>
  </channel>
</rss>

