<?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 to delete attributes and lisp to filter a block on a specific layer in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9089170#M83043</link>
    <description>&lt;P&gt;(command&lt;BR /&gt;"_.move" (setq ss (ssget "_X" '((0 . "*TEXT") (1 . "Verteiler,KL,WM,WT,KS,GS,DA")))) "" "200,0" ""&lt;BR /&gt;"_.erase" (ssget "_X" '((0 . "*TEXT"))) "_remove" ss ""&lt;BR /&gt;"_.move" ss "" "-200,0" ""&lt;BR /&gt;"_.erase" (ssget "_X" '((0 . "*line"))) "_remove" ss ""&lt;BR /&gt;"_.erase" (ssget "_X" '((0 . "circle"))) "_remove" ss ""&lt;BR /&gt;"_.erase" (setq SS1 (ssget "X" (list '(0 . "INSERT") (cons 2 "Ventilator")))) "_remove" ss ""&lt;BR /&gt;"_.erase" (setq SS2 (ssget "X" (list '(0 . "INSERT") (cons 2 "Verteiler") (cons 8 "MaCE HT_MSR")))) "_remove" ss ""&lt;BR /&gt;"_regenall"&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;Like this it works perfectly fine the only thing i have to do now are these little anoying attributes.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2019 09:26:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-16T09:26:03Z</dc:date>
    <item>
      <title>Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9085341#M83027</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my Tasks are:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. to change all attributes in the drawing to "empty"&lt;BR /&gt;&lt;BR /&gt;2. to delete an object with the same blockname as others, the only difference between them is the layer so how do i do this ?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 15:06:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9085341#M83027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-14T15:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9085675#M83028</link>
      <description>&lt;P&gt;1. See attached LISP&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. did not understand this one: can you elaborate.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 17:50:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9085675#M83028</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2019-10-14T17:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9085736#M83029</link>
      <description>&lt;P&gt;1. If you want to set all block attributes to their "default" value (some attibutes can have default text) then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(command "attsync" "_N" "*")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;or did you mean you want every attribute to display "empty"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. You'll have to be more specific i.e. Blocks on layer and Block name, or select&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 18:16:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9085736#M83029</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-10-14T18:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9086627#M83030</link>
      <description>&lt;P&gt;Thx for your reply,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. my target is to set attributes where now stands "Type AC 1/9" ,"Type AC 2/9" or something like that, i want them do display nothing like " ". so more or less delete them. And i overlooked that the attributes are in block references sorry for that. Hope thats clear ^^"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;2. i draw flats and houses and we have&amp;nbsp;&lt;SPAN&gt;electro distributor´s on layer X&amp;nbsp; and&amp;nbsp;heating distributor´s on layer Y. The symbols of both of them are Block references with the same name and color so if i would use the AutoCAD command&amp;nbsp; filter i would do this about the layer, but because there are more other things on layer Y i cant just filter the layer and delete it that way. Hope thats clear now too.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;thx for your patience&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 06:35:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9086627#M83030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-15T06:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9086752#M83031</link>
      <description>&lt;P&gt;OK. For each of your tasks:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. For setting block atributes, do any of the blocks you want to reset have any constant attributes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. How do you want to identify the blocks to be deleted? Select one or input block name and layer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 08:03:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9086752#M83031</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-10-15T08:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9086772#M83032</link>
      <description>&lt;P&gt;1. Yeah, to pick the current plan i have folloing block attributes:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;20x Type AC 1/9 and 12x Type A1/20 and around 150 without attributes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. we want it automized so we can load it and let it do so i think block name and layer should be the way we are going to use.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 08:21:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9086772#M83032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-15T08:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9086893#M83033</link>
      <description>&lt;P&gt;For 1, try this. I suggest testing it in a copy of the drawing. It currently asks you to select blocks. You can select everything in modelspace as it will filter out anything that is not an attributed block. If you want to automated it, I have commented two lines. If these changes are make you will not be prompted and it will automatically select every attributed block, so beware.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(vl-load-com)
;Clear Block Attributes : This is will clear all variable attributes in ALL selected blocks in modelspace (set textstring to "")
(defun c:CBA (/ *error* ss obj atts)

  (defun *error* ( msg )
    (if (not (wcmatch (strcase msg) "*BREAK*,*CANCEL*,*EXIT*")) (princ (strcat "\nAn Error : " msg " occurred.")))
    (princ)
  );_end_*error*_defun

  (prompt "\nSelect Attributed Blocks to Empty : ")             ;; If you want to automate remove this line
  (setq ss (ssget '((0 . "INSERT") (66 . 1) (410 . "Model"))))  ;; If you want to automate (EVERY BLOCK) change this line to (setq ss (ssget "_X" '((0 . "INSERT") (66 . 1) (410 . "Model"))))

  (if ss
    (repeat (setq cnt (sslength ss))
      (setq obj (vlax-ename-&amp;gt;vla-object (ssname ss (setq cnt (1- cnt))))
            atts (vlax-invoke obj 'getattributes)
      );end_setq
      (mapcar '(lambda (x) (vla-put-textstring x "")) atts)
    );end_repeat
    (princ "\nNothing Selected/Found")
  );end_if
  (princ)
);end_defun

&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Oct 2019 09:21:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9086893#M83033</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-10-15T09:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9086918#M83034</link>
      <description>&lt;P&gt;As above re testing. This should sort point 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:DBBL (/ *error* c_doc b_lst l_lst bname lyr ss obj)

  (defun *error* ( msg )
    (if (not (wcmatch (strcase msg) "*BREAK*,*CANCEL*,*EXIT*")) (princ (strcat "\nAn Error : " msg " occurred.")))
    (princ)
  );_end_*error*_defun

  (setq c_doc (vla-get-activedocument (vlax-get-acad-object)))

  (vlax-map-collection (vla-get-blocks c_doc) '(lambda (x) (setq b_lst (cons (strcase (vlax-get-property x 'name)) b_lst))))
  (vlax-map-collection (vla-get-layers c_doc) '(lambda (x) (setq l_lst (cons (strcase (vlax-get-property x 'name)) l_lst))))
  
  (while (not bname)
    (setq bname (getstring "\nEnter Block Name to Delete : "))
    (cond ( (not (vl-position (strcase bname) b_lst)) (alert (strcat "Block " bname " NOT present in drawing")) (setq bname nil)))
  );end_while
  
  (while (not lyr)
    (setq lyr (getstring "\nEnter Layer Name for Block Deletion : "))
    (cond ( (not (vl-position (strcase lyr) l_lst)) (alert (strcat "Layer " lyr " NOT present in drawing")) (setq lyr nil)))
  );end_while
  
  (setq ss (ssget "_X" (list '(0 . "INSERT") (cons 2 bname) (cons 8 lyr) '(410 . "Model"))))
  (if ss
    (vla-erase (vla-get-activeselectionset c_doc))
    (princ (strcat "No " bname " Blocks found on Layer " lyr))
  );end_if
  (princ)
);end_defun&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 09:35:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9086918#M83034</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-10-15T09:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9086960#M83035</link>
      <description>&lt;P&gt;1. cause i dont get your lisp running i give you a .dwg with the object im talking about. I want the left one´s attributes to be like the right one´s. Maybe i have a basic fault in my description of the problem but im not into this very much so sorry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 09:53:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9086960#M83035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-15T09:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9087000#M83036</link>
      <description>&lt;P&gt;Sorry, I'm on 2012 so can't open this drawing. Can you save as Autocad 2010 or earlier.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have attached both lisp as one file below. You need to save this to a directory in an autocad path or your documents, the appload it (type appload on the command line and navigate to where you saved the lisp).&lt;/P&gt;&lt;P&gt;Once loaded type CBA (clear block attributes) or DBBL (delete Block By Layer) on the commandline to run.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 10:12:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9087000#M83036</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-10-15T10:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9087085#M83037</link>
      <description>&lt;P&gt;ofc here ^^&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cant appload load out of anywhere?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 11:01:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9087085#M83037</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-15T11:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9087180#M83038</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;ofc here ^^&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cant appload load out of anywhere?&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Are you running AutoCad LT version?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 11:50:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9087180#M83038</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-10-15T11:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9087277#M83039</link>
      <description>&lt;P&gt;I´m runnig autocad mep 2018 and AutoCAD 2018&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 12:35:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9087277#M83039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-15T12:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9088101#M83040</link>
      <description>&lt;P&gt;And if you type appload on the command line of either application nothing happens?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I am now away for a week, and will be without a full version of AutoCad. I can still answer questions, but cannot test code. Perhaps someone else can step in with the final bit.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 18:32:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9088101#M83040</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-10-15T18:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9088866#M83041</link>
      <description>&lt;P&gt;Yep nothing happens it says e.g. resetARRSDBBL succsesfully loaded aaaand thats it, nothing more.&lt;BR /&gt;&lt;BR /&gt;Maybe im making a mistake here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(while (not bname)&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;(setq bname (getstring "\nEnter Block Name to Delete : "))&lt;/FONT&gt;&lt;BR /&gt;(cond ( (not (vl-position (strcase bname) b_lst)) (alert (strcat "Block " bname " NOT present in drawing")) (setq bname nil)))&lt;BR /&gt;);end_while&lt;BR /&gt;&lt;BR /&gt;(while (not lyr)&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;(setq lyr (getstring "\nEnter Layer Name for Block Deletion : "))&lt;/FONT&gt;&lt;BR /&gt;(cond ( (not (vl-position (strcase lyr) l_lst)) (alert (strcat "Layer " lyr " NOT present in drawing")) (setq lyr nil)))&lt;BR /&gt;);end_while&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does it have to look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;(setq bname (getstring "\nEnter Block Name to Delete : MYBLOCKSNAME"))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;(setq lyr (getstring "\nEnter Layer Name for Block Deletion : MYLAYERSNAME"))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;or like this:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;(setq bname (getstring "MYBLOCKSNAME"))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;(setq lyr (getstring "MYLAYERSNAME"))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;neither works but thats a question i asked myselfe and maybe there is the problem at some point like this&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I´m really glad that you help me out here ^^"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another question:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can i make it that easy to delete a block per name and layer ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#00FF00"&gt;(command&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00FF00"&gt;"_.move" (setq ss (ssget "_X" '((0 . "*TEXT") (1 . "Verteiler,KL,WM,WT,KS,GS,DA")))) "" "200,0" ""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00FF00"&gt;"_.erase" (ssget "_X" '((0 . "*TEXT"))) "_remove" ss ""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00FF00"&gt;"_move" ss "" "-200,0" ""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00FF00"&gt;"_.erase" (ssget "_X" '((0 . "*line"))) "_remove" ss ""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00FF00"&gt;"_.erase" (ssget "_X" '((0 . "circle"))) "_remove" ss ""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00FF00"&gt;"_.erase" (setq SS1 (ssget "X" (list '(0 . "INSERT") (cons 2 "Ventilator")))) "_remove" ss ""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;(setq lay_name "MaCE HT_MSR")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"_.erase" (setq SS2 (ssget "X" (list '(0 . "INSERT") (cons 3 "Verteiler") (cons 8 lay_name)))) "_remove" ss ""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00FF00"&gt;"_regenall"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00FF00"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I know the green part is working but i also know that the red part isnt. Can you explain me why ?&lt;BR /&gt;&lt;BR /&gt;i gues that the first line of the red is wrong in its Format. Am i guessing right ?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 06:46:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9088866#M83041</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-16T06:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9088955#M83042</link>
      <description>&lt;P&gt;Cause my Reply got marked as spam and removed here again:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yep it just says e.g. resetAttsDBBL successfully loaded and.... yeah thats it nothing happens.&lt;BR /&gt;&lt;BR /&gt;Maybe im making a mistake at this point:&lt;BR /&gt;&lt;BR /&gt;(while (not bname)&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;(setq bname (getstring "\nEnter Block Name to Delete : "))&lt;/FONT&gt;&lt;BR /&gt;(cond ( (not (vl-position (strcase bname) b_lst)) (alert (strcat "Block " bname " NOT present in drawing")) (setq bname nil)))&lt;BR /&gt;);end_while&lt;BR /&gt;&lt;BR /&gt;(while (not lyr)&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;(setq lyr (getstring "\nEnter Layer Name for Block Deletion : "))&lt;/FONT&gt;&lt;BR /&gt;(cond ( (not (vl-position (strcase lyr) l_lst)) (alert (strcat "Layer " lyr " NOT present in drawing")) (setq lyr nil)))&lt;BR /&gt;);end_while&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does it have to look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;(setq bname (getstring "\nEnter Block Name to Delete : MYBLOCKSNAME"))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;(setq lyr (getstring "\nEnter Layer Name for Block Deletion : MYLAYERSNAME"))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Or like this:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;(setq bname (getstring "MYBLOCKSNAME"))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;(setq lyr (getstring "MYLAYERSNAME"))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;or am i completely wrong ?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;I have another question:&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;Cant We/I make it that easy to delete a block by its name and layer?&lt;BR /&gt;&lt;FONT color="#339966"&gt;(command&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;"_.move" (setq ss (ssget "_X" '((0 . "*TEXT") (1 . "Verteiler,KL,WM,WT,KS,GS,DA")))) "" "200,0" ""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;"_.erase" (ssget "_X" '((0 . "*TEXT"))) "_remove" ss ""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;"_move" ss "" "-200,0" ""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;"_.erase" (ssget "_X" '((0 . "*line"))) "_remove" ss ""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;"_.erase" (ssget "_X" '((0 . "circle"))) "_remove" ss ""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;"_.erase" (setq SS1 (ssget "X" (list '(0 . "INSERT") (cons 2 "Ventilator")))) "_remove" ss ""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;(setq lay_name "MaCE HT_MSR")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"_.erase" (setq SS2 (ssget "X" (list '(0 . "INSERT") (cons 3 "Verteiler") (cons 8 lay_name)))) "_remove" ss ""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;"_regenall"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;)&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I gues the first line of my red part is the mistake but idk.&lt;BR /&gt;&lt;BR /&gt;I´m glad you´r helping me out here ^^"&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 07:04:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9088955#M83042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-16T07:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9089170#M83043</link>
      <description>&lt;P&gt;(command&lt;BR /&gt;"_.move" (setq ss (ssget "_X" '((0 . "*TEXT") (1 . "Verteiler,KL,WM,WT,KS,GS,DA")))) "" "200,0" ""&lt;BR /&gt;"_.erase" (ssget "_X" '((0 . "*TEXT"))) "_remove" ss ""&lt;BR /&gt;"_.move" ss "" "-200,0" ""&lt;BR /&gt;"_.erase" (ssget "_X" '((0 . "*line"))) "_remove" ss ""&lt;BR /&gt;"_.erase" (ssget "_X" '((0 . "circle"))) "_remove" ss ""&lt;BR /&gt;"_.erase" (setq SS1 (ssget "X" (list '(0 . "INSERT") (cons 2 "Ventilator")))) "_remove" ss ""&lt;BR /&gt;"_.erase" (setq SS2 (ssget "X" (list '(0 . "INSERT") (cons 2 "Verteiler") (cons 8 "MaCE HT_MSR")))) "_remove" ss ""&lt;BR /&gt;"_regenall"&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;Like this it works perfectly fine the only thing i have to do now are these little anoying attributes.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 09:26:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/9089170#M83043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-16T09:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/13663740#M164433</link>
      <description>&lt;P&gt;how do I initiate this lsp?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 14:31:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/13663740#M164433</guid>
      <dc:creator>ssmith774556EVN</dc:creator>
      <dc:date>2025-06-03T14:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/13663762#M164437</link>
      <description>&lt;P&gt;How do i get it to run?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 14:41:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/13663762#M164437</guid>
      <dc:creator>ssmith774556EVN</dc:creator>
      <dc:date>2025-06-03T14:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to delete attributes and lisp to filter a block on a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/13664028#M164440</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17184137"&gt;@ssmith774556EVN&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;how do I initiate this lsp?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;A good place to find out is at Lee Mac's instructions&amp;nbsp;&lt;A href="https://lee-mac.com/runlisp.html" target="_blank" rel="noopener"&gt;&amp;gt;here&amp;lt;&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 17:09:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-attributes-and-lisp-to-filter-a-block-on-a/m-p/13664028#M164440</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2025-06-03T17:09:42Z</dc:date>
    </item>
  </channel>
</rss>

