<?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: 3d polyline vertices in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/3d-polyline-vertices/m-p/1927068#M148770</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Here're two ways.&lt;BR /&gt;
&lt;BR /&gt;
Using DXF codes vertices are sub entities of the 3dpoly, have to use (entnext ...)&lt;BR /&gt;
&lt;BR /&gt;
(setq poly (car (entsel)))&lt;BR /&gt;
(setq vtx (entnext poly))&lt;BR /&gt;
(while (/= (cdr (assoc 0 (setq elst (entget vtx)))) "SEQEND")&lt;BR /&gt;
  (setq lst (cons (cdr (assoc 10 elst)) lst)&lt;BR /&gt;
	vtx (entnext vtx)&lt;BR /&gt;
	)&lt;BR /&gt;
  )&lt;BR /&gt;
(reverse lst)&lt;BR /&gt;
&lt;BR /&gt;
Another way using VisualLISP&lt;BR /&gt;
&lt;BR /&gt;
(vl-load-com)&lt;BR /&gt;
&lt;BR /&gt;
;; Split a flat list into a points list&lt;BR /&gt;
(defun 3d-coord-&amp;gt;pt-lst	(lst)&lt;BR /&gt;
  (if lst&lt;BR /&gt;
    (cons (list (car lst) (cadr lst) (caddr lst))&lt;BR /&gt;
	  (3d-coord-&amp;gt;pt-lst (cdddr lst))&lt;BR /&gt;
    )&lt;BR /&gt;
  )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
(setq poly (car (entsel)))&lt;BR /&gt;
(setq lst (3d-coord-&amp;gt;pt-lst (vlax-get (vlax-ename-&amp;gt;vla-object poly) 'Coordinates)))</description>
    <pubDate>Wed, 28 Mar 2007 20:38:25 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2007-03-28T20:38:25Z</dc:date>
    <item>
      <title>3d polyline vertices</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/3d-polyline-vertices/m-p/1927067#M148769</link>
      <description>I would like to obtain all of the vertices on a given 3DPolyline. I can get to the point where I have a list with the (100 . "AcDb3dPolyline") , but do not know where or what to do after that point.&lt;BR /&gt;
&lt;BR /&gt;
Can someone give me a little push to let me know where i may find this information from?&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Wed, 28 Mar 2007 20:12:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/3d-polyline-vertices/m-p/1927067#M148769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-28T20:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: 3d polyline vertices</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/3d-polyline-vertices/m-p/1927068#M148770</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Here're two ways.&lt;BR /&gt;
&lt;BR /&gt;
Using DXF codes vertices are sub entities of the 3dpoly, have to use (entnext ...)&lt;BR /&gt;
&lt;BR /&gt;
(setq poly (car (entsel)))&lt;BR /&gt;
(setq vtx (entnext poly))&lt;BR /&gt;
(while (/= (cdr (assoc 0 (setq elst (entget vtx)))) "SEQEND")&lt;BR /&gt;
  (setq lst (cons (cdr (assoc 10 elst)) lst)&lt;BR /&gt;
	vtx (entnext vtx)&lt;BR /&gt;
	)&lt;BR /&gt;
  )&lt;BR /&gt;
(reverse lst)&lt;BR /&gt;
&lt;BR /&gt;
Another way using VisualLISP&lt;BR /&gt;
&lt;BR /&gt;
(vl-load-com)&lt;BR /&gt;
&lt;BR /&gt;
;; Split a flat list into a points list&lt;BR /&gt;
(defun 3d-coord-&amp;gt;pt-lst	(lst)&lt;BR /&gt;
  (if lst&lt;BR /&gt;
    (cons (list (car lst) (cadr lst) (caddr lst))&lt;BR /&gt;
	  (3d-coord-&amp;gt;pt-lst (cdddr lst))&lt;BR /&gt;
    )&lt;BR /&gt;
  )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
(setq poly (car (entsel)))&lt;BR /&gt;
(setq lst (3d-coord-&amp;gt;pt-lst (vlax-get (vlax-ename-&amp;gt;vla-object poly) 'Coordinates)))</description>
      <pubDate>Wed, 28 Mar 2007 20:38:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/3d-polyline-vertices/m-p/1927068#M148770</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2007-03-28T20:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: 3d polyline vertices</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/3d-polyline-vertices/m-p/1927069#M148771</link>
      <description>Thanks gile!!&lt;BR /&gt;
&lt;BR /&gt;
I appreciate your help and time...Its been a while for me writing some lisp...&lt;BR /&gt;
&lt;BR /&gt;
Thanks again!</description>
      <pubDate>Sat, 31 Mar 2007 18:33:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/3d-polyline-vertices/m-p/1927069#M148771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-31T18:33:15Z</dc:date>
    </item>
  </channel>
</rss>

