<?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: Help with complicated lisp in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724780#M90055</link>
    <description>&lt;P&gt;This is awesome!!&lt;/P&gt;
&lt;P&gt;Thank you and &lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593837" target="_blank"&gt;@rperez&lt;/A&gt;&amp;nbsp;100 times better than I could have ever wished for.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;At this very moment, 2 drafters are going crazy with the demolition on two large projects.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Again... AWESOME!!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2019 20:35:35 GMT</pubDate>
    <dc:creator>DC-MWA</dc:creator>
    <dc:date>2019-04-11T20:35:35Z</dc:date>
    <item>
      <title>Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8722325#M90037</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;Let's start by saying this is probably one the most "frankenlisp" lisps i've ever done. I really wrestled with this one. I got it to work, but it uses the error handler to end the program when done among other hokie programming issues. It works well enough though and we have been using it for a little over a month. It basically puts objects on demo layers using the object's layer name and adds "-DEMO" to the end. It also changes the wall style if a wall is selected.&lt;/P&gt;
&lt;P&gt;Up till now, we have been doing minor demolition work, so picking single items at a time has been fine. Now we have several huge projects with multiple floors being demolished, each with dozens&amp;nbsp; and dozens if not hundreds of objects being removed or demolished.. The ability to select multiple objects would be very helpful.&lt;/P&gt;
&lt;P&gt;I have attached the "frankenslisp". As always, I'm very grateful to any assistance and input received.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 03:31:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8722325#M90037</guid>
      <dc:creator>DC-MWA</dc:creator>
      <dc:date>2019-04-11T03:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8722396#M90038</link>
      <description>&lt;P&gt;You say change objects but your using entsel which is a single object pick you need to use SSget which is a multiple object pick.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you get a object layer do you want all objects on that layer to be chosen again ssget with filter layer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can check if its a acdbwall and do the changes also.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your using appload or a menu added start on load so no need to type demo.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rearranged your defuns into a more practical form.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;;;DEMOLITION TOOLS FOR MWA

(vl-load-com)

;;;---------------ERROR-----------------------------------
    (defun *error* ( msg )
        (princ "\nDone Demolishing items.")
	(setvar "clayer" oldlayer)
	(setq oldpickbox nil  oldcmd nil oldlayer nil vbobj nil gatherlayer nil newlayername nil *error* nil)
	(command-S "._UNDO" "_End")
	(setvar "cmdecho" 1)
        (princ)
    )
;;;---------------ERROR-------------------------------------

