<?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: Logical Operator &amp;quot;&amp;lt;NOT&amp;quot;  Failing To Exclude Entity in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775659#M166057</link>
    <description>&lt;P&gt;Sorry Im pretty new to this, but I tried looking up ways to use crossing and window selection, but I couldn't seem to find a way to deselect items from an already existing set through autolisp, is there a deselect function that can be set to affect object between two points?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Aug 2025 13:54:00 GMT</pubDate>
    <dc:creator>walter_houghton</dc:creator>
    <dc:date>2025-08-20T13:54:00Z</dc:date>
    <item>
      <title>Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775518#M166051</link>
      <description>&lt;P&gt;So I have been modifying an existing auto lisp that is meant to delete all revclouds in a drawing. However, it so happens to be the parameters set up in the lisp also select part of a logo in the title block. My work around was to add a "&amp;lt;NOT" "NOT&amp;gt;" logical operator into the ssget function. I tried Group code 10 to exclude the exact object based on the info pulled from the dxf data, but for some reason it still selects the polyline.&amp;nbsp; The Code is below. It runs and loads fine, but it runs as if the "NOT" logical operator isnt even there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:REVCSEL (/ s e i a p)&lt;BR /&gt;(if (setq s (ssget "_X" '((0 . "LWPOLYLINE") (410 . "Model") (-4 . "/=") (42 . 0) (-4 . "&amp;gt;") (90 . 4) (-4 . "&amp;lt;NOT") (10 -516.149 553.471) (-4 . "NOT&amp;gt;"))))&lt;BR /&gt;(repeat (setq i (sslength s))&lt;BR /&gt;(setq e (ssname s (setq i (1- i)))&lt;BR /&gt;a (length (vl-remove-if-not '(lambda (u) (and (eq (car u) 42) (not (eq (cdr u) 0)))) (entget e)))&lt;BR /&gt;p (length (vl-remove-if-not '(lambda (u) (eq (car u) 10)) (entget e)))&lt;BR /&gt;)&lt;BR /&gt;(if (not (or (eq a p) (eq (1+ a) p)))&lt;BR /&gt;(ssdel e s)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(sssetfirst nil s)&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 12:40:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775518#M166051</guid>
      <dc:creator>walter_houghton</dc:creator>
      <dc:date>2025-08-20T12:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775585#M166052</link>
      <description>&lt;P&gt;You didn't post a sample drawing for us to test, but this is working here:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:REVCSEL (/ s)
  (if
    (setq s
           (ssget "_X"
                  '((0 . "LWPOLYLINE")
                    (410 . "Model")
                    (-4 . "&amp;gt;")
                    (90 . 4)
                    (-4 . "/=")
                    (42 . 0)
                   )
           )
    )
     (sssetfirst nil s)
  )
  (princ)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Aug 2025 13:19:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775585#M166052</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2025-08-20T13:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775630#M166053</link>
      <description>&lt;P&gt;Sorry about that, here is a test drawing essentially, I want to exclude the two bottom right entities from the selection set&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 13:35:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775630#M166053</guid>
      <dc:creator>walter_houghton</dc:creator>
      <dc:date>2025-08-20T13:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775654#M166054</link>
      <description>&lt;P&gt;You cannot use equal or non-equal conditions on real numbers pulled from some DXF or list - the internal representation of these real numbers differ on some (not pulled) decimal places. Use &amp;gt; and &amp;lt; , or window-selection instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl, &lt;A href="http://www.arkance.world" target="_blank"&gt;www.arkance.world&lt;/A&gt;&amp;nbsp; -&amp;nbsp; &lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 13:49:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775654#M166054</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2025-08-20T13:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775659#M166057</link>
      <description>&lt;P&gt;Sorry Im pretty new to this, but I tried looking up ways to use crossing and window selection, but I couldn't seem to find a way to deselect items from an already existing set through autolisp, is there a deselect function that can be set to affect object between two points?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 13:54:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775659#M166057</guid>
      <dc:creator>walter_houghton</dc:creator>
      <dc:date>2025-08-20T13:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775781#M166063</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17753595"&gt;@walter_houghton&lt;/a&gt;&amp;nbsp;thanks for the sample drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on that 2007 drawing, this works... Just&amp;nbsp; be sure to revise the points list for ssget, as needed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:REVCSEL (/ HasAllNonZeroBulges ss i ssRevclouds e eData)

  (defun HasAllNonZeroBulges (eData / allNonZeroBulges)
    (setq allNonZeroBulges T)
    (foreach item eData
      (if (and allNonZeroBulges
               (= 42 (car item))
          )
        (if (&amp;lt; 0.0 (abs (cdr item)))
          T
          (setq allNonZeroBulges nil)
        )
      )
    )
    allNonZeroBulges
  )
  
  (if
    (and
      (= "Model" (getvar 'ctab))
      (setq ss
             (ssget "_CP"
                    '((-2506.39 1989.13)
                      (-3371.93 261.312)
                      (-1275.05 266.462)
                      (-285.854 917.935)
                     )
             )
      )
    )
     (progn
       (setq i 0)
       (setq ssRevclouds(ssadd))
       (repeat (sslength ss)
         (if
           (and
             (setq e (ssname ss i))
             (&amp;lt; 4 (cdr (assoc 90 (setq eData (entget e)))))
             ;;(&amp;lt; 0 (abs (cdr (assoc 42 eData)))) ; this only gets first dxf 42
             (HasAllNonZeroBulges eData) ; need to check all segments
           )
            (ssadd e ssRevclouds)
         )
         (setq i (1+ i))
       )
       (if (&amp;lt; 0 (setq i (sslength ssRevclouds)))
         (sssetfirst nil ssRevclouds)
       )
     )
  )
  (prompt
    (strcat "\n"
            (itoa i)
            " Revcloud"
            (if (= 1 i)
              ""
              "s"
            )
            " selected. \n"
    )
  )
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Edit] - The code has been revised to account for all polyline segments, polylines with all bulges are considered Revclouds.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 17:48:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775781#M166063</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2025-08-20T17:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775895#M166065</link>
      <description>&lt;P&gt;&lt;SPAN&gt;(10 -516.149 553.471)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think that would work only if those coordinates apply to the &lt;EM&gt;first&lt;/EM&gt; vertex.&amp;nbsp; Is that the case?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But I assume the problem could, at least in part, that those values are rounded, and the real coordinates are, for example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(10 -516.148732 553.471376)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The (ssget) filter is going to need precise agreement.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 16:21:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775895#M166065</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2025-08-20T16:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13776079#M166069</link>
      <description>&lt;P&gt;try to ssget all revclouds via extended data&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(ssget "_x" '((0 . "lwpolyline") (410 . "Model") (-3 ("RevcloudProps"))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 18:25:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13776079#M166069</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2025-08-20T18:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13776113#M166070</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;try to ssget all revclouds via extended data&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;LI-CODE lang="lisp"&gt;(ssget "_x" '((0 . "lwpolyline") (410 . "Model") (-3 ("RevcloudProps"))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp; - I did same initially, until I realized:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:HeresWhyThatWontWork (/ n ss)

  ;; create a revcloud
  (setq n 0.25)
  (if (= "Model" (getvar 'ctab))
    (setq n (* (/ 1. (getvar 'cannoscalevalue)) 0.25))
  )
  (command-s "._revcloud" "_s" "_c" "_a" n (* 2. n) "_o")
  (while (= 1 (getvar 'cmdactive))
    (command pause)
  )

  ;; now try to select it
  (if (setq ss
             (ssget
               "_x"
               '((0 . "lwpolyline") (410 . "Model") (-3 ("RevcloudProps")))
             )
      )
    (sssetfirst nil ss)
    (prompt "\n** No valid Revclouds found ** ")
  )
  
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Autodesk has a bug in the REVCLOUD Command, as otherwise valid Revclouds are created (per properties pane), but the "RevcloudProps" XData isn't being appended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, Autodesk didn't implement this "RevcloudProps" XData until 2021 version, so this won't work for anyone using older than that. User posted a 2007 format sample DWG, so I skipped this option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Edit] - has been reported to Autodesk as&amp;nbsp;BUG:3549&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 19:02:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13776113#M166070</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2025-08-20T19:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13776203#M166071</link>
      <description>&lt;P&gt;i checked this on the user file, all 7 revclouds get xd appended.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 20:01:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13776203#M166071</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2025-08-20T20:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13776222#M166072</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;i checked this on the user file, all 7 revclouds get xd appended.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As did I... Please test the code in my replies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your code - same as my initial code, no judgment - does not work on Revclouds created by Object, where the code&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775781#M166063" target="_blank" rel="noopener"&gt;here&lt;/A&gt; works on both.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 20:27:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13776222#M166072</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2025-08-20T20:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13776765#M166078</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1206685"&gt;@BlackBox_&lt;/a&gt;&amp;nbsp;wrote:&lt;P class=""&gt;&lt;SPAN&gt;code&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775781#M166063" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;SPAN&gt; works on both.&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;sorry to dissapoint you, but it doesn't. see the screenshots attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 07:07:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13776765#M166078</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2025-08-21T07:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13777001#M166082</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1206685"&gt;@BlackBox_&lt;/a&gt;&amp;nbsp;wrote:&lt;P class=""&gt;&lt;SPAN&gt;code&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13775781#M166063" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;SPAN&gt; works on both.&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;sorry to dissapoint you, but it doesn't. see the screenshots attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thank you, my friend - you frequently post code that helps others - I simply wanted you to know that we agree, that your method should work, and be 100% trustworthy (in 2021+), but&amp;nbsp; it does not work at all on Revclouds created by Object (through no fault of your own).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In 2021 Autodesk failed to properly implement a new Revcloud type when granting that feature request - they instead opted to instantiate an object overrule, as evidenced by the Revcloud's entity data's still listing DXF 0 == "LWPOLYLINE" and/or&amp;nbsp; ObjectName == "AcDbPolyline". Autodesk failed to append the&amp;nbsp;&lt;SPAN&gt;"RevcloudProps" XData during the 'by Object' portion of the CommandMethod, my guess is that the &lt;A href="https://www.keanw.com/2008/07/swapping-identi.html" target="_blank" rel="noopener"&gt;SwapIdWith()&lt;/A&gt; call made after creating the new Revcloud and before deleting the original Polyline&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;has something to do with it. Regardless,&lt;/SPAN&gt;&amp;nbsp;this is a bug and has been reported to the AutoCAD team already.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not disappointed at all. Your images memorialize that the code in post 6 correctly selects any Polyline comprised of all bulge segments (commonly a Revcloud, even pre-2021, not always, obviously), and that you had to copy parts of the logo up among the Revclouds that my code didn't collect (on purpose, per the OP's request).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your images also confirm that you didn't try the code in post 9 (at least for those images, that is), as that code would have created a Revcloud by Object (listed as Revcloud in properties pane, not Polyline) and only selected those that had&amp;nbsp;&lt;SPAN&gt;"RevcloudProps" XData (which Revclouds created by Object do not).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your time and consideration!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 10:22:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13777001#M166082</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2025-08-21T10:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13777034#M166085</link>
      <description>&lt;P&gt;Is there a way to get a more precise coordinate value currently im using&amp;nbsp;&lt;/P&gt;&lt;P&gt;(entget (car (entsel)))&lt;/P&gt;&lt;P&gt;or do I have to mess with my precision settings to get an exact value?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 10:52:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13777034#M166085</guid>
      <dc:creator>walter_houghton</dc:creator>
      <dc:date>2025-08-21T10:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13777066#M166087</link>
      <description>&lt;P&gt;I figured out how to increase the precision for the coord data, thank you! This is how my lisp turned out in the end.&lt;/P&gt;&lt;DIV&gt;(defun c:REVCSEL (/ s e i a p)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;(if (setq s (ssget "_X" '((0 . "LWPOLYLINE") (410 . "Model") (-4 . "/=") (42 . 0) (-4 . "&amp;gt;") (90 . 4)&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (-4 . "&amp;lt;NOT") (10 -516.14923929 553.47129249) (-4 . "NOT&amp;gt;")(-4 . "&amp;lt;NOT") (10 -515.46212552 553.44825090) (-4 . "NOT&amp;gt;"))))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;(repeat (setq i (sslength s))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(setq e (ssname s (setq i (1- i)))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a (length (vl-remove-if-not '(lambda (u) (and (eq (car u) 42) (not (eq (cdr u) 0)))) (entget e)))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;p (length (vl-remove-if-not '(lambda (u) (eq (car u) 10)) (entget e)))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(if (not (or (eq a p) (eq (1+ a) p)))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(ssdel e s)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;(sssetfirst nil s)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;(princ)&lt;/DIV&gt;&lt;DIV&gt;)&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Aug 2025 11:16:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13777066#M166087</guid>
      <dc:creator>walter_houghton</dc:creator>
      <dc:date>2025-08-21T11:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13777074#M166088</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17753595"&gt;@walter_houghton&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there a way to get a more precise coordinate value ...&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;[You posted while I was writing this, but anyway....]&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;If you are always actually picking the Polyline you want it to not select, maybe taking its entity data entry directly [instead of pulling the coordinates away from the 10 DXF-code number than recombining them with a 10 again] would work:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;STRONG&gt;(if (setq s (ssget "_X"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;STRONG&gt;&amp;nbsp; (list&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;STRONG&gt;&amp;nbsp; '(0 . "LWPOLYLINE") '(410 . "Model") '(-4 . "/=") '(42 . 0) '(-4 . "&amp;gt;")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&amp;nbsp; '(90 . 4) '(-4 . "&amp;lt;NOT")&lt;/FONT&gt; &lt;FONT color="#0000FF"&gt;(assoc 10 edata)&lt;/FONT&gt;&lt;FONT size="2"&gt; '(-4 . "NOT&amp;gt;"))))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;But if you're actually picking it, it would be simpler to let the routine find it along with the ones you want, and then use&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; (ssdel)&lt;/STRONG&gt; &lt;/FONT&gt;to remove that one from the set.&lt;/P&gt;
&lt;P&gt;But there's still the issue of &lt;EM&gt;which&lt;/EM&gt; 10 entry it will see.&lt;/P&gt;
&lt;P&gt;Or, filter to exclude the Layer it's on, or by some other characteristic, rather than a vertex location.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 11:26:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13777074#M166088</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2025-08-21T11:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13777095#M166089</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;you frequently post code that helps others&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;wow, you are the one other than applicants, who said that in words. thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;that your method should work&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;you know, it's not MY method, it's just slightly deeper than basic usage of autolisp. everyone who ever touched xd might be as well aware of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;it does not work at all on Revclouds created by Object&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;that is a very wierd thing and since a revloud is a pline in its nature it is pretty hard to sort one of other. i think that is solvable via writing a custom lisp-command to convert an object to a revcloud to have xd.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Your images also confirm that you didn't try the code in post 9 (at least for those images, that is)&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;on the contrary, i actually did, and let you be assured, it amazed me a lot) i mean a revcloud without xd appended.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 11:37:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13777095#M166089</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2025-08-21T11:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13777234#M166091</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;you frequently post code that helps others&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;wow, you are the one other than applicants, who said that in words. thank you.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Most welcome! It's a bit too early for :beer:, so :IrishCoffee: Haha&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;that your method should work&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;you know, it's not MY method, it's just slightly deeper than basic usage of autolisp. everyone who ever touched xd might be as well aware of it.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You're obviously correct; what I intended was to pay attribution, as you'd posted it first. While I included same in my initial attempt, I tested it on one of my own drawings too (sometimes a DWG sysvar changes things, etc) and noticed it didn't work, even though my LISP Defun uses REVCLOUD Command with Object selection. Only then did I research it a bit and discovered that the XData wasn't implemented until 2021, so when I noticed the OP's sample DWG was 2007 format, I assumed it wouldn't work in all cases or versions. That's what led to my earlier post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;it does not work at all on Revclouds created by Object&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;that is a very wierd thing and since a revloud is a pline in its nature it is pretty hard to sort one of other. i think that is solvable via writing a custom lisp-command to convert an object to a revcloud to have xd.&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Agreed! For our internal standards Revclouds are on a specific layer, which makes this a bit easier to do. To automate it for our users, I was going to use .NET to provide an Object Overrule that automagically applies the XData when using native REVCLOUD Command, so users never even notice and anyone they send our drawings to will benefit (if they use SSGET as you'd posted).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's one example of what an Object Overrule can do:&amp;nbsp;&lt;A href="https://apps.autodesk.com/ACD/en/Detail/Index?id=8292913608752806337&amp;amp;appLang=en&amp;amp;os=Win32_64" target="_blank"&gt;https://apps.autodesk.com/ACD/en/Detail/Index?id=8292913608752806337&amp;amp;appLang=en&amp;amp;os=Win32_64&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Your images also confirm that you didn't try the code in post 9 (at least for those images, that is)&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;on the contrary, i actually did, and let you be assured, it amazed me a lot) i mean a revcloud without xd appended.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Mea culpa for the assumption. That's kind of you to say, thank you!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 12:59:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13777234#M166091</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2025-08-21T12:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Operator "&lt;NOT"  Failing To Exclude Entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13777241#M166092</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17753595"&gt;@walter_houghton&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Is there a way to get a more precise coordinate value ...&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;[You posted while I was writing this, but anyway....]&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If you are always actually picking the Polyline you want it to not select, maybe taking its entity data entry directly [instead of pulling the coordinates away from the 10 DXF-code number than recombining them with a 10 again] would work:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;STRONG&gt;(if (setq s (ssget "_X"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;STRONG&gt;&amp;nbsp; (list&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;STRONG&gt;&amp;nbsp; '(0 . "LWPOLYLINE") '(410 . "Model") '(-4 . "/=") '(42 . 0) '(-4 . "&amp;gt;")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&amp;nbsp; '(90 . 4) '(-4 . "&amp;lt;NOT")&lt;/FONT&gt; &lt;FONT color="#0000FF"&gt;(assoc 10 edata)&lt;/FONT&gt;&lt;FONT size="2"&gt; '(-4 . "NOT&amp;gt;"))))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;But if you're actually picking it, it would be simpler to let the routine find it along with the ones you want, and then use&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; (ssdel)&lt;/STRONG&gt; &lt;/FONT&gt;to remove that one from the set.&lt;/P&gt;&lt;P&gt;But there's still the issue of &lt;EM&gt;which&lt;/EM&gt; 10 entry it will see.&lt;/P&gt;&lt;P&gt;Or, filter to exclude the Layer it's on, or by some other characteristic, rather than a vertex location.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;is correct; I ran into this same issue in post 6 above, when checking DXF 42 for non-zero bulge.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to edit my post when I realized I was only checking the first DXF 42, then revised it to iterate all DXF 42 entries... if 1 or more were zero, then the code logic assumed a Polyline, if all were non-zero it assumed a Revcloud.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 13:02:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/logical-operator-quot-lt-not-quot-failing-to-exclude-entity/m-p/13777241#M166092</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2025-08-21T13:02:49Z</dc:date>
    </item>
  </channel>
</rss>

