<?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: Draw line from a list of points in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10234238#M61641</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I know solved but why not make the points a pline.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That can be done with the approach in Message 3, by simply adding one letter, changing&amp;nbsp;&lt;SPAN&gt;"_.line" to&amp;nbsp;"_.&lt;FONT color="#000000"&gt;&lt;STRONG&gt;p&lt;/STRONG&gt;&lt;/FONT&gt;line", with the proviso that the current PLINEWID width setting will be used, which could be other than 0 [you might sometimes&amp;nbsp;&lt;EM&gt;want&lt;/EM&gt; it other than 0].&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[The possibility of wanting to &lt;EM&gt;Close&lt;/EM&gt; it can be incorporated, but wasn't because of the nature of the example set of points.]&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2021 12:39:00 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2021-04-13T12:39:00Z</dc:date>
    <item>
      <title>Draw line from a list of points</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10228160#M61626</link>
      <description>&lt;P&gt;Hello how are you.&lt;BR /&gt;I wanted to check, if there is any lambda function, to draw lines from a list of points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I normally do a loop with car and dcr, but I want to know if there is something more direct. And the only thing that occurred to me was with the lambda function, but I didn't know how to do it.&lt;/P&gt;&lt;P&gt;This is what I am using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq lst-pts '((-2495.52 -924.94 0.0)
                (-2397.64 -924.672 0.0)
                (-2297.97 -889.794 0.0)
                (-2200.08 -810.342 0.0)
                (-2108.74 -776.927 0.0)
                (-1997.02 -818.492 0.0)))

