<?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: How can I remove same object of repeat by lisp? in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13305196#M3539</link>
    <description>&lt;P&gt;Programming:&lt;/P&gt;&lt;P&gt;Compare all objectdata of all object, delete all similars but one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LazyDrafter:&lt;/P&gt;&lt;P&gt;Runs OVERKILL [F1]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LazerProgrammer:&lt;/P&gt;&lt;P&gt;Controles -OVERKILL [F1] by command-statement.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2025 08:07:48 GMT</pubDate>
    <dc:creator>cadffm</dc:creator>
    <dc:date>2025-02-07T08:07:48Z</dc:date>
    <item>
      <title>How can I remove same object of repeat by lisp?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13304842#M3536</link>
      <description>&lt;P&gt;Same as topic.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="skchui6159_0-1738895907011.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1463853i7AEF926B071FF255/image-size/medium?v=v2&amp;amp;px=400" role="button" title="skchui6159_0-1738895907011.png" alt="skchui6159_0-1738895907011.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can a lisp can erase the repeated object (SAME COORDINATE, SAME SIZE , SAME PROPERTIES...)in AUTOCAD? Thankz.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 02:41:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13304842#M3536</guid>
      <dc:creator>skchui6159</dc:creator>
      <dc:date>2025-02-07T02:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I remove same object of repeat by lisp?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13305082#M3537</link>
      <description>&lt;P&gt;How's about &lt;STRONG&gt;SelectSimilar&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_0-1738910437898.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1463920i73CBE3E11901DD0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_0-1738910437898.png" alt="paullimapa_0-1738910437898.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 06:41:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13305082#M3537</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2025-02-07T06:41:00Z</dc:date>
    </item>
    <item>
      <title>回复： How can I remove same object of repeat by lisp?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13305142#M3538</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;&amp;nbsp;Sorry, It should be keep 1 of the object, other should be erase. One object in same location should be kept one. Other object should be erase.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 07:33:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13305142#M3538</guid>
      <dc:creator>skchui6159</dc:creator>
      <dc:date>2025-02-07T07:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I remove same object of repeat by lisp?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13305196#M3539</link>
      <description>&lt;P&gt;Programming:&lt;/P&gt;&lt;P&gt;Compare all objectdata of all object, delete all similars but one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LazyDrafter:&lt;/P&gt;&lt;P&gt;Runs OVERKILL [F1]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LazerProgrammer:&lt;/P&gt;&lt;P&gt;Controles -OVERKILL [F1] by command-statement.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 08:07:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13305196#M3539</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2025-02-07T08:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I remove same object of repeat by lisp?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13305272#M3540</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/71745"&gt;@cadffm&lt;/a&gt;&amp;nbsp;Thank a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 09:04:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13305272#M3540</guid>
      <dc:creator>skchui6159</dc:creator>
      <dc:date>2025-02-07T09:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I remove same object of repeat by lisp?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13306306#M3541</link>
      <description>&lt;P&gt;Before running Overkill I see 4 objects looking like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_1-1738947490103.png" style="width: 225px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1464184i5E3D6FA402DDFED7/image-dimensions/225x205?v=v2" width="225" height="205" role="button" title="paullimapa_1-1738947490103.png" alt="paullimapa_1-1738947490103.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running Overkill I see 1 object looking like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_0-1738947455565.png" style="width: 223px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1464183i2B889786288EEBC4/image-dimensions/223x150?v=v2" width="223" height="150" role="button" title="paullimapa_0-1738947455565.png" alt="paullimapa_0-1738947455565.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also try this code and enter at the command prompt: REM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; rem function removes duplicates but keeps the one initially selected
; OP:
; https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13305272#M478451
(defun c:rem (/ ss)
 (if (setq ss (ssget "_+.:E:S"))
  (progn 
   (command "_.selectsimilar" ss "")
   (if (ssget "_P")
    (progn
     (command "_.Erase" "_P" "_R" (ssname ss 0) "")
     (sssetfirst nil ss)
    )
   )
  )
 )  
 (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Afterwards you should see only 1 object looking like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_2-1738947586333.png" style="width: 205px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1464186i81A7DBFDEBB2637F/image-dimensions/205x190?v=v2" width="205" height="190" role="button" title="paullimapa_2-1738947586333.png" alt="paullimapa_2-1738947586333.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 20:46:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13306306#M3541</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2025-02-07T20:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I remove same object of repeat by lisp?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13307456#M3542</link>
      <description>&lt;P&gt;Thank you very much, it is the upgrade function of select similar.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2025 12:59:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13307456#M3542</guid>
      <dc:creator>skchui6159</dc:creator>
      <dc:date>2025-02-08T12:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I remove same object of repeat by lisp?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13307469#M3543</link>
      <description>&lt;P&gt;You are welcome…cheers!!!&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2025 13:21:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-can-i-remove-same-object-of-repeat-by-lisp/m-p/13307469#M3543</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2025-02-08T13:21:28Z</dc:date>
    </item>
  </channel>
</rss>

