<?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: Modifying a line using entmod in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modifying-a-line-using-entmod/m-p/6859990#M123962</link>
    <description>&lt;P&gt;Use (&lt;STRONG&gt;cons&lt;/STRONG&gt; 11 p3).&amp;nbsp; If you look at entity data entries, the endpoints of Lines are not a 10 or 11 and an enclosed list of coordinates, but &lt;EM&gt;one&lt;/EM&gt; list starting with the 10 or 11 and continuing with the XYZ coordinates.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2017 14:59:13 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2017-02-07T14:59:13Z</dc:date>
    <item>
      <title>Modifying a line using entmod</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modifying-a-line-using-entmod/m-p/6859949#M123961</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am practicing with (entmod) to modify entities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following program:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:el ()&lt;/P&gt;&lt;P&gt;(setq e1 (car (entsel "\nSelect line to change: ")))&lt;BR /&gt;(setq e (entget e1))&lt;/P&gt;&lt;P&gt;(setq p1 (cdr (assoc 10 e)))&lt;BR /&gt;(setq p2 (cdr (assoc 11 e)))&lt;/P&gt;&lt;P&gt;(setq p3 (getpoint "\nClick point to change line's end point to: "))&lt;/P&gt;&lt;P&gt;(setq e (subst (list 11 p3) (assoc 11 e) e))&lt;/P&gt;&lt;P&gt;(entmod e)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Upon trying to execute the (entmod) function, Autocad returns the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error: bad DXF group: (11 (3370.73 952.62 0.0))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The the point (&lt;SPAN&gt;3370.73 952.62 0.0) is the point I happened to click on for p3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What is going on?&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Derryck&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 14:46:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modifying-a-line-using-entmod/m-p/6859949#M123961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-07T14:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a line using entmod</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modifying-a-line-using-entmod/m-p/6859990#M123962</link>
      <description>&lt;P&gt;Use (&lt;STRONG&gt;cons&lt;/STRONG&gt; 11 p3).&amp;nbsp; If you look at entity data entries, the endpoints of Lines are not a 10 or 11 and an enclosed list of coordinates, but &lt;EM&gt;one&lt;/EM&gt; list starting with the 10 or 11 and continuing with the XYZ coordinates.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 14:59:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/modifying-a-line-using-entmod/m-p/6859990#M123962</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-02-07T14:59:13Z</dc:date>
    </item>
  </channel>
</rss>