(defun draw-line (p1 p2) 
  (entmake 
    (list '(0 . "LINE") 
          '(100 . "AcDbLine")
          (cons 10 p1)
          (cons 11 p2))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying something like that.&lt;/P&gt;&lt;P&gt;Modifying the draw-line function to pass the list of points directly to it.&lt;BR /&gt;And creating another function to apply it, but it didn't work for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun d-line (lst) 
  (foreach pt lst 
    (ent-linea pt)))

(defun draw-line (lst-pts) 
  (entmake 
    (list '(0 . "LINE") 
          '(100 . "AcDbLine")
          (cons 10 (nth 0 lst-pts))
          (cons 11 (nth 1 lst-pts)))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as you can help me, I thank you.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Apr 2021 23:36:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10228160#M61626</guid>
      <dc:creator>carlos_m_gil_p</dc:creator>
      <dc:date>2021-04-10T23:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Draw line from a list of points</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10228173#M61627</link>
      <description>&lt;P&gt;Upon defining a function such as the following to construct a line from two supplied points:&lt;/P&gt;
&lt;PRE style="max-height: 500px; white-space: pre; border: 1px solid #417394; overflow: auto; background: #f2f6f8; color: #222; padding: 5px; margin: 1em 0 1em 0; line-height: 120%;"&gt;(defun drawline ( p q ) (entmake (list '(0 . "LINE") (cons 10 p) (cons 11 q))))&lt;/PRE&gt;
&lt;P&gt;You can evaluate the function with the successive points in your list using a &lt;FONT color="#3366FF"&gt;mapcar&lt;/FONT&gt; expression in the following way:&lt;/P&gt;
&lt;PRE style="max-height: 500px; white-space: pre; border: 1px solid #417394; overflow: auto; background: #f2f6f8; color: #222; padding: 5px; margin: 1em 0 1em 0; line-height: 120%;"&gt;(mapcar 'drawline lst-pts (cdr lst-pts))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Apr 2021 23:51:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10228173#M61627</guid>
      <dc:creator>Lee_Mac</dc:creator>
      <dc:date>2021-04-10T23:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Draw line from a list of points</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10228232#M61628</link>
      <description>&lt;P&gt;At the risk of being scoffed at by those with an irrational fear of the &lt;FONT color="#000000"&gt;(command)&lt;/FONT&gt; function:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;(command "_.line")&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;(foreach pt lst-pts (command "_non" pt))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;(command "")&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 01:12:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10228232#M61628</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-04-11T01:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Draw line from a list of points</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10228429#M61629</link>
      <description>&lt;P&gt;About to go to fishing club have a beer I would have done it that way, same method for plines.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure where the point list came from but if file read-line and do line no need for a list, or if csv open in excel and can copy and paste a column of LINE x1,y1 x2,Y2 then blank line&amp;nbsp; to command line, use concatetnate in excel.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 05:01:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10228429#M61629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-11T05:01:44Z</dc:date>
    </item>
    <item>
      <title>Ynt: Draw line from a list of points</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10228502#M61630</link>
      <description>&lt;LI-CODE lang="csharp"&gt;(setq lst-pts '((-2495.52 -924.94 0.0)
                (-2397.64 -924.672 0.0)
                (-2297.97 -889.794 0.0)
                (-2200.08 -810.342 0.0)
                (-2108.74 -776.927 0.0)
                (-1997.02 -818.492 0.0)))

;; Alan Pizzamando
(mapcar (function (lambda (a b) (entmakex (list '(0 . "LINE") (cons 10 a) (cons 11 b)))))
              lst-pts
              (cdr lst-pts)
      )


&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.JPG" style="width: 931px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/904918iBB4832502561BCA2/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.JPG" alt="3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 06:05:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10228502#M61630</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2021-04-11T06:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Draw line from a list of points</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10229204#M61631</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/569456"&gt;@Lee_Mac&lt;/a&gt;&amp;nbsp;, thank you very much, super compact and functional.&lt;/P&gt;&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6591997"&gt;@hosneyalaa&lt;/a&gt;&amp;nbsp;, very good option too, thank you.&lt;/P&gt;&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;, if you knew about this option, but wanted to avoid the commands, due to errors. Thanks.&lt;/P&gt;&lt;P&gt;Hello @Anonymous&amp;nbsp;, I find it very laborious to do that, but for the future it can be used for other things. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much as always to all of you for your teachings.&lt;/P&gt;&lt;P&gt;Greetings.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 15:48:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10229204#M61631</guid>
      <dc:creator>carlos_m_gil_p</dc:creator>
      <dc:date>2021-04-11T15:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Draw line from a list of points</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10229794#M61632</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2573929"&gt;@carlos_m_gil_p&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;, if you knew about this option, but wanted to avoid the commands, due to errors. ...&lt;SPAN style="font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;[What errors?&amp;nbsp; You may have fallen for the irrational-fear brainwashing.&amp;nbsp; I use (command) functions all over the place in lots of routines, and they never result in errors.]&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 22:51:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10229794#M61632</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-04-11T22:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Draw line from a list of points</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10229846#M61633</link>
      <description>&lt;P&gt;I'm not sure that I follow the 'brainwashing' and 'irrational fear' sentiments, but performance considerations and control over object properties aside, command calls certainly have their place in scenarios where it makes sense to leverage AutoCAD functionality; personally I generally try to avoid dependence on commands where possible, mainly due to the possibility of the command prompts changing with each AutoCAD release.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 23:51:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10229846#M61633</guid>
      <dc:creator>Lee_Mac</dc:creator>
      <dc:date>2021-04-11T23:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Draw line from a list of points</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10230018#M61634</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/569456"&gt;@Lee_Mac&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;.... , command calls certainly have their place in scenarios where it makes sense to leverage AutoCAD functionality; personally I generally try to avoid dependence on commands where possible, mainly due to the possibility of the command prompts changing with each AutoCAD release.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Agreed.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":clinking_beer_mugs:"&gt;🍻&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 02:24:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10230018#M61634</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2021-04-12T02:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Draw line from a list of points</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10230451#M61635</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2573929"&gt;@carlos_m_gil_p&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun d-line (lst) 
  (foreach pt lst 
    (ent-linea pt)))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;As for your sub-function&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun d-line (lst / p)
  (foreach pt lst-pts
    (if	p
      (draw-line p pt)
    )
    (setq p pt)
  )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;HTH&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 07:22:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10230451#M61635</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-04-12T07:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Draw line from a list of points</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10231303#M61636</link>
      <description>&lt;P&gt;Another:&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(setq lst-pts '((-2495.52 -924.94 0.0)
		(-2397.64 -924.672 0.0)
		(-2297.97 -889.794 0.0)
		(-2200.08 -810.342 0.0)
		(-2108.74 -776.927 0.0)
		(-1997.02 -818.492 0.0)
	       )
)

(while (cadr lst-pts)
  (entmakex (list '(0 . "LINE") (cons 10 (car lst-pts)) (cons 11 (cadr lst-pts))))
  (setq lst-pts (cdr lst-pts))
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 12 Apr 2021 13:29:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10231303#M61636</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2021-04-12T13:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Draw line from a list of points</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10231836#M61637</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;, the issue is that sometimes I get a command or command-s prompt, that's why I avoid using it.&lt;/P&gt;&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/564264"&gt;@pbejse&lt;/a&gt;&amp;nbsp;and &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593837"&gt;@ronjonp&lt;/a&gt;&amp;nbsp;, thank you for your new options.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 16:11:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10231836#M61637</guid>
      <dc:creator>carlos_m_gil_p</dc:creator>
      <dc:date>2021-04-12T16:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Draw line from a list of points</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10231897#M61638</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2573929"&gt;@carlos_m_gil_p&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;, the issue is that sometimes I get a command or command-s prompt, that's why I avoid using it.&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you're talking about the error suggestion to change (command) functions to (command-s), that happens &lt;EM&gt;only if you use a (command) function &lt;STRONG&gt;inside an *error* handler&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;[without taking another step that the message describes], &lt;EM&gt;and&lt;/EM&gt; only if the *error* handler &lt;STRONG&gt;&lt;EM&gt;is triggered&lt;/EM&gt;&lt;/STRONG&gt; [whether by an actual error happening or by cancelling with the ESCape key], &lt;EM&gt;and&lt;/EM&gt; only in versions newer than I think Acad2015.&amp;nbsp; An error that triggers the *error* handler [and therefore that suggestion] could be caused by something incorrect in the &lt;EM&gt;inputs to&lt;/EM&gt; a (command) function in the code, or by myriad other possible problems, but never by the mere fact that the (command) function is what was used to do something.&amp;nbsp; So change those instances inside *error* handlers, as the message suggests.&amp;nbsp; That's one of the limited situations where (command) should be avoided, but is &lt;EM&gt;not&lt;/EM&gt; a reason to avoid it elsewhere.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 16:33:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10231897#M61638</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-04-12T16:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Draw line from a list of points</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10232228#M61639</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;, thanks for your explanation and help, I will keep it in mind from now on.&lt;BR /&gt;Greetings.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 18:43:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10232228#M61639</guid>
      <dc:creator>carlos_m_gil_p</dc:creator>
      <dc:date>2021-04-12T18:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Draw line from a list of points</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10233285#M61640</link>
      <description>&lt;P&gt;I know solved but why not make the points a pline.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(defun LWPoly (lst cls)
 (entmakex (append (list (cons 0 "LWPOLYLINE")
                         (cons 100 "AcDbEntity")
                         (cons 100 "AcDbPolyline")
                         (cons 90 (length lst))
                         (cons 70 cls))
                   (mapcar (function (lambda (p) (cons 10 p))) lst))))

(lwpoly lst-pts 0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 05:21:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10233285#M61640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-13T05:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Draw line from a list of points</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10234238#M61641</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I know solved but why not make the points a pline.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That can be done with the approach in Message 3, by simply adding one letter, changing&amp;nbsp;&lt;SPAN&gt;"_.line" to&amp;nbsp;"_.&lt;FONT color="#000000"&gt;&lt;STRONG&gt;p&lt;/STRONG&gt;&lt;/FONT&gt;line", with the proviso that the current PLINEWID width setting will be used, which could be other than 0 [you might sometimes&amp;nbsp;&lt;EM&gt;want&lt;/EM&gt; it other than 0].&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[The possibility of wanting to &lt;EM&gt;Close&lt;/EM&gt; it can be incorporated, but wasn't because of the nature of the example set of points.]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 12:39:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10234238#M61641</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-04-13T12:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Draw line from a list of points</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10236279#M61642</link>
      <description>&lt;P&gt;Good pickup (setvar 'plinewid 0.0) before making pline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting Bicscad ver 20&amp;nbsp;&lt;/P&gt;&lt;P&gt;Start of polyline:&lt;/P&gt;&lt;P&gt;Unable to recognize command "NON". This error can occur when the command is not supported for the active license.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(setq lst-pts '((-2495.52 -924.94 0.0)
		(-2397.64 -924.672 0.0)
		(-2297.97 -889.794 0.0)
		(-2200.08 -810.342 0.0)
		(-2108.74 -776.927 0.0)
		(-1997.02 -818.492 0.0)
	       )
)
(setvar 'plinewid 0.0)
(setvar 'osmode 0)
(command "_.pline")
(foreach pt lst-pts (command  pt))
(command "")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was why I used the other method I have found some problems in Bricscad making Plines using various methods.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 03:13:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-line-from-a-list-of-points/m-p/10236279#M61642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-14T03:13:24Z</dc:date>
    </item>
  </channel>
</rss>

