<?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: Select blocks with different names at the same time in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8780532#M140130</link>
    <description>&lt;PRE&gt;(setq ss (ssget  '((0 . "insert")(-4 . "&amp;lt;NOT")(2 . "1,2,3")(-4 . "NOT&amp;gt;"))))
(sssetfirst nil ss)
&lt;/PRE&gt;
&lt;P&gt;Reversed, with the parameter NOT to exclude instead of including.&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2019 12:13:06 GMT</pubDate>
    <dc:creator>tramber</dc:creator>
    <dc:date>2019-05-09T12:13:06Z</dc:date>
    <item>
      <title>Select blocks with different names at the same time</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8780471#M140127</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a format drawing where there are hundreds of blocks with different names.&lt;/P&gt;
&lt;P&gt;Starting from this drawing, I have to leave just some dozens of these blocks (whose names are in an excel file), deleting others.&amp;nbsp;My question is if it is possible to automate the operation through a command like "quick select" or a lisp able to select simultaneously unnecessary blocks (as an exclusion of the necessary ones shown in the excel file) so as to delete them quickly?&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 11:52:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8780471#M140127</guid>
      <dc:creator>luigiverdenico</dc:creator>
      <dc:date>2019-05-09T11:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select blocks with different names at the same time</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8780506#M140128</link>
      <description>&lt;P&gt;Use this piece of lisp code :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(setq ss (ssget  '((0 . "insert")(2 . "block1,block2,block3"))))
(sssetfirst nil ss)&lt;/PRE&gt;
&lt;P&gt;Probably easy to do with Excel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"block1,&lt;/P&gt;
&lt;P&gt;block2,&lt;/P&gt;
&lt;P&gt;block3"&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 12:01:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8780506#M140128</guid>
      <dc:creator>tramber</dc:creator>
      <dc:date>2019-05-09T12:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select blocks with different names at the same time</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8780507#M140129</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&lt;FONT color="#999999"&gt;&lt;EM&gt;My question is if it is possible to automate the operation&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;till you find one ... i suggest to start now with &lt;FONT color="#000000"&gt;&lt;STRONG&gt;QSELECT or&amp;nbsp;SELECTSIMILAR&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;command.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 12:04:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8780507#M140129</guid>
      <dc:creator>imadHabash</dc:creator>
      <dc:date>2019-05-09T12:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select blocks with different names at the same time</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8780532#M140130</link>
      <description>&lt;PRE&gt;(setq ss (ssget  '((0 . "insert")(-4 . "&amp;lt;NOT")(2 . "1,2,3")(-4 . "NOT&amp;gt;"))))
(sssetfirst nil ss)
&lt;/PRE&gt;
&lt;P&gt;Reversed, with the parameter NOT to exclude instead of including.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 12:13:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8780532#M140130</guid>
      <dc:creator>tramber</dc:creator>
      <dc:date>2019-05-09T12:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select blocks with different names at the same time</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8780806#M140131</link>
      <description>&lt;P&gt;First of all thank you for the help.&amp;nbsp;If I understand correctly, what you have reported is a part of the lisp code. Unfortunately I don't know about lisp so I can't complete it. Can you send me the complete file (you can call the&amp;nbsp; command "abaco"). Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 13:37:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8780806#M140131</guid>
      <dc:creator>luigiverdenico</dc:creator>
      <dc:date>2019-05-09T13:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select blocks with different names at the same time</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8781821#M140132</link>
      <description>&lt;P&gt;Since you don't know lisp - the other suggestion that was made should work well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Click one of the blocks you want to erase (or several different if you wish) then right click and choose the select similar command. This will select all what that name (* options for this command may be different and not do this - but default mode does).&amp;nbsp; You can then just hit delete on the keyboard, or use the erase command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may take several uses of the command to get them all - but it's a sight easier than typing in all the names you wanted in a list.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 19:58:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8781821#M140132</guid>
      <dc:creator>davinatkins</dc:creator>
      <dc:date>2019-05-09T19:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select blocks with different names at the same time</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8781863#M140133</link>
      <description>&lt;P&gt;What type of blocks they are - dynamic or not?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF your block are non-dynamic, use suggested LISP lines (below little simplified). There is really nothing to complete, just replace the dummy name with the real once delimited by comma and copy-paste the line into the command-line. That's all. As simple as it sounds, no more code needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Positive match:&lt;/P&gt;
&lt;PRE&gt;(sssetfirst nil (ssget "_X" '((0 . "insert") (2 . "&lt;STRONG&gt;block1,block2,block3&lt;/STRONG&gt;"))))&lt;/PRE&gt;
&lt;P&gt;Negative match:&lt;/P&gt;
&lt;PRE&gt;(sssetfirst nil (ssget "_X" '((0 . "insert")(-4 . "&amp;lt;NOT")(2 . "&lt;STRONG&gt;block1,block2,block3&lt;/STRONG&gt;")(-4 . "NOT&amp;gt;"))))&lt;/PRE&gt;
&lt;P&gt;If your blocks are dynamic, then a code has to be more advanced.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 20:34:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8781863#M140133</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-05-09T20:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select blocks with different names at the same time</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8784825#M140134</link>
      <description>&lt;P&gt;well,.... my solution indeed !&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2019 10:01:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8784825#M140134</guid>
      <dc:creator>tramber</dc:creator>
      <dc:date>2019-05-11T10:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select blocks with different names at the same time</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8785117#M140135</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/62037"&gt;@tramber&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;well,.... my solution indeed !&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You had some good ideas that help me to provide a solution to the OP that helped him get the job done. Good job, &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/62037"&gt;@tramber&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2019 16:15:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-blocks-with-different-names-at-the-same-time/m-p/8785117#M140135</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-05-11T16:15:36Z</dc:date>
    </item>
  </channel>
</rss>

