<?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: Delete a lisp in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7330171#M115855</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/58962"&gt;@devitg&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;I always wonder, image, ask the oracle, scratch my head, take a walk, what ever I can &amp;nbsp;do. Asking, question, or why to use a so ambiguous, absurd, nonsense name for a LISP &amp;nbsp;command as TEST, FOO, and so on .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe the TEST , invoke other lisp, or &amp;nbsp;&lt;STRONG&gt;&amp;nbsp;this line &amp;nbsp;hide all ss under sr&lt;/STRONG&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(command "_.draworder" ss "" "_u" sr ""))))&lt;/PRE&gt;&lt;P&gt;Just thinking, &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;I think you just nailed it. (as far as the 'dissapeared duct' goes anyway)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a hard time believing this copy/pasted TEST function to be still active.&lt;/P&gt;&lt;P&gt;...but it's "effect" still is.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Aug 2017 23:11:12 GMT</pubDate>
    <dc:creator>roland.r71</dc:creator>
    <dc:date>2017-08-25T23:11:12Z</dc:date>
    <item>
      <title>Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329186#M115841</link>
      <description>&lt;P&gt;I tried a recommended lisp this morning and all my duct that I drew (from Fabrication CadMep, a Autodesk&amp;nbsp;add on) disappeared and it won't come back, even with a restart. And the lisp is automatically starting when I restart. Does anyone know how to delete the lisp.&amp;nbsp;Initially, II created the lisp through the command line.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 15:11:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329186#M115841</guid>
      <dc:creator>asherjoh</dc:creator>
      <dc:date>2017-08-25T15:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329235#M115842</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3188457"&gt;@asherjoh&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;I tried a recommended lisp this morning and all my duct that I drew (from Fabrication CadMep, a Autodesk&amp;nbsp;add on) disappeared and it won't come back, even with a restart. And the lisp is automatically starting when I restart. Does anyone know how to delete the lisp.&amp;nbsp;&lt;STRONG&gt;Initially, II created the lisp through the command line.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You just lost me there...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll just asume you have a file with the lisp (*.lsp) and used appload to make it load everytime, or you added it to your acaddoc.lsp, instead of typing a lisp routine at the commandline (as that will NEVER "automatically start when&amp;nbsp;you restart")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution: Remove it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, either comment out the line in acaddoc.lsp with a ; at the front of the line, or remove the (load "your_lispfile.lsp") line.&lt;/P&gt;&lt;P&gt;OR delete it from the startup suite using appload&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 15:26:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329235#M115842</guid>
      <dc:creator>roland.r71</dc:creator>
      <dc:date>2017-08-25T15:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329310#M115843</link>
      <description>&lt;P&gt;I cut and pasted this lisp at the command line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(defun c:Test (/ data ss en sr)&lt;BR /&gt;(if (and (setq en (car (entsel "\nSelect object on reference layer: ")))&lt;BR /&gt;(setq sr (ssget "_X" (list (assoc 8 (entget en))))))&lt;BR /&gt;(foreach layer '("Water" "Gas" "Electric" "Text" "Dimensions")&lt;BR /&gt;(if (and (setq data (tblsearch "LAYER" layer)) ; layer exists&lt;BR /&gt;(zerop (logand 4 (cdr (assoc 70 data)))) ; layer unlocked&lt;BR /&gt;(setq ss (ssget "_X" (list (cons 8 layer)))) ; layer has objects&lt;BR /&gt;)&lt;BR /&gt;(command "_.draworder" ss "" "_u" sr ""))))&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have made lisp files before and know where they are stored. I tried looking there through appload&amp;nbsp;and it isn't&amp;nbsp;there. I did a computer search for test.lsp and nothing shows up. And yet my duct does not show up even after a restart and when I type test at the command line, the command is recognized and runs. I use 2017. When I open up my 2016, it does not recognize a test command. I don't know where to go from here. Thank You.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 15:51:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329310#M115843</guid>
      <dc:creator>asherjoh</dc:creator>
      <dc:date>2017-08-25T15:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329326#M115844</link>
      <description>&lt;P&gt;The duct program will draw new duct in 2017 and will also show the duct from other drawings. 2016 will show duct from the drawing that 2017 won't. Very strange.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 15:55:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329326#M115844</guid>
      <dc:creator>asherjoh</dc:creator>
      <dc:date>2017-08-25T15:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329359#M115845</link>
      <description>&lt;P&gt;If you type in the command line&lt;/P&gt;
&lt;P&gt;!C:test&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does it return something like :#&amp;lt;SUBR @00000240c8d32f48 C:TEST&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, what if you put (setq C:test nil) &amp;nbsp;Then it should undefine the command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regardless, it is strange behavior for a lisp pasted into the commandline to still be defined after the drawing is closed. &amp;nbsp;They typically need to be loaded every time a drawing is opened.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 16:03:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329359#M115845</guid>
      <dc:creator>Shneuph</dc:creator>
      <dc:date>2017-08-25T16:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329401#M115846</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3188457"&gt;@asherjoh&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;I cut and pasted this lisp at the command line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:Test (/ data ss en sr)&lt;BR /&gt;(if (and (setq en (car (entsel "\nSelect object on reference layer: ")))&lt;BR /&gt;(setq sr (ssget "_X" (list (assoc 8 (entget en))))))&lt;BR /&gt;(foreach layer '("Water" "Gas" "Electric" "Text" "Dimensions")&lt;BR /&gt;(if (and (setq data (tblsearch "LAYER" layer)) ; layer exists&lt;BR /&gt;(zerop (logand 4 (cdr (assoc 70 data)))) ; layer unlocked&lt;BR /&gt;(setq ss (ssget "_X" (list (cons 8 layer)))) ; layer has objects&lt;BR /&gt;)&lt;BR /&gt;(command "_.draworder" ss "" "_u" sr ""))))&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made lisp files before and know where they are stored. I tried looking there through appload&amp;nbsp;and it isn't&amp;nbsp;there. I did a computer search for test.lsp and nothing shows up. And yet my duct does not show up even after a restart and when I type test at the command line, the command is recognized and runs. I use 2017. When I open up my 2016, it does not recognize a test command. I don't know where to go from here. Thank You.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That's extremely weird behaviour.&lt;/P&gt;&lt;P&gt;Any lisp code pasted at the commandline, will only be active for the drawing opened at that time. Close the drawing and the routine is gone.&lt;/P&gt;&lt;P&gt;Open another drawing and the routine will NOT work there. (until you paste the code, again)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so... somehow the code did end up in a file or something and gets loaded. Which should not happen with a mere copy/paste.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 16:15:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329401#M115846</guid>
      <dc:creator>roland.r71</dc:creator>
      <dc:date>2017-08-25T16:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329434#M115847</link>
      <description>&lt;P&gt;The problem is definately not with the function code. (which i could already tell looking at the code, but to be sure i gave it a testrun)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just pasted it into acad2014, executed "TEST". Asking for object.&lt;/P&gt;&lt;P&gt;Closed the drawing, opened another, executed "TEST", which gets me nothing but BTESTBLOCK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just like it should.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't test with 2017, so there's still some "unknown" possibility there, as i don't know if it has some kind of option to autosave any custom (lisp) commands you define.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 16:26:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329434#M115847</guid>
      <dc:creator>roland.r71</dc:creator>
      <dc:date>2017-08-25T16:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329452#M115848</link>
      <description>&lt;P&gt;C:TEST&amp;gt; says Unknown command yet when I type it, it is recognized. (setq&amp;nbsp;c:test nil) didn't&amp;nbsp;delete it. Fortunately, I only lost an hour of drawing work. And it does allow me to draw new ductwork. But strange that 2016 shows the duct. It just hints that the lisp is directly for the duct not showing in 2017. Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 16:32:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329452#M115848</guid>
      <dc:creator>asherjoh</dc:creator>
      <dc:date>2017-08-25T16:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329464#M115849</link>
      <description>&lt;P&gt;I also tried to redefine the test command by doing this lisp at the command line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun C:test (/ dist); = Distance in Feet/inches and in [just] Inches
(command "_.dist" pause pause)&lt;FONT color="#999999"&gt;; User get distance points
&lt;/FONT&gt; (setq dist &lt;FONT color="#0000ff"&gt;(getvar 'distance)&lt;/FONT&gt;)
(prompt (strcat "\nDistance = " (rtos dist &lt;STRONG&gt;&lt;FONT color="#008000"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;) " or " (rtos dist &lt;FONT color="#ff00ff"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/FONT&gt;) "\"."))
(princ)
)&lt;FONT color="#999999"&gt;; defun&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;It didn't&amp;nbsp;work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 16:38:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329464#M115849</guid>
      <dc:creator>asherjoh</dc:creator>
      <dc:date>2017-08-25T16:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329567#M115850</link>
      <description>&lt;P&gt;it's getting stranger by the post... &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://forums.autodesk.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Command: TEST

Select object on reference layer:

Command:

Command: !c:test
#&amp;lt;SUBR @00000000340cd688 C:TEST&amp;gt;

Command: (setq c:test nil)
nil

Command: !c:test
nil

Command: TEST

Unknown command name.&lt;/PRE&gt;&lt;P&gt;If you don't get the above result... you probably should contact customer support or something, or wait for a real expert to have a look at it.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 17:24:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329567#M115850</guid>
      <dc:creator>roland.r71</dc:creator>
      <dc:date>2017-08-25T17:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329752#M115851</link>
      <description>It does say Select object on reference layer. I will  have to try the rest on Monday. Thanks.</description>
      <pubDate>Fri, 25 Aug 2017 18:38:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329752#M115851</guid>
      <dc:creator>asherjoh</dc:creator>
      <dc:date>2017-08-25T18:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329977#M115852</link>
      <description>Our IT team here had figured out how to&lt;BR /&gt;load files using the registry as the path holder&lt;BR /&gt;- similar to the window's startup section.&lt;BR /&gt;&lt;BR /&gt;Perhaps finding the key/data and removing that?&lt;BR /&gt;HKLM Software(?)&lt;BR /&gt;&lt;BR /&gt;You did not specify if you are reopening the file&lt;BR /&gt;or restarting AutoCAD with a "blank" file (or one&lt;BR /&gt;that never had the program run)?&lt;BR /&gt;&lt;BR /&gt;If same file, search for "PDI" in this forum and try it.&lt;BR /&gt;Purge Dictionary Items.&lt;BR /&gt;&lt;BR /&gt;???&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Aug 2017 20:46:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7329977#M115852</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2017-08-25T20:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7330023#M115853</link>
      <description>Yes, I have restarted cad with restarting the computer with a fresh drawing. I had done the "test" lisp routine with 2017 and 2018. They both have the same issue with the duct disappearing. I did not do it with 2016 and it shows the duct. Your suggested solution is a little over &amp;nbsp;my head currently. I with have read up on it. Thanks</description>
      <pubDate>Fri, 25 Aug 2017 21:12:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7330023#M115853</guid>
      <dc:creator>asherjoh</dc:creator>
      <dc:date>2017-08-25T21:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7330154#M115854</link>
      <description>&lt;P&gt;I always wonder, image, ask the oracle, scratch my head, take a walk, what ever I can &amp;nbsp;do. Asking, question, or why to use a so ambiguous, absurd, nonsense name for a LISP &amp;nbsp;command as TEST, FOO, and so on .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe the TEST , invoke other lisp, or &amp;nbsp;&amp;nbsp;this line &amp;nbsp;hide all ss under sr &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(command "_.draworder" ss "" "_u" sr ""))))&lt;/PRE&gt;
&lt;P&gt;Just thinking, &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 22:58:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7330154#M115854</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2017-08-25T22:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7330171#M115855</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/58962"&gt;@devitg&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;I always wonder, image, ask the oracle, scratch my head, take a walk, what ever I can &amp;nbsp;do. Asking, question, or why to use a so ambiguous, absurd, nonsense name for a LISP &amp;nbsp;command as TEST, FOO, and so on .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe the TEST , invoke other lisp, or &amp;nbsp;&lt;STRONG&gt;&amp;nbsp;this line &amp;nbsp;hide all ss under sr&lt;/STRONG&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(command "_.draworder" ss "" "_u" sr ""))))&lt;/PRE&gt;&lt;P&gt;Just thinking, &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;I think you just nailed it. (as far as the 'dissapeared duct' goes anyway)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a hard time believing this copy/pasted TEST function to be still active.&lt;/P&gt;&lt;P&gt;...but it's "effect" still is.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 23:11:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7330171#M115855</guid>
      <dc:creator>roland.r71</dc:creator>
      <dc:date>2017-08-25T23:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7330185#M115856</link>
      <description>&lt;P&gt;We in Spanish have a say&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Las brujas no existen , pero que las hay, las hay.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The:&amp;nbsp;crone, hag, sorceress, witch, shrew, vixen, termagant,&amp;nbsp;battle-axe, battleax, battleaxe,&amp;nbsp;bag, baggage, trout, old hag,&amp;nbsp;moth,bitch&lt;/P&gt;
&lt;P&gt;do not exist , but it &amp;nbsp;are , yes it &amp;nbsp;are.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 23:24:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7330185#M115856</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2017-08-25T23:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7330239#M115857</link>
      <description>I guess one could pull a word our of a hat, and name the lisp that.&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;</description>
      <pubDate>Sat, 26 Aug 2017 00:39:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7330239#M115857</guid>
      <dc:creator>asherjoh</dc:creator>
      <dc:date>2017-08-26T00:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7330326#M115858</link>
      <description>Just to be clear, this lisp was supposed to allow me to put one layer over another with a couple clicks of the mouse. If anyone can read it, does it look like that's what it does? Plus I don't know why it says water, gas and electric. Guess I learned my lesson that lisps can cause problems if you don't know what your doing.</description>
      <pubDate>Sat, 26 Aug 2017 02:54:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7330326#M115858</guid>
      <dc:creator>asherjoh</dc:creator>
      <dc:date>2017-08-26T02:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7330537#M115859</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3188457"&gt;@asherjoh&lt;/a&gt; wrote:&lt;BR /&gt;Just to be clear, this lisp was supposed to allow me to put one layer over another with a couple clicks of the mouse.&lt;STRONG&gt; If anyone can read it, does it look like that's what it does?&lt;/STRONG&gt; Plus I don't know why it says water, gas and electric. Guess I learned my lesson that lisps can cause problems if you don't know what your doing.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;it does.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;The function should put the entities on the layers Water, Gas, Electric, Text and/or Dimensions under any entities on the same layer as the selected entity.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;...so it's a bit strange that you don't know why it uses those specific layer names. Since only those will be affected. (&amp;amp; i wonder what happens if the selected entity is on one of those layers ... )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try to explain the function's inner workings...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(if (and (setq en (car (entsel "\nSelect object on reference layer: ")))&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;- here it askes to select an object/entity (&amp;amp; the function will only continue if there is an object selected)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(setq sr (ssget "_X" (list (assoc 8 (entget en))))))&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;- here it retrieves the entities on the same layer as the selected one (DXF code 8 = layername)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(foreach layer '("Water" "Gas" "Electric" "Text" "Dimensions")&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;- here it repeats the following code for each layername given. So: Water Gas Electric Text &amp;amp; Dimensions are the only layers affected&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(if (and (setq data (tblsearch "LAYER" layer)) ; layer exists&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;- as the comment states, here it checks if the layer (water, gas, etc.) realy exists&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(zerop (logand 4 (cdr (assoc 70 data)))) ; layer unlocked&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;- As the comment states, here it checks if the layer is unlocked&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(setq ss (ssget "_X" (list (cons 8 layer)))) ; layer has objects&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;- here it retrieves any entities on that layer&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;- end of conditions (if)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;- so the next line only executes when the layer (Water, Gas, etc.) exists, is unlocked &amp;amp; has entities&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(command "_.draworder" ss "" "_u" sr ""))))&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;- here it will change the draworder for all entities from selection set "ss" (the entities on layer Water/Gas/etc.) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;- UNDER the entities from selection set "sr" (the entities on the same layer as the selected entity&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(princ)&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;- supresses nil&lt;/FONT&gt;&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;- end of the repeating code for each layer (Water/Gas/etc.)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Aug 2017 10:20:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7330537#M115859</guid>
      <dc:creator>roland.r71</dc:creator>
      <dc:date>2017-08-26T10:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7330650#M115860</link>
      <description>I was referred to this lisp and didnt realized there were custome layer instuctions in the lisp. I dont use anay water, gas or electric layers in my drawings. I was just looking to just looking for a lisp to put one layer above another, but not have the layer change in relation to all the other layers as draworder/send to back does. I had read some tutorials and seen Lynn Allen's (Cadalyst) tutorials on lisp. I know that cad commands are instructed yo do something when conditions are this or that. But I still don't understand enough to wright anything. I basically use slow time at work research it. Thank you for your explanation.</description>
      <pubDate>Sat, 26 Aug 2017 13:13:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/delete-a-lisp/m-p/7330650#M115860</guid>
      <dc:creator>asherjoh</dc:creator>
      <dc:date>2017-08-26T13:13:47Z</dc:date>
    </item>
  </channel>
</rss>

