<?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: Similar LISP not working in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/similar-lisp-not-working/m-p/6057779#M134227</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;oh, it works now&lt;/P&gt;
&lt;P&gt;ty&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're welcome, kevlee91&lt;BR /&gt;Glad I could help&lt;BR /&gt;&lt;BR /&gt;Henrique&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2016 09:01:31 GMT</pubDate>
    <dc:creator>hmsilva</dc:creator>
    <dc:date>2016-02-26T09:01:31Z</dc:date>
    <item>
      <title>Similar LISP not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/similar-lisp-not-working/m-p/6055727#M134222</link>
      <description>&lt;P&gt;I Have 2 code, with the same structure but one works while the other doesn't (Unknown command) i'm really confused (cad12 and cad16 behave the same)&lt;/P&gt;&lt;PRE&gt;;;;---------------- Layer A-THICK --------------------   &amp;lt; this works
(DEFUN C:TYY (/ LAY)
  (COMMAND "-LAYER" "M" "A-THICK" "C" "33" "" "LW" "0.2" "" "")
  (PRINC)
)
(DEFUN C:TY () (ssget) 
  (COMMAND "-LAYER" "M" "A-THICK" "C" "33" "" "LW" "0.2" "" "")
  (command "change" "p" "" "p" "la" "A-THICK" ""))

;;;---------------- Layer A-GLASS --------------------  &amp;lt; error "Unknown command"
(DEFUN C:KII (/ LAY)
  (COMMAND "-LAYER" "M" "A-GLASS" "C" "154" "" "LW" "0.09" "" "")
  (PRINC)
)
(DEFUN C:KI () (ssget) 
  (COMMAND "-LAYER" "M" "A-GLASS" "C" "154" "" "LW" "0.09" "" "")
  (command "change" "p" "" "p" "la" "A-GLASS" ""))&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Feb 2016 07:17:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/similar-lisp-not-working/m-p/6055727#M134222</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-25T07:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Similar LISP not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/similar-lisp-not-working/m-p/6055887#M134223</link>
      <description>&lt;P&gt;Hello kevlee91 and welcome to the Autodesk Community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun C:TYY nil
    (command "_.-layer" "_U" "A-THICK" "_T" "A-THICK" "_M" "A-THICK" "_C" "33" "" "_LW" "0.2" "" "")
    (princ)
)
(defun C:TY nil
    (if (ssget)
        (command "_.-layer" "_U" "A-THICK" "_T" "A-THICK" "_M" "A-THICK" "_C" "33" "" "_LW" "0.2" "" "" "_.change" "_P" "" "_P" "_LA" "A-THICK" "")
    )
    (princ)
)

(defun C:KII nil
    (command "_.-layer" "_U" "A-GLASS" "_T" "A-GLASS" "_M" "A-GLASS" "_C" "154" "" "_LW" "0.09" "" "")
    (princ)
)
(defun C:KI nil
    (if (ssget)
        (command "_.-layer" "_U" "A-GLASS" "_T" "A-GLASS" "_M" "A-GLASS" "_C" "154" "" "_LW" "0.09" "" "" "_.change" "_P" "" "_P" "_LA" "A-GLASS" "")
    )
    (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>Thu, 25 Feb 2016 09:55:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/similar-lisp-not-working/m-p/6055887#M134223</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-02-25T09:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Similar LISP not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/similar-lisp-not-working/m-p/6055914#M134224</link>
      <description>it still giving unknown command on "KI" and "KII"; "TY" and "TYY" still works&lt;BR /&gt;i'm putting all my LISP in acad2016doc.lsp file</description>
      <pubDate>Thu, 25 Feb 2016 10:13:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/similar-lisp-not-working/m-p/6055914#M134224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-25T10:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Similar LISP not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/similar-lisp-not-working/m-p/6055921#M134225</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;it still giving unknown command on "KI" and "KII"; "TY" and "TYY" still works&lt;BR /&gt;i'm&amp;nbsp;putting all my LISP in acad2016doc.lsp file&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;acad2016doc.lsp file is &lt;SPAN class="hps"&gt;reserved&lt;/SPAN&gt; for AutoCAD!!!&lt;/P&gt;
&lt;P&gt;Don't edit this file!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In notpad, or &lt;SPAN class="hps"&gt;another text&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;editor, put all&amp;nbsp;your LISP's and seveas acaddoc.lsp, and AutoCAD will load it in hall dwg's.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: tested in AC2016, and &lt;SPAN class="hps"&gt;everything worked&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;as expected...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 10:21:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/similar-lisp-not-working/m-p/6055921#M134225</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-02-25T10:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Similar LISP not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/similar-lisp-not-working/m-p/6057643#M134226</link>
      <description>&lt;P&gt;oh, it works now&lt;/P&gt;&lt;P&gt;ty&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 07:29:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/similar-lisp-not-working/m-p/6057643#M134226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-26T07:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Similar LISP not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/similar-lisp-not-working/m-p/6057779#M134227</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;oh, it works now&lt;/P&gt;
&lt;P&gt;ty&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're welcome, kevlee91&lt;BR /&gt;Glad I could help&lt;BR /&gt;&lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 09:01:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/similar-lisp-not-working/m-p/6057779#M134227</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-02-26T09:01:31Z</dc:date>
    </item>
  </channel>
</rss>