(defun _entsel (msg / p r)
  (setvar "ErrNo" 0)
  (while (not (cond ((and (null (setq p (entsel (strcat "\n" msg)))) (/= 52 (getvar 'errno)));;
		     (prompt "\nAre you blind or what? You missed, try again...")
		    )
		    ((null p) t)
		    ((setq r p))
	      )
	 )
 )
  r
)



(defun changeStylename (myobj newstylename getwid / )
(if (vlax-property-available-p myobj "stylename" t)
(progn ;you can set the stylename on this object
(princ (strcat "\nWall style \"" (vlax-get-property myobj "stylename") "\" changed to \"TBR\""))
(vlax-put-property myobj "stylename" newstylename)
(vlax-put-property myobj "Width" getwid)
(vlax-put-property myobj "Justify" "0")
)
);;end if
);;end defun


(defun c:DEMO (/ oldpickbox oldcmd oldlayer vbobj gatherlayer newlayername *error*)
(setq oldcmd (getvar "cmdecho"))
(setvar "cmdecho" 0)
(command "._UNDO" "_End")
(command "._UNDO" "_Begin")
(setq oldlayer (getvar "clayer"))

(setq vbobj (vlax-ename-&amp;gt;vla-object (car (_entsel "pick object for layer"))))
(setq gatherlayer (vlax-get-property vbobj "layer"))
;(setq gatherlayer (vla-get-layer vbobj))
(setq newlayername (strcat gatherlayer "-DEMO"));add -demo
(if (not (tblsearch "layer" newlayername))
(command "-layer" "make" newlayername "color" "red" newlayername "lt" "hidden2" newlayername "");create layer
(princ "layer exist")
)

(setq ss (ssget (list (cons 8 gatherlayer))))
(repeat (setq x (sslength ss))
(setq vbobj (vlax-ename-&amp;gt;vla-object (ssname ss (setq x (- x 1)))))
(vlax-put-property vbobj "layer" newlayername);;;changes layer
(setq typ (vlax-get-property vbobj "Objectname"))
(princ (strcat "\n" typ " on layer " gatherlayer " moved to " newlayername " layer"))
(if (= typ "AecDbWall");;wall
(changestylename vbobj "tbr" (vlax-get-property vbobj "Width")) ;Call the Changestylename Function
)
);end repeat

(command "regen")
(setvar "clayer" oldlayer)
;;-----------------------------error
(setq *error* nil)
;;-----------------------------error
(command "._UNDO" "_End")
(setvar "cmdecho" oldcmd)
(princ)
);;

(c:demo)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 04:38:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8722396#M90038</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2019-04-11T04:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8722402#M90039</link>
      <description>&lt;P&gt;I tried it. It sets the layer current to layername-DEMO but then crashes and doesnt change the object selected.&lt;/P&gt;
&lt;P&gt;message "; error: bad argument type: lselsetp nil"&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 04:43:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8722402#M90039</guid>
      <dc:creator>DC-MWA</dc:creator>
      <dc:date>2019-04-11T04:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8722406#M90040</link>
      <description>&lt;P&gt;I need each object selected to be put on a layer the same as the layer they exist on with "-DEMO"&lt;/P&gt;
&lt;P&gt;So objects on "A-CASE" would end up on layer "A-CASE-DEMO"&lt;/P&gt;
&lt;P&gt;Walls would end up on A-WALL-DEMO and the wall style would be changed to TBR as well as the width being matched.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 04:46:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8722406#M90040</guid>
      <dc:creator>DC-MWA</dc:creator>
      <dc:date>2019-04-11T04:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8723802#M90041</link>
      <description>&lt;P&gt;Here's a peculiarity for you, that can &lt;EM&gt;greatly simplify&lt;/EM&gt;&amp;nbsp; such an operation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use entity data's 8-code Layer-name entry to assign a Layer to an entity, &lt;EM&gt;if the Layer doesn't already exist, it creates it in the process!&lt;/EM&gt;&amp;nbsp; So you can&amp;nbsp;build a new Layer name and give it to an entity with (subst)/(entmod) operations on its entity data list,&amp;nbsp;&lt;EM&gt;without&lt;/EM&gt;&amp;nbsp; making the Layer first or&amp;nbsp;checking whether it exists!&amp;nbsp; [This is &lt;EM&gt;not&lt;/EM&gt;&amp;nbsp; true&amp;nbsp;when doing it with&amp;nbsp;(vla-put-Layer) or the CHPROP command, which will fail if the Layer doesn't exist.]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After doing that to a selection set's worth of things, putting them on Layers whose names add -DEMO to the name of their original Layer,&amp;nbsp;you can then simply assign the color and linetype to &lt;EM&gt;all&lt;/EM&gt;&amp;nbsp; Layers whose names end in -DEMO, &lt;EM&gt;all at once&lt;/EM&gt;, whether they already existed yet or are newly-created ones [the latter&amp;nbsp;will initially have had default color 7 and CONTINUOUS linetype].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this [just for the -DEMO Layer-name transfer, not including the wall-style aspect]:&lt;/P&gt;
&lt;PRE&gt;(defun C:&lt;FONT color="#000000"&gt;&lt;STRONG&gt;DEMOLT&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#999999"&gt;; =&lt;/FONT&gt; &lt;FONT color="#000000"&gt;&lt;STRONG&gt;DEMO&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#999999"&gt;lition&lt;/FONT&gt; &lt;FONT color="#000000"&gt;&lt;STRONG&gt;L&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#999999"&gt;ayer&lt;/FONT&gt; &lt;FONT color="#000000"&gt;&lt;STRONG&gt;T&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#999999"&gt;ransfer&lt;/FONT&gt;
  (/ ss n edata lay)
  (if (setq ss (ssget "_:L"))&lt;FONT color="#33cccc"&gt;; anything not on locked Layer(s)&lt;/FONT&gt;
    (progn &lt;FONT color="#999999"&gt;; then&lt;/FONT&gt;
      (repeat (setq n (sslength ss))
        (setq edata (entget (ssname ss (setq n (1- n)))))
        (if (not (wcmatch (strcase (setq lay (cdr (assoc 8 edata)))) "*-DEMO"))
          &lt;FONT color="#33cccc"&gt;; not already on a Layer ending in it [in any case combination]&lt;/FONT&gt;
          (entmod (subst (cons 8 (strcat lay "-DEMO")) (assoc 8 edata) edata))&lt;BR /&gt;           &lt;FONT color="#33cccc"&gt;; replace its Layer name with -DEMO added, &lt;EM&gt;whether or not&lt;/EM&gt; that Layer exists&lt;/FONT&gt;
        )&lt;FONT color="#999999"&gt;; if
&lt;/FONT&gt;      )&lt;FONT color="#999999"&gt;; repeat&lt;/FONT&gt;
      (command "_.layer" "_color" 1 "*-DEMO" "_ltype" "HIDDEN2" "*-DEMO" "")&lt;BR /&gt;        &lt;FONT color="#33cccc"&gt;; assign those properties to &lt;EM&gt;all Layers whose names end in -DEMO
&lt;/EM&gt;&lt;/FONT&gt;    )&lt;FONT color="#999999"&gt;; progn&lt;/FONT&gt;
  )&lt;FONT color="#999999"&gt;; if&lt;/FONT&gt;
  (princ)
)&lt;FONT color="#999999"&gt;; defun&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;You can even include things &lt;EM&gt;already&lt;/EM&gt;&amp;nbsp; on -DEMO Layers in the selection, and it won't add a redundant -DEMO to their names [though if any of their Layers don't already have that color and linetype, it will "fix" that about them].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's in simplest terms -- you can add *error* handling, command-echo suppression, Undo begin-end wrapping, etc.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 14:27:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8723802#M90041</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2019-04-11T14:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8723861#M90042</link>
      <description>&lt;P&gt;Thank you. That works perfect for standard objects.&lt;/P&gt;
&lt;P&gt;The reason this thing got so complicated, is I'm dealing with AEC walls as well.&lt;/P&gt;
&lt;P&gt;If a wall is selected i need to extract data from the wall selected and then modify the wall as well as change the layer.&lt;/P&gt;
&lt;P&gt;So without making your beautifully simple routine a mess.... How do I achieve this?&lt;/P&gt;
&lt;P&gt;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;/P&gt;
&lt;P&gt;(if (= typ "AecDbWall");;wall&lt;BR /&gt;(progn &lt;BR /&gt;(setq getwid (vlax-get-property vbobj "Width"))&lt;BR /&gt;(defun changeStylename (myobj newstylename)&lt;BR /&gt;(if (vlax-property-available-p myobj "stylename" t)&lt;BR /&gt;(progn&amp;nbsp;&lt;BR /&gt;(princ (strcat "\nWall style \"" (vlax-get-property myobj "stylename") "\" changed to \"TBR\""))&lt;BR /&gt;(vlax-put-property myobj "stylename" newstylename);set new wall style&lt;BR /&gt;(vlax-put-property myobj "Width" getwid);set width taken from selected wall&lt;BR /&gt;(vlax-put-property myobj "Justify" "0");set justification taken from selected wall&lt;BR /&gt;)&lt;BR /&gt;);;end if&lt;/P&gt;
&lt;P&gt;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 14:40:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8723861#M90042</guid>
      <dc:creator>DC-MWA</dc:creator>
      <dc:date>2019-04-11T14:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8723941#M90043</link>
      <description>&lt;P&gt;Try this. I've removed un-needed variables, and it checks it also checks if the linetype "hidden2" is loaded, and alerts if not. It uses standard ssget and you cannot select anything on a locked layer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry but i haven't tested as I don't currently have access to AutoCAD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;;;DEMOLITION TOOLS FOR MWA
(vl-load-com)

(defun c:DEMO (/ *error* sv_lst sv_vals c_doc c_lyrs p_msg ss cnt vbobj n_lyr l_obj w)

  (defun *error* ( msg )
    (princ "\nDone Demolishing items.")
    (mapcar 'setvar sv_lst sv_vals)
    (if (and c_doc (= 8 (logand 8 (getvar 'UNDOCTL)))) (vla-endundomark c_doc))
    (princ)
  );end_defun *error*

  (setq sv_lst (list 'cmdecho 'clayer)
        sv_vals (mapcar 'getvar sv_lst)
        c_doc (vla-get-activedocument (vlax-get-acad-object))
        c_lyrs (vla-get-layers c_doc)
  );end_setq
  
  (cond ( (/= (getvar 'cmdecho) 0) (setvar 'cmdecho 0)))

  (cond ( (tblobjname "ltype" "hidden2")
          (if (and c_doc (= 8 (logand 8 (getvar 'UNDOCTL)))) (vla-endundomark c_doc))
          (vla-startundomark c_doc)
  
          (setq p_msg "\nSelect objects to Demolish &amp;lt;Return to exit&amp;gt; : ")
          (prompt p_msg)
          (while (setq ss (ssget ":L"))
            (cond (ss
                    (repeat (setq cnt (sslength ss))
                      (grtext -1 "**DEMOLISH MODE**")
                      (setq vbobj (vlax-ename-&amp;gt;vla-object (ssname ss (setq cnt (1- cnt))))
                            vb_lyr (vlax-get-property vbobj 'layer)
                            n_lyr (strcat vb_lyr "-DEMO")
                      );end_setq
                      (cond ( (not (tblobjname "layers" n_lyr))
                              (setq l_obj (vla-add c_lyrs n_lyr))
                              (mapcar '(lambda (x y) (vlax-put-property l_obj x y)) (list 'color 'linetype) (list 1 "hidden2"))
                            )
                      );end_cond
                      (vlax-put-property vbobj 'layer n_lyr)
                      (cond ( (= (vlax-get-property vbobj 'objectname) "AecDbWall")
                              (setq w (vlax-get-property vbobj 'width))
                              (cond ( (vlax-property-available-p vbobj 'stylename t)
                                      (princ (strcat "\nWall style \"" (vlax-get-property vbobj 'stylename) "\" changed to \"TBR\""))
                                      (mapcar '(lambda (x y) (vlax-put-property vbobj x y)) (list 'stylename 'width 'justify) (list "tbr" w "0"))
                                    )  
                              );;end_cond
                            )
                      );end_cond
                    );end_repeat
                  )
            );end_cond
            (prompt p_msg)
          );end_while
        )
        (t (alert "Linetype HIDDEN2 NOT loaded in drawing\nExiting.."))
  );end_cond      
  (if (and c_doc (= 8 (logand 8 (getvar 'UNDOCTL)))) (vla-endundomark c_doc))
  (mapcar 'setvar sv_lst sv_vals)
  (grtext -1 "**DEMOLISH MODE ENDED**")
  (princ)
);end_defun
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 15:32:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8723941#M90043</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-04-11T15:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8723951#M90044</link>
      <description>&lt;P&gt;It crashes, and fast.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 15:07:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8723951#M90044</guid>
      <dc:creator>DC-MWA</dc:creator>
      <dc:date>2019-04-11T15:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8723959#M90045</link>
      <description>Sorry forgot to remove a debug line. Have amended the above, try it again.</description>
      <pubDate>Thu, 11 Apr 2019 15:10:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8723959#M90045</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-04-11T15:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8723973#M90046</link>
      <description>&lt;P&gt;It gets the layer right and shows message correct "Wall style "3.5 wall" changed to "TBR""&lt;/P&gt;
&lt;P&gt;but the style, justification and width of the wall is unchanged.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 15:15:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8723973#M90046</guid>
      <dc:creator>DC-MWA</dc:creator>
      <dc:date>2019-04-11T15:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724045#M90047</link>
      <description>&lt;PRE&gt; (cond ( (vlax-property-available-p vbobj 'stylename t)
              (princ (strcat "\nWall style \"" (vlax-get-property vbobj 'stylename) "\" changed to \"TBR\""))
              (mapcar '(lambda (x y) (vlax-put-property &lt;FONT color="#FF0000"&gt;vbobj&lt;/FONT&gt; x y)) (list 'stylename 'width 'justify) (list "tbr" w "0"))
                                    )  
                              );;end_cond&lt;/PRE&gt;
&lt;P&gt;Error spotted. Wrong variable name correct name is in red. I have amended the original code above (post 7)&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 15:35:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724045#M90047</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-04-11T15:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724209#M90048</link>
      <description>&lt;P&gt;This seems to be the ticket.&lt;/P&gt;
&lt;P&gt;I'm going to test on one of the projects I have going....&lt;/P&gt;
&lt;P&gt;I'll be right back.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 16:26:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724209#M90048</guid>
      <dc:creator>DC-MWA</dc:creator>
      <dc:date>2019-04-11T16:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724260#M90049</link>
      <description>&lt;P&gt;Does not do AEC walls but here's a quick mod of one of my routines. It includes a filter in the selection set so you don't end up with 'LayerName-DEMO-DEMO' .. if you select the object twice.&lt;/P&gt;
&lt;PRE&gt;(defun c:layersuffix (/ e el l f s tm)
  ;; RJP » 2019-04-11
  (or (setq f (getenv "RJP_LayerSuffix")) (setq f "-DEMO"))
  (if (and (setq f (cond ((/= "" (setq tm (getstring (strcat "\nEnter suffix [&amp;lt;" f "&amp;gt;]: ")))) tm)
			 (f)
		   )
	   )
	   (setq s (ssget ":L" (list (cons 8 (strcat "~*" f)))))
      )
    (progn (setenv "RJP_LayerSuffix" f)
	   (foreach e (vl-remove-if 'listp (mapcar 'cadr (ssnamex s)))
	     (setq l (cdr (assoc 8 (entget e))))
	     (setq el (entget (tblobjname "layer" l)))
	     (if (not (tblobjname "layer" (strcat l f)))
	       (entmakex (subst (cons 2 (strcat l f)) (assoc 2 el) el))
	     )
	     (entmod (subst (cons 8 (strcat l f)) (assoc 8 (entget e)) (entget e)))
	   )
    )
  )
  (princ)
)&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Apr 2019 16:50:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724260#M90049</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2019-04-11T16:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724326#M90050</link>
      <description>&lt;P&gt;Nice one Ron. I didn't consider selecting an object twice.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 17:19:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724326#M90050</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-04-11T17:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724497#M90051</link>
      <description>&lt;P&gt;nice!&amp;nbsp; is the corrected version in post 7?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I could use this for some civil sites, not as complicated as architecture buildings&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 18:33:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724497#M90051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-11T18:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724516#M90052</link>
      <description>&lt;P&gt;Thank you. This does the trick. My team is very pleased.&lt;/P&gt;
&lt;P&gt;I truly appreciate your time and effort on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 18:39:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724516#M90052</guid>
      <dc:creator>DC-MWA</dc:creator>
      <dc:date>2019-04-11T18:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724641#M90053</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5644077"&gt;@dlanorh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Nice one Ron. I didn't consider selecting an object twice.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I created a mess many moons ago because I had not thought about it ; / Cheers!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 19:28:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724641#M90053</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2019-04-11T19:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724678#M90054</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6400150"&gt;@DC-MWA&lt;/a&gt;&amp;nbsp; Please find attached an updated version of this lisp to incorporate &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593837"&gt;@ronjonp&lt;/a&gt; point of filtering objects already on demo layers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 19:50:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724678#M90054</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-04-11T19:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help with complicated lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724780#M90055</link>
      <description>&lt;P&gt;This is awesome!!&lt;/P&gt;
&lt;P&gt;Thank you and &lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593837" target="_blank"&gt;@rperez&lt;/A&gt;&amp;nbsp;100 times better than I could have ever wished for.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;At this very moment, 2 drafters are going crazy with the demolition on two large projects.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Again... AWESOME!!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 20:35:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-complicated-lisp/m-p/8724780#M90055</guid>
      <dc:creator>DC-MWA</dc:creator>
      <dc:date>2019-04-11T20:35:35Z</dc:date>
    </item>
  </channel>
</rss>

