<?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: ADD VERTICE TO POLYLINE in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8578396#M93042</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp; I see&amp;nbsp;several problems with that code ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Quickly:&lt;/P&gt;
&lt;PRE&gt;(defun c:VERTEX (/ SS1 SS2 ang ctr)
  (setq
    ctr -1
    SS1 (ssget '((0 . "LWPOLYLINE" "LINE" "ARC") (-4 . "&amp;amp;") (70 . 1)))
      &lt;FONT color="#ff0000"&gt;;;;;; Not separate entity types -- put together with comma separators,
      ;;;;;   i.e. "LWPOLYLINE,LINE,ARC".
      ;;;;; Lines/Arcs have no 70 entry in entity data, so none will be seen;
      ;;;;;   that will see only &lt;EM&gt;closed&lt;/EM&gt; LWPolylines.&lt;/FONT&gt;
    SS2 (ssadd)
    ang (getreal "\n SELECT POLYLINE:")
      &lt;FONT color="#ff0000"&gt;;;;;; Never used, and selecting an object is not appropriate for (getreal),
      ;;;;;   and 'ang' is an odd variable name for either a real number or a
      ;;;;;   Polyline entity.  What is it meant to be for?
&lt;/FONT&gt;  ) &lt;FONT color="#ff0000"&gt;;;;;; [moved]&lt;/FONT&gt;
  (repeat (sslength SS1)
    (command ".chprop" "p" "" "la" "POINT" "LT" "BYLAYER" "C" "RED" "")
      &lt;FONT color="#ff0000"&gt;;;;;; This will change the Polyline(s) [and/or Line(s)/Arc(s) if corrected];
      ;;;;;   is it meant to be setting up a &lt;EM&gt;Layer&lt;/EM&gt; for Points?&lt;/FONT&gt;
  ) &lt;FONT color="#ff0000"&gt;;;;;; This [moved here] &lt;EM&gt;ends&lt;/EM&gt; (repeat), so below will happen only once.&lt;/FONT&gt;
  (command "._POINT" (ssname SS1 (setq ctr (1+ ctr))) ""_ptype "_t" "0.2")
    &lt;FONT color="#ff0000"&gt;;;;;; An entity name is not appropriate input for a Point command.
    ;;;;; Even if _ptype had quotes around it instead of both before it,
    ;;;;;   what is the "_t" about?
&lt;/FONT&gt;  (setq SS2 (ssadd (entlast) SS2)))
    &lt;FONT color="#ff0000"&gt;;;;;; Extra ) at end; otherwise OK, but can be simply (ssadd (entlast) SS2),
    ;;;;;   without (setq) around it -- (ssadd) returns the set with the addition.&lt;/FONT&gt;
  (command "._union" SS2 "")
    &lt;FONT color="#ff0000"&gt;;;;;; Union is for 3D Solids/Surfaces/Regions, not Point entities. What is the intent?&lt;/FONT&gt;
)&lt;/PRE&gt;
&lt;P&gt;For the Point appearance, you can skip the PTYPE command and just use&amp;nbsp; &lt;STRONG&gt;&lt;FONT color="#000000"&gt;(setvar 'pdmode 35)&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp; or whatever number gives you the look you prefer.&amp;nbsp; But that's not the only problem -- see above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are the "vertices" of a Line or Arc?&amp;nbsp; Both ends?&amp;nbsp; Also the midpoint, since a grip appears there when it's selected?&amp;nbsp; Maybe also the center of an Arc?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[And by the way, the singular of "vertices" is "vert&lt;EM&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;ex&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/EM&gt;."]&lt;/P&gt;</description>
    <pubDate>Wed, 06 Feb 2019 22:07:17 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2019-02-06T22:07:17Z</dc:date>
    <item>
      <title>ADD VERTICE TO POLYLINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8578023#M93039</link>
      <description>&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;ADD POINT IN ALL VERTICE POLYLINE/LINE/ARC WHICH COMMND POINT&lt;BR /&gt;(DEFUN C:VV () (C:VERTEX))&lt;BR /&gt;;============================================================&lt;BR /&gt;(defun c:VERTEX (/ SS1 SS2 ang ctr)&lt;BR /&gt;&amp;nbsp;(setq ctr -1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SS1 (ssget '((0 . "LWPOLYLINE" &lt;FONT style="background-color: #ffffff; box-sizing: border-box; color: #666666; font-family: &amp;amp;quot; artifakt&amp;amp;quot;,tahoma,helvetica,arial,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;"LINE"&lt;/FONT&gt; &lt;FONT style="background-color: #ffffff; box-sizing: border-box; color: #666666; font-family: &amp;amp;quot; artifakt&amp;amp;quot;,tahoma,helvetica,arial,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;"ARC"&lt;/FONT&gt;) (-4 . "&amp;amp;") (70 . 1)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SS2 (ssadd)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ang (getreal "\n SELECT POLYLINE:"))&lt;BR /&gt;&amp;nbsp;(repeat (sslength SS1)&lt;BR /&gt;&amp;nbsp;(command ".chprop" "p" "" "la" "POINT" "LT" "BYLAYER" "C" "RED" ""))&lt;BR /&gt;&amp;nbsp; (command "._POINT" (ssname SS1 (setq ctr (1+ ctr))) ""_ptype "_t" "0.2")&lt;BR /&gt;&amp;nbsp; (setq SS2 (ssadd (entlast) SS2)))&lt;BR /&gt;&amp;nbsp;(command "._union" SS2 "")&lt;BR /&gt;)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 19:34:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8578023#M93039</guid>
      <dc:creator>rolisonfelipe</dc:creator>
      <dc:date>2019-02-06T19:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: ADD VERTICE TO POLYLINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8578317#M93040</link>
      <description>&lt;P&gt;Is there a question?&amp;nbsp; I see&amp;nbsp;several problems with that code, but I'm not sure what you're asking, or even exactly what the code is intended to do.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 21:22:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8578317#M93040</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2019-02-06T21:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: ADD VERTICE TO POLYLINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8578360#M93041</link>
      <description>&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;Hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;,&lt;BR /&gt;This lisp serves to ADD points in vertices of objects such as line, Arch and polylines, &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;but I can not load the style of dots to choose the point and configuration of the point size that will stay in the drawing.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 21:45:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8578360#M93041</guid>
      <dc:creator>rolisonfelipe</dc:creator>
      <dc:date>2019-02-06T21:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: ADD VERTICE TO POLYLINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8578396#M93042</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp; I see&amp;nbsp;several problems with that code ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Quickly:&lt;/P&gt;
&lt;PRE&gt;(defun c:VERTEX (/ SS1 SS2 ang ctr)
  (setq
    ctr -1
    SS1 (ssget '((0 . "LWPOLYLINE" "LINE" "ARC") (-4 . "&amp;amp;") (70 . 1)))
      &lt;FONT color="#ff0000"&gt;;;;;; Not separate entity types -- put together with comma separators,
      ;;;;;   i.e. "LWPOLYLINE,LINE,ARC".
      ;;;;; Lines/Arcs have no 70 entry in entity data, so none will be seen;
      ;;;;;   that will see only &lt;EM&gt;closed&lt;/EM&gt; LWPolylines.&lt;/FONT&gt;
    SS2 (ssadd)
    ang (getreal "\n SELECT POLYLINE:")
      &lt;FONT color="#ff0000"&gt;;;;;; Never used, and selecting an object is not appropriate for (getreal),
      ;;;;;   and 'ang' is an odd variable name for either a real number or a
      ;;;;;   Polyline entity.  What is it meant to be for?
&lt;/FONT&gt;  ) &lt;FONT color="#ff0000"&gt;;;;;; [moved]&lt;/FONT&gt;
  (repeat (sslength SS1)
    (command ".chprop" "p" "" "la" "POINT" "LT" "BYLAYER" "C" "RED" "")
      &lt;FONT color="#ff0000"&gt;;;;;; This will change the Polyline(s) [and/or Line(s)/Arc(s) if corrected];
      ;;;;;   is it meant to be setting up a &lt;EM&gt;Layer&lt;/EM&gt; for Points?&lt;/FONT&gt;
  ) &lt;FONT color="#ff0000"&gt;;;;;; This [moved here] &lt;EM&gt;ends&lt;/EM&gt; (repeat), so below will happen only once.&lt;/FONT&gt;
  (command "._POINT" (ssname SS1 (setq ctr (1+ ctr))) ""_ptype "_t" "0.2")
    &lt;FONT color="#ff0000"&gt;;;;;; An entity name is not appropriate input for a Point command.
    ;;;;; Even if _ptype had quotes around it instead of both before it,
    ;;;;;   what is the "_t" about?
&lt;/FONT&gt;  (setq SS2 (ssadd (entlast) SS2)))
    &lt;FONT color="#ff0000"&gt;;;;;; Extra ) at end; otherwise OK, but can be simply (ssadd (entlast) SS2),
    ;;;;;   without (setq) around it -- (ssadd) returns the set with the addition.&lt;/FONT&gt;
  (command "._union" SS2 "")
    &lt;FONT color="#ff0000"&gt;;;;;; Union is for 3D Solids/Surfaces/Regions, not Point entities. What is the intent?&lt;/FONT&gt;
)&lt;/PRE&gt;
&lt;P&gt;For the Point appearance, you can skip the PTYPE command and just use&amp;nbsp; &lt;STRONG&gt;&lt;FONT color="#000000"&gt;(setvar 'pdmode 35)&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp; or whatever number gives you the look you prefer.&amp;nbsp; But that's not the only problem -- see above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are the "vertices" of a Line or Arc?&amp;nbsp; Both ends?&amp;nbsp; Also the midpoint, since a grip appears there when it's selected?&amp;nbsp; Maybe also the center of an Arc?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[And by the way, the singular of "vertices" is "vert&lt;EM&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;ex&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/EM&gt;."]&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 22:07:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8578396#M93042</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2019-02-06T22:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: ADD VERTICE TO POLYLINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8578466#M93043</link>
      <description>&lt;DIV&gt;&lt;FONT color="#ff0000" style="background-color: #ffffff;"&gt;;The vertices in the plural refers to the set of objects (arc, line, polyline),&lt;BR /&gt;;the demarção of them will be made in the junctions,. Endpoint.... &lt;BR /&gt;;independent if they are connected as polyline, or if it is a disconnected object free arc or line &lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#ff0000" style="background-color: #ffffff;"&gt;;I found a better lsp to be edited, and add some elements that wanted, but it is limited to polylines&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;(DEFUN C:VV () (C:VERTEX))&lt;BR /&gt;;============================================================&lt;BR /&gt;(defun C:VERTEX (/&amp;nbsp;&amp;nbsp; AERR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AOSMD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADECH&amp;nbsp;SGPOLY&lt;BR /&gt;&amp;nbsp;&amp;nbsp;NUMOBJ&amp;nbsp;&amp;nbsp; NAMENT&amp;nbsp;&amp;nbsp;&amp;nbsp; ENTGT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIPENT&amp;nbsp;ENPOLYA&lt;BR /&gt;&amp;nbsp;&amp;nbsp;TSEXTRA&amp;nbsp;&amp;nbsp; SSLENP&amp;nbsp;&amp;nbsp;&amp;nbsp; VALPOLY&amp;nbsp;&amp;nbsp; FIRSTEL&amp;nbsp;PTZVERT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;PTVERTICE ENPOLYB&amp;nbsp;&amp;nbsp; VERTIC&amp;nbsp;&amp;nbsp;&amp;nbsp; TESSPL&amp;nbsp;TSEXTRB&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ENVERTB&amp;nbsp;&amp;nbsp; TSVCONT&amp;nbsp;&amp;nbsp; PTVERTICE TEMPA&amp;nbsp;VERTIC&lt;BR /&gt;&amp;nbsp;&amp;nbsp;TESTVER&amp;nbsp;&amp;nbsp; VERTIC&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp; (command "_.undo" "begin")&lt;BR /&gt;&amp;nbsp; (setq AERR *error*)&lt;BR /&gt;&amp;nbsp; (setq&amp;nbsp;AOSMD (getvar "osmode")&lt;BR /&gt;&amp;nbsp;ADECH (getvar "cmdecho")&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp; (setvar "cmdecho" 0)&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp; (command "layer" "m" "POINT" "lt" "continuous" "" "c" "1" "" "") &amp;nbsp; &amp;nbsp; ;;;;;;layer control&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp; (command "_.ptype")&amp;nbsp; ;;;;;;point control&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp; (princ "\n»» Select a Polyline(s):\n")&lt;BR /&gt;&amp;nbsp; (setq SGPOLY (ssget))&lt;BR /&gt;&amp;nbsp; (if SGPOLY&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (progn (setq NUMOBJ (sslength SGPOLY))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (while (&amp;gt; NUMOBJ 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq NAMENT (ssname SGPOLY (setq NUMOBJ (1- NUMOBJ)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENTGT&amp;nbsp; (entget NAMENT)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIPENT (cdr (assoc 0 ENTGT))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if (equal TIPENT "&lt;FONT color="#ff0000"&gt;LWPOLYLINE&lt;/FONT&gt;") ;;;&amp;nbsp; &lt;FONT color="#ff0000"&gt;job only polyline, i need work wich&amp;nbsp;&lt;FONT style="background-color: #ffffff; box-sizing: border-box; color: #666666; font-family: &amp;amp;quot; artifakt&amp;amp;quot;,tahoma,helvetica,arial,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; "&lt;FONT style="box-sizing: border-box;"&gt;LWPOLYLINE&lt;/FONT&gt;"&amp;nbsp;&lt;FONT style="box-sizing: border-box;"&gt;&lt;FONT style="background-color: #ffffff; box-sizing: border-box; color: #666666; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;"&lt;FONT style="box-sizing: border-box;"&gt;LINE&lt;/FONT&gt;" &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT style="box-sizing: border-box;"&gt;&lt;FONT style="background-color: #ffffff; box-sizing: border-box; color: #666666; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;"ARC"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (DFLWPOLY)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if (equal TIPENT "POLYLINE")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (DFPOLY)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ "\n»» Nenhuma entidade seleccionada!\n")&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp; (command "_.undo" "end")&lt;BR /&gt;)&lt;BR /&gt;;;; ;;; ;;;&lt;BR /&gt;(defun DFLWPOLY&amp;nbsp;()&lt;BR /&gt;&amp;nbsp; (setq&amp;nbsp;ENPOLYA&amp;nbsp;(entget NAMENT)&lt;BR /&gt;&amp;nbsp;TSEXTRA&amp;nbsp;(car (cdr (assoc 210 ENPOLYA)))&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp; (if (= TSEXTRA 0.0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (progn (setvar "osmode" 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq SSLENP (length ENPOLYA))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (while (&amp;gt; SSLENP 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq SSLENP&amp;nbsp; (1- SSLENP)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALPOLY (nth SSLENP ENPOLYA)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIRSTEL (car VALPOLY)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PTZVERT (cdr (assoc 38 ENPOLYA))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if (= FIRSTEL 10)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (progn (setq PTVERTICE (list (nth 1 VALPOLY)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (nth 2 VALPOLY)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (cdr (assoc 38 ENPOLYA))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.point" PTVERTICE)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setvar "osmode" AOSMD)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt;)&lt;BR /&gt;;;;;&lt;BR /&gt;;;;;&lt;BR /&gt;(defun DFPOLY ()&lt;BR /&gt;&amp;nbsp; (setq&amp;nbsp;ENPOLYB&amp;nbsp;(entget NAMENT)&lt;BR /&gt;&amp;nbsp;VERTIC&amp;nbsp;(entnext NAMENT)&lt;BR /&gt;&amp;nbsp;TESSPL&amp;nbsp;(cdr (assoc 70 ENPOLYB))&lt;BR /&gt;&amp;nbsp;TSEXTRB&amp;nbsp;(car (cdr (assoc 210 ENPOLYB)))&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp; (if (= TSEXTRB 0.0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (progn (setvar "osmode" 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (while VERTIC&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq ENVERTB (entget VERTIC)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TSVCONT (cdr (assoc 70 ENVERTB))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if (/= TSVCONT 16)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (progn (setq PTVERTICE (cdr (assoc 10 ENVERTB)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.point" PTVERTICE)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq TEMPA&amp;nbsp;&amp;nbsp; VERTIC&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VERTIC&amp;nbsp; (entnext TEMPA)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TESTVER (cdr (assoc 0 ENVERTB))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if (/= TESTVER "VERTEX")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq VERTIC nil)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setvar "osmode" AOSMD)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt;)&lt;BR /&gt;;;;;&lt;BR /&gt;;;;;&lt;BR /&gt;(defun *error* (msg)&lt;BR /&gt;&amp;nbsp; (setq *error* AERR)&lt;BR /&gt;&amp;nbsp; (setvar "cmdecho" ADECH)&lt;BR /&gt;&amp;nbsp; (setvar "osmode" AOSMD)&lt;BR /&gt;&amp;nbsp; (command "_.undo" "end")&lt;BR /&gt;&amp;nbsp; (princ (strcat "»» Aplicação interrompida com erro: " msg))&lt;BR /&gt;)&lt;BR /&gt;;;; ;;; ;;;&amp;nbsp; &lt;BR /&gt;(terpri)&lt;BR /&gt;(princ "\n»» start VV \n")&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Feb 2019 22:38:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8578466#M93043</guid>
      <dc:creator>rolisonfelipe</dc:creator>
      <dc:date>2019-02-06T22:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: ADD VERTICE TO POLYLINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8579174#M93044</link>
      <description>&lt;P&gt;Try this..... (Only few addition)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(DEFUN C:VV () (C:VERTEX))
;============================================================
(defun C:VERTEX (/   AERR     AOSMD     ADECH SGPOLY
  NUMOBJ   NAMENT    ENTGT     TIPENT ENPOLYA
  TSEXTRA   SSLENP    VALPOLY   FIRSTEL PTZVERT
  PTVERTICE ENPOLYB   VERTIC    TESSPL TSEXTRB
  ENVERTB   TSVCONT   PTVERTICE TEMPA VERTIC
  TESTVER   VERTIC
        )
  (command "_.undo" "begin")
  (setq AERR *error*)
  (setq AOSMD (getvar "osmode")
        ADECH (getvar "cmdecho")
  )
  (setvar "cmdecho" 0)
  (command "layer" "m" "POINT" "lt" "continuous" "" "c" "1" "" "");;;;;;layer control
  (command "_.ptype");;;;;;point control
  (princ "\n»» Select a Polyline(s):\n")
  (setq SGPOLY (ssget))
  (if SGPOLY
    (progn (setq NUMOBJ (sslength SGPOLY))
    (while (&amp;gt; NUMOBJ 0)
      (setq NAMENT (ssname SGPOLY (setq NUMOBJ (1- NUMOBJ)))
            ENTGT  (entget NAMENT)
            TIPENT (cdr (assoc 0 ENTGT))
      )
      (if (equal TIPENT "LWPOLYLINE");;;  job only polyline, i need work wich  "LWPOLYLINE" "LINE" "ARC"
        (DFLWPOLY)
      )
      (if (equal TIPENT "POLYLINE")
        (DFPOLY)
      )
      &lt;FONT color="#0000FF"&gt;(if (or (equal TIPENT "LINE") (equal TIPENT "ARC"))
        (DFLINE)
      )&lt;/FONT&gt;
    )
    )
    (princ "\n»» Nenhuma entidade seleccionada!\n")
  )
  (command "_.undo" "end")
)
(defun DFLWPOLY ()
  (setq ENPOLYA (entget NAMENT)
        TSEXTRA (car (cdr (assoc 210 ENPOLYA)))
  )
  (if (= TSEXTRA 0.0)
    (progn (setvar "osmode" 0)
    (setq SSLENP (length ENPOLYA))
    (while (&amp;gt; SSLENP 0)
      (setq SSLENP  (1- SSLENP)
     	    VALPOLY (nth SSLENP ENPOLYA)
            FIRSTEL (car VALPOLY)
            PTZVERT (cdr (assoc 38 ENPOLYA))
      )
      (if (= FIRSTEL 10)
        (progn (setq PTVERTICE (list (nth 1 VALPOLY) (nth 2 VALPOLY) (cdr (assoc 38 ENPOLYA))))
               (command "_.point" PTVERTICE)
        )
      )
    )
    (setvar "osmode" AOSMD)
    )
  )
)
(defun DFPOLY ()
  (setq ENPOLYB (entget NAMENT)
 VERTIC (entnext NAMENT)
 TESSPL (cdr (assoc 70 ENPOLYB))
 TSEXTRB (car (cdr (assoc 210 ENPOLYB)))
  )
  (if (= TSEXTRB 0.0)
    (progn (setvar "osmode" 0)
    (while VERTIC
      (setq ENVERTB (entget VERTIC)
     TSVCONT (cdr (assoc 70 ENVERTB))
      )
      (if (/= TSVCONT 16)
        (progn (setq PTVERTICE (cdr (assoc 10 ENVERTB)))
        (command "_.point" PTVERTICE)
        )
      )
      (setq TEMPA   VERTIC
     VERTIC  (entnext TEMPA)
     TESTVER (cdr (assoc 0 ENVERTB))
      )
      (if (/= TESTVER "VERTEX")
        (setq VERTIC nil)
      )
    )
    (setvar "osmode" AOSMD)
    )
  )
)
&lt;FONT color="#0000FF"&gt;(defun DFLINE ()
   (setvar "osmode" 0)
   (command "_.point" (vlax-curve-getStartPoint NAMENT))
   (command "_.point" (vlax-curve-getEndPoint NAMENT))
   (setvar "osmode" 1)
)&lt;/FONT&gt;
(defun *error* (msg)
  (setq *error* AERR)
  (setvar "cmdecho" ADECH)
  (setvar "osmode" AOSMD)
  (command "_.undo" "end")
  (princ (strcat "»» Aplicação interrompida com erro: " msg))
)
(terpri)
(princ "\n»» start VV \n")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 09:10:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8579174#M93044</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2019-02-07T09:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: ADD VERTICE TO POLYLINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8579205#M93045</link>
      <description>&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5869979"&gt;@dbhunia&lt;/a&gt;, very good, hit the first.&lt;BR /&gt;Thank you very much for your help.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 09:25:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8579205#M93045</guid>
      <dc:creator>rolisonfelipe</dc:creator>
      <dc:date>2019-02-07T09:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: ADD VERTICE TO POLYLINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8579294#M93046</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4592867"&gt;@rolisonfelipe&lt;/a&gt;&amp;nbsp; Its my mistake, change the Red line......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;............
(defun DFLINE ()
   (setvar "osmode" 0)
   (command "_.point" (vlax-curve-getStartPoint NAMENT))
   (command "_.point" (vlax-curve-getEndPoint NAMENT))
   &lt;FONT color="#FF0000"&gt;(setvar "osmode" AOSMD)&lt;/FONT&gt;
)
............&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Feb 2019 10:07:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8579294#M93046</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2019-02-07T10:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: ADD VERTICE TO POLYLINE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8579590#M93047</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4592867"&gt;@rolisonfelipe&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT color="#ff0000" style="background-color: #ffffff;"&gt;…. &lt;/FONT&gt;&lt;FONT color="#ff0000" style="background-color: #ffffff;"&gt;;I found a better lsp to be edited, and add some elements that wanted, but it is limited to polylines &lt;/FONT&gt;&lt;FONT style="background-color: #ffffff;"&gt;….&lt;/FONT&gt;&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have a solution, but I'd simplify and shorten and update it as below [lightly tested].&amp;nbsp; &lt;FONT style="background-color: #ffffff;"&gt;That routine has some inefficiencies, problems, etc.:&lt;BR /&gt;Would you ever type out the whole command name "VERTEX," when you can use "VV" (and the code tells you to)?&amp;nbsp; I just defined the name as VV directly.&amp;nbsp; [But if it were up to me, I'd name it differently -- VV doesn't seem to be "about" what it does.]&lt;BR /&gt;It uses an old-fashioned way of setting up error handling, and defines *error* &lt;EM&gt;outside&lt;/EM&gt;&amp;nbsp; the command, and does &lt;EM&gt;not&lt;/EM&gt;&amp;nbsp; restore the original &lt;EM&gt;unless there is an error&lt;/EM&gt; -- without one, this routine's *error* handler will be imposed on AutoCAD operations in general, and if it is triggered by something unrelated, it will encounter a variable that doesn't exist!&amp;nbsp; And if there's an error within running it, in Acad2015 and beyond you'll be scolded for using (command) in the *error* handler [for the Undo End part].&lt;BR /&gt;There's no need to specify Continuous linetype -- that is always the default for new Layers; and non-continuous linetypes are not applicable to Points, anyway, so the linetype doesn't matter.&lt;BR /&gt;It does not return the current Layer to what it was.&lt;BR /&gt;You can use (vlax-curve...) functions and Parameters to process LW Polylines the &lt;EM&gt;same way&lt;/EM&gt;&amp;nbsp; as "heavy" ones, so there's no need for separate sub-routines [which also removes a lot of variables].&lt;BR /&gt;It can limit the object types it will "see" &lt;EM&gt;in selection&lt;/EM&gt;, rather than let you select just anything, and then go through and check each one's entity type.&lt;BR /&gt;I can't figure out why it's checking &lt;EM&gt;one coordinate only&lt;/EM&gt;&amp;nbsp; of the extrusion direction.&amp;nbsp; If that was about handling them in different UCS's, mine does that in a different and much simpler way.&lt;BR /&gt;Variables that are used only once have been eliminated, and whatever was setting them used directly.&amp;nbsp; I kept variable names that are still there as they were, and most prompts, but prompts I added or changed are in English, so you'll want to translate them.&amp;nbsp; [And I changed SGPOLY to SG&lt;FONT color="#000000"&gt;&lt;STRONG&gt;PLA&lt;/STRONG&gt;&lt;/FONT&gt; for &lt;STRONG&gt;&lt;FONT color="#000000"&gt;P&lt;/FONT&gt;&lt;/STRONG&gt;olyline/&lt;FONT color="#000000"&gt;&lt;STRONG&gt;L&lt;/STRONG&gt;&lt;/FONT&gt;ine/&lt;FONT color="#000000"&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/FONT&gt;rc.]&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun C:VV&lt;BR /&gt;&amp;nbsp; (/ *error* doc svnames svvals SGPLA NUMOBJ NAMENT ENTGT TIPENT)&lt;BR /&gt;;;;&lt;BR /&gt;&amp;nbsp; (defun *error* (errmsg)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ (strcat "\n»» Aplicação interrompida com erro: " errmsg))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (mapcar 'setvar svnames svvals); reset System Variables&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vla-endundomark doc)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (princ)&lt;BR /&gt;&amp;nbsp; ); defun - *error*&lt;BR /&gt;;;;&lt;BR /&gt;&amp;nbsp; (vla-startundomark (setq doc (vla-get-activedocument (vlax-get-acad-object))))&lt;BR /&gt;&amp;nbsp; (setq ; System Variable saving/resetting without separate variables for each:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; svnames '(osmode cmdecho clayer); System Variable names&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; svvals (mapcar 'getvar svnames); starting System Variable values&lt;BR /&gt;&amp;nbsp; ); setq&lt;BR /&gt;&amp;nbsp; (mapcar 'setvar svnames '(0 0)); Osnap &amp;amp; command echoing off&lt;BR /&gt;&amp;nbsp; (command "_.layer" "_thaw" "POINT" "_make" "POINT" "c" "1" "" "")&lt;BR /&gt;&amp;nbsp; (setvar 'pdmode &lt;STRONG&gt;&lt;FONT color="#00ccff"&gt;35&lt;/FONT&gt;&lt;/STRONG&gt;)&lt;FONT color="#00ccff"&gt;; &amp;lt;--EDIT for preferred Point display style&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp; (prompt "\nTo draw Points at Polyline/Line/Arc vertices &amp;amp; endpoints,")&lt;BR /&gt;&amp;nbsp; (while (not (setq SGPLA (ssget '((0 . "*POLYLINE,LINE,ARC")))))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (prompt "\n»» Nenhuma Polyline/Line/Arc entidade seleccionada!\n")&lt;BR /&gt;&amp;nbsp; ); while&lt;BR /&gt;&amp;nbsp; (repeat (setq NUMOBJ (sslength SGPLA))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAMENT (ssname SGPLA (setq NUMOBJ (1- NUMOBJ)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIPENT (cdr (assoc 0 (entget NAMENT)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ); setq&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if (wcmatch TIPENT "*POLYLINE")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (repeat ; then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq n&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (+ (fix (vlax-curve-getEndParam NAMENT)) (if (vlax-curve-isClosed NAMENT) 0 1))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ); setq&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.point" (trans (vlax-curve-getPointAtParam NAMENT (setq n (1- n))) 0 1))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ); repeat&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command ; else [Line or Arc]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "_.point" (trans (vlax-curve-getStartPoint NAMENT) 0 1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "_.point" (trans (vlax-curve-getEndPoint NAMENT) 0 1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ); command&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ); if&lt;BR /&gt;&amp;nbsp; ); repeat&lt;BR /&gt;;;;&lt;BR /&gt;&amp;nbsp; (mapcar 'setvar svnames svvals); reset System Variables&lt;BR /&gt;&amp;nbsp; (vla-endundomark doc)&lt;BR /&gt;&amp;nbsp; (princ)&lt;BR /&gt;); defun -- C:VV&lt;BR /&gt;(princ "\n»» start VV \n")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 12:38:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/add-vertice-to-polyline/m-p/8579590#M93047</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2019-02-07T12:38:34Z</dc:date>
    </item>
  </channel>
</rss>

