<?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: lisp program error in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6276961#M132877</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; wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;the routine I wrote partially in response to a shortcoming in that one, available &lt;A href="http://cadtips.cadalyst.com/linear-objects/draw-a-cap-or-pipe-end" target="_self"&gt;here&lt;/A&gt; [see the first Comment about the shortcoming]. &amp;nbsp;It also offers additional options for what to draw across the end, and has other benefits&amp;nbsp;[for instance, it requires the ends to be &lt;EM&gt;parallel and aligned&lt;/EM&gt;, whereas endpipe.lsp will let you pick ends that aren't, and will draw a &lt;EM&gt;skewed&lt;/EM&gt; thingie]. &amp;nbsp;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Some of the kinds of inappropriate results that endpipe can give you ["facing" the wrong way, accepting&amp;nbsp;non-aligned or&amp;nbsp;non-parallel objects], that the Pipe option in CapEnd.lsp [in the link] was designed to prevent:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/232939iC37FA0A1AA2EBAFA/image-size/original?v=lz-1&amp;amp;px=-1" border="0" alt="EndPipe.png" title="EndPipe.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2016 15:28:33 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2016-04-18T15:28:33Z</dc:date>
    <item>
      <title>lisp program error</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6271862#M132870</link>
      <description>&lt;P&gt;got a simple lisp that i use quite a bit. Works fine in 2014, but get a "bad argument type" when trying to use in 2016. &amp;nbsp;I've attached incase someone is interested in trying to fix it. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 21:29:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6271862#M132870</guid>
      <dc:creator>MKH-VB</dc:creator>
      <dc:date>2016-04-14T21:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: lisp program error</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6273639#M132871</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/659621"&gt;@MKH-VB&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;got a simple lisp that i use quite a bit. Works fine in 2014, but get a "bad argument type" when trying to use in 2016. &amp;nbsp;I've attached incase someone is interested in trying to fix it. Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi MKH-VB,&lt;/P&gt;
