<?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: DATAEXTRACTION coordinates sequence question in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8249296#M272028</link>
    <description>&lt;P&gt;Sorry for disturbimg with my english spellings and grammer&lt;/P&gt;&lt;P&gt;No&amp;nbsp;comments for help on lisp forum&lt;/P&gt;&lt;P&gt;my promlem is&lt;/P&gt;&lt;P&gt;the attached dwg file show a pline breaked on 76.2 + some end points of curves &amp;amp;&amp;nbsp;the given distance to pldiv+2file is also 76.2&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i count the segment of dwg with "nvert.lsp" it become =303&lt;/P&gt;&lt;P&gt;the "pldiv+2file.lsp" make a csv of 584 rows/ segments,&amp;nbsp;&lt;/P&gt;&lt;P&gt;pls guide the "pldiv+2file to generate the 303 rows/ point data&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopfully I have explained my problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Sep 2018 10:08:50 GMT</pubDate>
    <dc:creator>arshadmirza786</dc:creator>
    <dc:date>2018-09-06T10:08:50Z</dc:date>
    <item>
      <title>DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/6410192#M272006</link>
      <description>&lt;P&gt;Dear all:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used spline to plot a path, after this I changed this path to pline and divided with 0.1 meter interval. Then I use&amp;nbsp;DATAEXTRACTION to export the coordinates of every point on the pline to Excel file, and I try to plot the path in MATLAB. However, I found that the sequence of the (X, Y) coordinates is not from the beginning of the path to the end of the path, but in a kind of order that I don't want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/251361i15F1C34AE49009A4/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="track.jpg" title="track.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you give me some guidance on how to make the exported coordinates of the path from the start point to the end point?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 09:57:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/6410192#M272006</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-29T09:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/6410238#M272007</link>
      <description>&lt;P&gt;You can't rely on it. Here is something you can rely on. Command name is bold.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Edit&lt;/STRONG&gt;: You can select any geometrical object like polyline, spline, line, arc, circle. No points needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;(defun c:&lt;STRONG&gt;pldiv2file&lt;/STRONG&gt; ( / *error* file aa en int i mx file)

  (defun *error* (errmsg)
    (if (not (wcmatch errmsg "Function cancelled,quit / exit abort,console break,end"))
      (princ (strcat "\nError: " errmsg)))
    (if file (close file))
    (princ))

  (princ "\nRequired single geometrical object, ")
  (while (not (setq ss (ssget "_+.:E:S" '((0 . "*POLYLINE,SPLINE,ARC,CIRCLE,LINE"))))))

  (initget 7)
  (setq int (getdist "\nSet interval: ")
	en (ssname ss 0)
	i 0.
	mx (vlax-curve-getDistAtParam en (vlax-curve-getEndParam en)))


  (if (setq file (open (strcat (getvar 'DWGPREFIX) (vl-string-right-trim ".dwg" (getvar 'DWGNAME)) ".csv") "a"))
    (progn
      (while (&amp;lt; i mx)
	(if (setq pt (vlax-curve-getPointAtDist en i))
	  (write-line (strcat (rtos (car pt) 2) "," (rtos (cadr pt) 2) "," (rtos (last pt) 2)) file))
	(setq i (+ i int)))
      (if (setq pt (vlax-curve-getPointAtDist en mx))
	(write-line (strcat (rtos (car pt) 2) "," (rtos (cadr pt) 2) "," (rtos (last pt) 2)) file))))
  
  (*error* "end")
)&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;Save it as *.lsp, and see&amp;nbsp;&lt;A href="http://www.lee-mac.com/runlisp.html" target="_self"&gt;HERE&lt;/A&gt;&amp;nbsp;how to run this. In case you do't now already.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 10:59:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/6410238#M272007</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2016-06-29T10:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/6410277#M272008</link>
      <description>&lt;P&gt;Dear Sir/Madam:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for the reply, I 've followed your instruction on that website and tried myself. However, after I typed pldiv2file into the command window, it asked me to select the object. I chose the path, but nothing happens, and the command window still requires me to select an object. I don't know whether I did something wrong. Could you give me some guidance? Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 11:10:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/6410277#M272008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-29T11:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/6410299#M272009</link>
      <description>&lt;P&gt;Assuming you have your file saved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Routine allows you single selection of one of these types of entity:&amp;nbsp;"*POLYLINE,SPLINE,ARC,CIRCLE,LINE"&lt;/P&gt;
&lt;P&gt;Then you specify an interval.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then go to working folder of your current drawing and look for a file with the same name and *.csv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW. Points are always added at the end of the file. You can add one line&amp;nbsp;to separate reports from same file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;(defun c:pldiv2file ( / *error* file aa en int i mx file)

  (defun *error* (errmsg)
    (if (not (wcmatch errmsg "Function cancelled,quit / exit abort,console break,end"))
      (princ (strcat "\nError: " errmsg)))
    (if file (close file))
    (princ))

  (princ "\nRequired single geometrical object, ")
  (while (not (setq ss (ssget "_+.:E:S" '((0 . "*POLYLINE,SPLINE,ARC,CIRCLE,LINE"))))))

  (initget 7)
  (setq int (getdist "\nSet interval: ")
	en (ssname ss 0)
	i 0.
	mx (vlax-curve-getDistAtParam en (vlax-curve-getEndParam en)))


  (if (setq file (open (strcat (getvar 'DWGPREFIX) (vl-string-right-trim ".dwg" (getvar 'DWGNAME)) ".csv") "a"))
    (progn
      &lt;STRONG&gt;(write-line (strcat "---- " (rtos (getvar "CDATE") 2 4)  " ---------------") file)&lt;/STRONG&gt;
      (while (&amp;lt; i mx)
	(if (setq pt (vlax-curve-getPointAtDist en i))
	  (write-line (strcat (rtos (car pt) 2) "," (rtos (cadr pt) 2) "," (rtos (last pt) 2)) file))
	(setq i (+ i int)))
      (if (setq pt (vlax-curve-getPointAtDist en mx))
	(write-line (strcat (rtos (car pt) 2) "," (rtos (cadr pt) 2) "," (rtos (last pt) 2)) file))))
  
  (*error* "end")
)&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 11:24:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/6410299#M272009</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2016-06-29T11:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/6410303#M272010</link>
      <description>Thank you! Now it works! Beautiful &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jun 2016 11:26:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/6410303#M272010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-29T11:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/6410796#M272011</link>
      <description>&lt;P&gt;Hi, I tired to spline, but I stuck at the step to choose the object. However, if I convert the spline to pl, then I can use the code to select the object, define the interval, and output the csv file. Could you let me know where I did wrong for the spline? According to your last reply, it seems the code should also work directly on spline right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 14:52:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/6410796#M272011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-29T14:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/6410859#M272012</link>
      <description>&lt;P&gt;No special requirements for splines - it works for me. Make sure that you're using the latest version - post 4, posting again. My first version was limited for lwpolyline... but I edited the code couple minutes after first version was released (see edit note). If still this does not work for you, post the sample dwg were it's not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;(vl-load-com)

(defun c:pldiv2file ( / *error* file aa en int i mx file)

  (defun *error* (errmsg)
    (if (not (wcmatch errmsg "Function cancelled,quit / exit abort,console break,end"))
      (princ (strcat "\nError: " errmsg)))
    (if file (close file))
    (princ))

  (princ "\nRequired single geometrical object, ")
  (while (not (setq ss (ssget "_+.:E:S" '((0 . "*POLYLINE,SPLINE,ARC,CIRCLE,LINE"))))))

  (initget 7)
  (setq int (getdist "\nSet interval: ")
	en (ssname ss 0)
	i 0.
	mx (vlax-curve-getDistAtParam en (vlax-curve-getEndParam en)))


  (if (setq file (open (strcat (getvar 'DWGPREFIX) (vl-string-right-trim ".dwg" (getvar 'DWGNAME)) ".csv") "a"))
    (progn
      (write-line (strcat "---- " (rtos (getvar "CDATE") 2 4)  " ---------------") file)
      (while (&amp;lt; i mx)
	(if (setq pt (vlax-curve-getPointAtDist en i))
	  (write-line (strcat (rtos (car pt) 2) "," (rtos (cadr pt) 2) "," (rtos (last pt) 2)) file))
	(setq i (+ i int)))
      (if (setq pt (vlax-curve-getPointAtDist en mx))
	(write-line (strcat (rtos (car pt) 2) "," (rtos (cadr pt) 2) "," (rtos (last pt) 2)) file))))
  
  (*error* "end")
)&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;Have fun with MatLab! I hated these couple seminars we had...&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 15:16:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/6410859#M272012</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2016-06-29T15:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8182333#M272013</link>
      <description>&lt;P&gt;Pls. add an "object snap" to end OR write in select object " select object from a end of line"&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 13:05:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8182333#M272013</guid>
      <dc:creator>arshadmirza786</dc:creator>
      <dc:date>2018-08-07T13:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8228914#M272014</link>
      <description>&lt;P&gt;Thank you to #BeekeeCZ for this "pldiv2file.lsp"&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should u pls. add some words for "END POINT OF A SEGMENT OF PLINE" in addition to the distance already specified&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is a geat help I hope you should improve it&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 06:45:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8228914#M272014</guid>
      <dc:creator>arshadmirza786</dc:creator>
      <dc:date>2018-08-28T06:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8229241#M272015</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2891"&gt;@arshadmirza786&lt;/a&gt;, sorry I don't understand what you need.&lt;/P&gt;
&lt;P&gt;Would give me some example of txt outcome? thx.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 09:49:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8229241#M272015</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2018-08-28T09:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8229463#M272016</link>
      <description>&lt;P&gt;I hope attached dwg file will explain what I says&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 11:25:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8229463#M272016</guid>
      <dc:creator>arshadmirza786</dc:creator>
      <dc:date>2018-08-28T11:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8229677#M272017</link>
      <description>&lt;P&gt;Still one question, meaning of your 1st point.&lt;/P&gt;
&lt;P&gt;Does it mean that the calculation should start from the end which is closer to the point where the selection was made?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 12:54:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8229677#M272017</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2018-08-28T12:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8229694#M272018</link>
      <description>&lt;P&gt;sorry,&amp;nbsp;&lt;STRONG&gt;START POINT&lt;/STRONG&gt; (one side end/ start point of object) not from I click the object,&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per my observation it start from where I click the object&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 12:59:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8229694#M272018</guid>
      <dc:creator>arshadmirza786</dc:creator>
      <dc:date>2018-08-28T12:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8231865#M272019</link>
      <description>&lt;P&gt;Well, it's little complicated now... hope I understood you well.&lt;/P&gt;
&lt;P&gt;I've added a default value for an interval, you can change it to by your preference, red.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)

(defun c:pldiv+2file ( / *error* file ss en obj pt dst par file)
  
  (defun *error* (errmsg)
    (if (not (wcmatch errmsg "Function cancelled,quit / exit abort,console break,end"))
      (princ (strcat "\nError: " errmsg)))
    (if file (close file))
    (if obj (vla-delete obj))
    (princ))
  
  (princ "\nRequired single geometrical object, ")
  (if (and (setq ss (ssget "_+.:E:S" '((0 . "*POLYLINE,SPLINE,ARC,CIRCLE,LINE"))))
           (setq en (ssname ss 0))
           (setq pt (cadar (cdddar (ssnamex ss))))
           (setq pt (vlax-curve-getClosestPointTo en pt))
           (setq pt (progn
                      (if (&amp;gt; (vlax-curve-getDistAtParam en (vlax-curve-getParamAtPoint en pt))
                             (/ (vlax-curve-getDistAtParam en (vlax-curve-getEndParam en)) 2))
                        (command "_.REVERSE" (setq en (vlax-vla-object-&amp;gt;ename (setq obj (vla-copy (vlax-ename-&amp;gt;vla-object en))))) ""))
                      (vlax-curve-getStartPoint en)))
           (or *pldiv2file-int*
               (setq *pldiv2file-int* &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;500&lt;/STRONG&gt;&lt;/FONT&gt;))
           (not (initget 6))
           (setq *pldiv2file-int* (cond ((getdist pt (strcat "\nSet interval &amp;lt;" (rtos *pldiv2file-int*)"&amp;gt;: ")))
                                        (*pldiv2file-int*)))
           (setq dst 0.
                 par 0)
           (setq file (open (strcat (getvar 'DWGPREFIX) (vl-string-right-trim ".dwg" (getvar 'DWGNAME)) ".csv") "a"))
           (write-line (strcat "---- " (rtos (getvar "CDATE") 2 4)  " ---------------") file)
           )
    (while (&amp;lt;= par (vlax-curve-getEndParam en))
      (if (setq pt (vlax-curve-getPointAtDist en dst))
        (write-line (strcat (rtos (car pt) 2) "," (rtos (cadr pt) 2) "," (rtos (last pt) 2)) file))
      (cond ((equal par (vlax-curve-getEndParam en))
             (setq par (1+ par)))
            ((or (&amp;gt; (vlax-curve-getParamAtDist en (+ dst *pldiv2file-int*)) (1+ par))
                 (not (vlax-curve-getParamAtDist en (+ dst *pldiv2file-int*))))
             (setq par (1+ par)
                   dst (vlax-curve-getDistAtParam en par)))
            (T
             (setq dst (+ dst *pldiv2file-int*))))))
  (*error* "end")
  )&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Aug 2018 08:24:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8231865#M272019</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2018-08-29T08:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8232028#M272020</link>
      <description>&lt;P&gt;Thank you for this great help&lt;/P&gt;&lt;P&gt;but it has born twin problem&lt;/P&gt;&lt;P&gt;1- The pline length is 7638 ft but in CSV file no body guss and add 250 ft againt each set of coordinate, so the length become 8500ft&lt;/P&gt;&lt;P&gt;Pls add a new column for distance and the specified intervel and end of segment be writen in CSV file&lt;/P&gt;&lt;P&gt;2-&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 09:52:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8232028#M272020</guid>
      <dc:creator>arshadmirza786</dc:creator>
      <dc:date>2018-08-29T09:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8232037#M272021</link>
      <description>&lt;P&gt;2- the end distance of segment be wrriten on dwg for appropriate distance, corelating with dwg location&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 10:03:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8232037#M272021</guid>
      <dc:creator>arshadmirza786</dc:creator>
      <dc:date>2018-08-29T10:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8232337#M272022</link>
      <description>&lt;P&gt;Not sure if I understood you right, so I hope that following code will cover your needs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)

(defun c:pldiv+2file ( / *error* file ss en obj pt dst par lst)
  
  (defun *error* (errmsg)
    (if (not (wcmatch errmsg "Function cancelled,quit / exit abort,console break,end"))
      (princ (strcat "\nError: " errmsg)))
    (if file (close file))
    (if obj (vla-delete obj))
    (princ))
  
  (princ "\nRequired single geometrical object, ")
  (if (and (setq ss (ssget "_+.:E:S" '((0 . "LWPOLYLINE,SPLINE"))))
           (setq en (ssname ss 0))
           (setq pt (cadar (cdddar (ssnamex ss))))
           (setq pt (vlax-curve-getClosestPointTo en pt))
           (setq pt (progn
                      (if (&amp;gt; (vlax-curve-getDistAtParam en (vlax-curve-getParamAtPoint en pt))
                             (/ (vlax-curve-getDistAtParam en (vlax-curve-getEndParam en)) 2))
                        (command "_.REVERSE" (setq en (vlax-vla-object-&amp;gt;ename (setq obj (vla-copy (vlax-ename-&amp;gt;vla-object en))))) ""))
                      (vlax-curve-getStartPoint en)))
           (or *pldiv2file-int*
               (setq *pldiv2file-int* 100))
           (not (initget 6))
           (setq *pldiv2file-int* (cond ((getdist pt (strcat "\nSet interval &amp;lt;" (rtos *pldiv2file-int*)"&amp;gt;: ")))
                                        (*pldiv2file-int*)))
           (setq dst 0.
                 par 0
                 lst '(0.))
           (setq file (open (strcat (getvar 'DWGPREFIX) (vl-string-right-trim ".dwg" (getvar 'DWGNAME)) ".csv") "a"))
           (write-line (strcat "---- " (rtos (getvar "CDATE") 2 4)  " ---------------") file)
           )
    (progn
      (while (&amp;lt;= (setq par (1+ par)) (vlax-curve-getEndParam en))
        (setq lst (cons (vlax-curve-getDistAtParam en par) lst)))
      (while (&amp;lt;= (setq dst (+ dst *pldiv2file-int*)) (vlax-curve-getDistAtParam en (vlax-curve-getEndParam en)))
        (setq lst (cons dst lst)))
      (setq lst (vl-sort lst '&amp;lt;))
      (foreach e lst
        (setq pt (vlax-curve-getPointAtDist en e))
        (write-line (strcat (rtos (car pt)) "," (rtos (cadr pt)) "," (rtos (last pt)) "," (rtos e)) file))))    
  (*error* "end")
  )&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Aug 2018 12:18:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8232337#M272022</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2018-08-29T12:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8232527#M272023</link>
      <description>&lt;P&gt;&lt;SPAN&gt;thank you for spare&amp;nbsp;your time for this huge lisp,&amp;nbsp;&amp;nbsp;if u like pls add this second request too&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2- the end distance of segment be wrriten on dwg for appropriate distance, corelating with dwg location&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 13:20:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8232527#M272023</guid>
      <dc:creator>arshadmirza786</dc:creator>
      <dc:date>2018-08-29T13:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8233034#M272024</link>
      <description>&lt;P&gt;Sorry sir&amp;nbsp;&lt;/P&gt;&lt;P&gt;the new twin are borns&lt;/P&gt;&lt;P&gt;1- the length of 3 lines are different due to inner curve and outer curves and widening of left &amp;amp; right lines in some places&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2- The length of center line should be&amp;nbsp;Governing length&lt;/P&gt;&lt;P&gt;According to both outer line lenght should be adjusted and the distance at widening remain same&lt;/P&gt;&lt;P&gt;I hope you will address these to points&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 15:53:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8233034#M272024</guid>
      <dc:creator>arshadmirza786</dc:creator>
      <dc:date>2018-08-29T15:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: DATAEXTRACTION coordinates sequence question</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8233074#M272025</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2891"&gt;@arshadmirza786&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I did what I could do to help you with your issue, but I am unable to cover all your newly born ones.&lt;/P&gt;
&lt;P&gt;If you feel that you still need some help, feel free to&amp;nbsp;post your question&amp;nbsp;&lt;A href="http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130" target="_blank"&gt;HERE&lt;/A&gt;&amp;nbsp;to customization forums, where are more folks able to help with these kind of issues.&amp;nbsp;Good luck!!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 16:06:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/dataextraction-coordinates-sequence-question/m-p/8233074#M272025</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2018-08-29T16:06:50Z</dc:date>
    </item>
  </channel>
</rss>