&lt;P&gt;I don't have 2016 in this laptop, to test your code, but in 2015 it runs &lt;SPAN class="alt-edited"&gt;without an error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="alt-edited"&gt;If I'm not &lt;SPAN&gt;mistaken, in 2016 the QUIck snap mode, does not exist...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="alt-edited"&gt;&lt;SPAN&gt;Try to change&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="alt-edited"&gt;&lt;SPAN&gt;(setq pt1 (osnap (cadr first) "qui,end")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pt2 (osnap (cadr second) "qui,end")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="alt-edited"&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="alt-edited"&gt;&lt;SPAN&gt;(setq pt1 (osnap (cadr first) "end")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pt2 (osnap (cadr second) "end")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="alt-edited"&gt;&lt;SPAN&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 18:13:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6273639#M132871</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-04-15T18:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: lisp program error</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6273733#M132872</link>
      <description>&lt;P&gt;You might be interested in the routine I wrote partially in response to a shortcoming in that one, available &lt;A href="http://cadtips.cadalyst.com/linear-objects/draw-a-cap-or-pipe-end" target="_self"&gt;here&lt;/A&gt; [see the first Comment about the shortcoming]. &amp;nbsp;It also offers additional options for what to draw across the end, and has other benefits&amp;nbsp;[for instance, it requires the ends to be &lt;EM&gt;parallel and aligned&lt;/EM&gt;, whereas endpipe.lsp will let you pick ends that aren't, and will draw a &lt;EM&gt;skewed&lt;/EM&gt; thingie]. &amp;nbsp;Read the description there, and the commentary at the top of the file.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 18:58:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6273733#M132872</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-04-15T18:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: lisp program error</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6276598#M132873</link>
      <description>Henrique....&lt;BR /&gt;I removed the qui and then the program output changes. It tries to draw the arcs, but they are not drawn correctly. thanks for the reply.</description>
      <pubDate>Mon, 18 Apr 2016 13:42:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6276598#M132873</guid>
      <dc:creator>MKH-VB</dc:creator>
      <dc:date>2016-04-18T13:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: lisp program error</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6276656#M132874</link>
      <description>&lt;P&gt;Hi mkh,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and &lt;SPAN&gt;like this&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; it works&lt;/SPAN&gt; &lt;SPAN&gt;as expected?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:endpipe (/ plwid first second pt1 pt2 ang dis pt3 layr entl)
 (setq olderr *error* *error* pipe_err)
 (setq plwid (getvar"plinewid"))
 (setvar"plinewid" 0)
 (while (not
  (setq first (entsel "\nPick first endpoint: ")))
  (prompt "\nNo endpoint found. ")
 )
 (while (not
  (setq second (entsel "\nPick second endpoint: ")))
  (prompt "\nNo endpoint found. ")
 )
 (if second
  (progn
   (setq pt1 (osnap (cadr first) "end")
         pt2 (osnap (cadr second) "end")
   )
   (setq ang (angle pt1 pt2)
         dis (distance pt1 pt2)
         pt3 (polar pt1 ang (/ dis 2.0))
   )
   (command "pline" "_NON" pt1 "arc" "a" "100" "_NON" pt3 "_NON" pt2 "a" "-100" "_NON" pt3 ""))
  )
  (setq layr (cdr (assoc 8 (entget (car first)))) 
        entl (entget (entlast))
  )
  (setq entl (subst (cons 8 layr)(assoc 8 entl) entl))
  (entmod entl)
  (setvar "plinewid" plwid)
  (setq *error* olderr)
 (princ)
)


(defun pipe_err (s)                    
 (if (/= s "Function cancelled")
  (princ (strcat "\nError: "s))
 )
 (setvar"plinewid" plwid)
 (if olderr (setq *error* olderr))
 (princ)
) &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 13:56:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6276656#M132874</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-04-18T13:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: lisp program error</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6276670#M132875</link>
      <description>yes, thank you so much!</description>
      <pubDate>Mon, 18 Apr 2016 14:01:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6276670#M132875</guid>
      <dc:creator>MKH-VB</dc:creator>
      <dc:date>2016-04-18T14:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: lisp program error</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6276674#M132876</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/659621"&gt;@MKH-VB&lt;/a&gt; wrote:&lt;BR /&gt;yes, thank you so much!&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're welcome, mkh!&lt;BR /&gt;Glad I could help&lt;BR /&gt;&lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 14:02:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6276674#M132876</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-04-18T14:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: lisp program error</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6276961#M132877</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; wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;the routine I wrote partially in response to a shortcoming in that one, available &lt;A href="http://cadtips.cadalyst.com/linear-objects/draw-a-cap-or-pipe-end" target="_self"&gt;here&lt;/A&gt; [see the first Comment about the shortcoming]. &amp;nbsp;It also offers additional options for what to draw across the end, and has other benefits&amp;nbsp;[for instance, it requires the ends to be &lt;EM&gt;parallel and aligned&lt;/EM&gt;, whereas endpipe.lsp will let you pick ends that aren't, and will draw a &lt;EM&gt;skewed&lt;/EM&gt; thingie]. &amp;nbsp;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Some of the kinds of inappropriate results that endpipe can give you ["facing" the wrong way, accepting&amp;nbsp;non-aligned or&amp;nbsp;non-parallel objects], that the Pipe option in CapEnd.lsp [in the link] was designed to prevent:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/232939iC37FA0A1AA2EBAFA/image-size/original?v=lz-1&amp;amp;px=-1" border="0" alt="EndPipe.png" title="EndPipe.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:28:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6276961#M132877</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-04-18T15:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: lisp program error</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6276970#M132878</link>
      <description>Kent....&lt;BR /&gt;I tried yours this morning. It is great! Thanks for the tip.&lt;BR /&gt;MKH</description>
      <pubDate>Mon, 18 Apr 2016 15:31:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6276970#M132878</guid>
      <dc:creator>MKH-VB</dc:creator>
      <dc:date>2016-04-18T15:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: lisp program error</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6277286#M132879</link>
      <description>&lt;P&gt;&lt;FONT face="georgia,palatino" size="3"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="georgia,palatino" size="3"&gt;A bit late to the party, try this old program of mine &lt;A href="http://pipedisconnection.blogspot.ae/" target="_blank"&gt;FROM HERE&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 17:16:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-program-error/m-p/6277286#M132879</guid>
      <dc:creator>_Tharwat</dc:creator>
      <dc:date>2016-04-18T17:16:57Z</dc:date>
    </item>
  </channel>
</rss>

