<?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 to select only visible hatches in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155901#M62901</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;I've changed code according to your suggestion regarding zoom.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you say solution is not simple but is doable by only using selection set filters.&lt;/P&gt;&lt;P&gt;There is no combination of filters that would remove non-visible entities from selection set.&lt;/P&gt;&lt;P&gt;We have filter modes for locked and thawed layers but not for hidden ones. I hope this can&lt;/P&gt;&lt;P&gt;reach to Autocad developers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;_CP and F filter modes only work on visible entities and we can exploit it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 14 Mar 2021 19:16:53 GMT</pubDate>
    <dc:creator>hak_vz</dc:creator>
    <dc:date>2021-03-14T19:16:53Z</dc:date>
    <item>
      <title>How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155689#M62895</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;these two codes below select all the hatches even from frozen and switched off layers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;(sssetfirst nil (ssget "X" '((0 . "HATCH"))))&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;(ssget "X" (list (cons 0 "HATCH")))&lt;BR /&gt;(setq sset (ssget "_P"))&lt;BR /&gt;(sssetfirst nil sset)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What to add to the code/codes to select only visible hatches ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Best Regards!&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 16:51:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155689#M62895</guid>
      <dc:creator>karpki</dc:creator>
      <dc:date>2021-03-14T16:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155802#M62896</link>
      <description>&lt;P&gt;Not that simple.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun :LayerListEditable (/ d l)
  (while (setq d (tblnext "layer" (null d)))
    (if (not (or (minusp (cdr (assoc 62 d)))		; on
		 (= 1 (logand (cdr (assoc 70 d)) 1))	; thawed
		 (= 4 (logand (cdr (assoc 70 d)) 4))	; unlocked
		 (wcmatch (cdr (assoc 2 d)) "*|*")))	; not in xref
      (setq l (cons (cdr (assoc 2 d)) l))))
  l)

(ssget "_X" (list '(0 . "HATCH")
		  (cons 8 (apply 'strcat (mapcar '(lambda (x) (strcat x ",")) (:LayerListEditable))))
		  (cons 410 (getvar 'ctab))))
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 18:09:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155802#M62896</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-03-14T18:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155805#M62897</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6772499"&gt;@karpki&lt;/a&gt;Since you are learning list, instead providing you with solution,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.lee-mac.com/ssget.html" target="_self"&gt;here&lt;/A&gt; is a link to&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/569456"&gt;@Lee_Mac&lt;/a&gt;&amp;nbsp; excellent&amp;nbsp; explanation of how ssget works and how to use selection&lt;/P&gt;&lt;P&gt;set filters. Try to write your own filter. Hint. Mode string "X" hast to be replaced with other combination.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 18:11:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155805#M62897</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-03-14T18:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155816#M62898</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556"&gt;@hak_vz&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6772499"&gt;@karpki&lt;/a&gt;Since you are learning list, instead providing you with solution,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.lee-mac.com/ssget.html" target="_self"&gt;here&lt;/A&gt; is a link to&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/569456"&gt;@Lee_Mac&lt;/a&gt;&amp;nbsp; excellent&amp;nbsp; explanation of how ssget works and how to use selection&lt;/P&gt;
&lt;P&gt;set filters. Try to write your own filter. Hint. Mode string "X" hast to be replaced with other combination.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;OK, we can use A or :L-. Then *|* filter of xrefs. There is nothing for On/Off. And over-all challenge?! Combine them all together. Am I missing something?&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 18:18:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155816#M62898</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-03-14T18:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155845#M62899</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this&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;LI-CODE lang="markup"&gt;(defun select_visible_hatches ( / p ss x1 y1 x2 y2)
(command "_zoom" "extents")
(setq p (mapcar (function getvar) '("EXTMIN" "EXTMAX")))
(setq x1 (caar p) y1 (cadar p) x2 (caadr p) y2 (cadadr p))
(setq ss (ssget "_CP" (list (list x1 y1) (list x2 y1) (list x2 y2) (list x1 y2)) '((0 . "HATCH"))))
(command "zoom" "previous")
ss
)

(setq ss (select_visible_hatches))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you can get it from the code. I'm here if you need some further explanation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 19:06:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155845#M62899</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-03-14T19:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155868#M62900</link>
      <description>&lt;P&gt;Just wanted to point out that there is not a simple filter combination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would rather ZE first, then get extmin/max... if so. But newer versions might not need ZOOM at all.&lt;/P&gt;
&lt;DIV id="gtx-trans" style="position: absolute; left: 181px; top: 34px;"&gt;
&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 14 Mar 2021 18:59:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155868#M62900</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-03-14T18:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155901#M62901</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;I've changed code according to your suggestion regarding zoom.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you say solution is not simple but is doable by only using selection set filters.&lt;/P&gt;&lt;P&gt;There is no combination of filters that would remove non-visible entities from selection set.&lt;/P&gt;&lt;P&gt;We have filter modes for locked and thawed layers but not for hidden ones. I hope this can&lt;/P&gt;&lt;P&gt;reach to Autocad developers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;_CP and F filter modes only work on visible entities and we can exploit it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 19:16:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155901#M62901</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-03-14T19:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155949#M62902</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556"&gt;@hak_vz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Hint"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, I could use A (step 1)&lt;/P&gt;&lt;P&gt;"There is no combination of filters that would remove non-visible entities from selection set"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; And then deselect all around by pressing shift ( step 2)&lt;/P&gt;&lt;P&gt;It works quite good but looks not so elegant &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given code makes a selection set&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="karpki_0-1615751318865.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/893052iF2100F432FC9A8AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="karpki_0-1615751318865.png" alt="karpki_0-1615751318865.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but it is not highlighted in the drawing, how to f/e/ erase all selected ? or change layer or color&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 19:50:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155949#M62902</guid>
      <dc:creator>karpki</dc:creator>
      <dc:date>2021-03-14T19:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155966#M62903</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6772499"&gt;@karpki&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556"&gt;@hak_vz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Hint"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, I could use A (step 1)&lt;/P&gt;&lt;P&gt;"There is no combination of filters that would remove non-visible entities from selection set"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; And then deselect all around by pressing shift ( step 2)&lt;/P&gt;&lt;P&gt;It works quite good but looks not so elegant &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given code makes a selection set&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="karpki_0-1615751318865.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/893052iF2100F432FC9A8AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="karpki_0-1615751318865.png" alt="karpki_0-1615751318865.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but it is not highlighted in the drawing, how to f/e/ erase all selected ? or change layer or color&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;See my code posted at 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filters F and CP work only on visible entities. To avoid error with objects not visible on screen zoom is temporarily extended to drawing limits &amp;nbsp;&lt;/P&gt;&lt;P&gt;In my code selection set is retrieved from function&amp;nbsp; select_visible_hatches&lt;/P&gt;&lt;P&gt;If you want to use it in commands just use let say move !ss and all entities will be highlighted or you can&lt;/P&gt;&lt;P&gt;can use it in your code however you want.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(setq ss (select_visible_hatches))
(command "_.chprop" ss "" "Color" 1 ""); changes color to red&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 14 Mar 2021 20:17:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10155966#M62903</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-03-14T20:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10156269#M62904</link>
      <description>&lt;P&gt;Add (60 . 0)&lt;/P&gt;
&lt;P&gt;but if maybe the 60 doesn't exist, then&lt;/P&gt;
&lt;P&gt;(-4 . "&amp;lt;NOT")(60 . 1)&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 00:21:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10156269#M62904</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-03-15T00:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10158284#M62905</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Seems like 60.0 doesn't affect the result - it is the same in test drawing as without it.&lt;/P&gt;&lt;P&gt;In this drawing 3 hatches visible, 1 is frozen, and the other one is out of the screen&lt;/P&gt;&lt;P&gt;the other code gives nil:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="karpki_3-1615830173534.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/893456i84B62D657C40CBF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="karpki_3-1615830173534.png" alt="karpki_3-1615830173534.png" /&gt;&lt;/span&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 17:46:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10158284#M62905</guid>
      <dc:creator>karpki</dc:creator>
      <dc:date>2021-03-15T17:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10158339#M62906</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The given code "select_visible_hatches" with the added command "chprop" gives selection of 4 objects.&lt;/P&gt;&lt;P&gt;There are 3 hatches visible, 1 is out of the screen (but was also selected) and 1 frozen (missed cause "A" instead of "X") at the drawing.&lt;/P&gt;&lt;P&gt;So result is similar like in case of simple (ssget "A" '((0 . "hatch")))&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="karpki_0-1615831198693.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/893466iC783E863BEC70DC6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="karpki_0-1615831198693.png" alt="karpki_0-1615831198693.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I understood to use "C" "CP" or "F" is a bad idea in this situation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the issue how to select only objects visible at the screen is unsolved yet unfortunatelly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even more I would say&lt;/P&gt;&lt;P&gt;"A" selects objects also at the switched off layers what is again bad solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 18:05:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10158339#M62906</guid>
      <dc:creator>karpki</dc:creator>
      <dc:date>2021-03-15T18:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10158359#M62907</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6772499"&gt;@karpki&lt;/a&gt;&amp;nbsp;wrote:
&lt;P&gt;Seems like 60.0 doesn't affect the result ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I suspect the 60-code entry, which the DXF reference says is about "visibility," may be about &lt;EM&gt;Visibility State&lt;/EM&gt; inside Block definitions, though I'm not sure.&amp;nbsp; It's certainly &lt;EM&gt;not&lt;/EM&gt; about whether something is visible or not because the &lt;EM&gt;Layer&lt;/EM&gt; it's on is off-or-on / frozen-or-thawed.&amp;nbsp; And my next guess -- that it's for things that are not visible because HIDEOBJECTS has been used on them -- didn't pan out; there's no 60-code entry to filter for, either way.&amp;nbsp; In fact the entity data list is identical throughout, so it's not some other DXF code, either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HIDEOBJECTS appears to affect &lt;EM&gt;Extended Data&lt;/EM&gt;, which for something hidden in that way contains this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;FONT color="#000000"&gt;("ACAD" (1010 0.0 0.0 0.0)) ("ACAD" (1010 0.0 0.0 0.0))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;whereas after UNhiding, or before ever Hiding, it has just one of those:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;FONT color="#000000"&gt;("ACAD" (1010 0.0 0.0 0.0))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case, you wouldn't be able to filter for that in (ssget) selection.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 18:19:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10158359#M62907</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-03-15T18:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10158429#M62908</link>
      <description>Perhaps I misunderstood.&lt;BR /&gt;All objects have a visibility property that you can turn on/off, though&lt;BR /&gt;perhaps only programmatically.  I think that maybe you are speaking of ones&lt;BR /&gt;that you can see vs. ones that may be frozen or offscreen or hidden behind&lt;BR /&gt;wipeouts or background fills or such.&lt;BR /&gt;If that's the case then use what (I forget... maybe Kent) suggested, which&lt;BR /&gt;I think was an ssget with filter and crossing with points computed from the&lt;BR /&gt;current view.  I have that math somewhere.  It involves "viewctr" and&lt;BR /&gt;"viewsize."&lt;BR /&gt;That way you will include ones that might just be hidden.  There's no way&lt;BR /&gt;to filter for ones that are hidden, though you could use DRAWORDER to bring&lt;BR /&gt;them all to the front, if you wish.</description>
      <pubDate>Mon, 15 Mar 2021 18:39:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10158429#M62908</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-03-15T18:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10158472#M62909</link>
      <description>&lt;P&gt;&lt;FONT color="#0000FF"&gt;Bonjour &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6772499"&gt;@karpki&lt;/a&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;I am not sure I understood but I propose a solution that will make a selection of hatches that are visible on the screen, without any notion of layer, it is a selection "window" top left of the screen bottom right of the screen.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;as it is window the whole hatch must be visible&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;therefore the hatching must be separated when drawing&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;Amicalement&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:H_Vert_Ecran ( / diago hd bd ss)
  (defun zone_ecran (/ A B C D X)
  (setq B (getvar "VIEWSIZE")
        A (* B (/ (car (getvar "SCREENSIZE")) (cadr (getvar "SCREENSIZE"))))
        X (trans (getvar "VIEWCTR") 1 2)
        C (trans (list (- (car X) (/ A 2.0)) (+ (cadr X) (/ B 2.0))) 2 1)
        D (trans (list (+ (car X) (/ A 2.0)) (- (cadr X) (/ B 2.0))) 2 1)
  )
  (list C D)
)  
(setq diago (zone_ecran)
      hg (car diago)
      bd (cadr diago)
      )
(setq ss (ssget  "_w" hg bd '((0 . "HATCH"))))
(command "_.chprop" ss "" "_Color" 3 "")
  )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 18:55:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10158472#M62909</guid>
      <dc:creator>-didier-</dc:creator>
      <dc:date>2021-03-15T18:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10158670#M62910</link>
      <description>Bonjour aussi.&lt;BR /&gt;You've got all the corner math.  Now just change it to WindowCrossing.&lt;BR /&gt;Good job!</description>
      <pubDate>Mon, 15 Mar 2021 20:09:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10158670#M62910</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-03-15T20:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10158958#M62911</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6772499"&gt;@karpki&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The given code "select_visible_hatches" with the added command "chprop" gives selection of 4 objects.&lt;/P&gt;&lt;P&gt;There are 3 hatches visible, 1 is&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt; out of the screen&lt;/FONT&gt;&lt;/STRONG&gt; (but was also selected) and 1 frozen (missed cause "A" i&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;As I understood to use "C" "CP" or "F" is a bad idea in this situation.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the issue how to select only objects visible at the screen is unsolved yet unfortunatelly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Obviously you didn't understand. For an object to be hidden it has to be on a hidden layer i.e layer visibility turned off. Code works in a way that it temporarily zooms whole drawing through it limits and in that action it also selects entity that is being out of screen but on visible layer. If you want to select only entities that are currently visible on screen then remove parts of the code that are changing zoom.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using C CP and F selection modes works really OK and its actually the fastest selection option when dealing with a lots of elements. For example my own code that I use for producing terrain sections has helped me today to produce some 50 sections over an area of 2×2 km with some 350 000 line objects in less then an hour (uses ssget F...) to separate only line objects on a crossing line. Imagine how long it would take to test all entities for possible intersection by using command inters or vla-intersectwith. Using F option filters out intersectiong object in a flick of second while testing whole set would take much longer and can even cause computer to halt.&lt;/P&gt;&lt;P&gt;IMOO, well written selection set filters are the best way to speed up code execution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zooming full extents is here just as an security that all visible objects (on visible layers) in whole drawing are selected. If you know how CP or F filter works,&amp;nbsp; zooming out is then actually not needed. So I don't use it in my sections code but instantly zoom out to make my whole drawing visible.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 22:33:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10158958#M62911</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-03-15T22:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10159015#M62912</link>
      <description>&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556"&gt;@hak_vz&lt;/a&gt;&lt;BR /&gt;Are you saying that hidden objects are visible?&lt;BR /&gt;Yes, there is a huge difference between visible to the eye and visible to&lt;BR /&gt;ssget.&lt;BR /&gt;On this I think we would have to go with the OP's interpretation of visible.</description>
      <pubDate>Mon, 15 Mar 2021 22:48:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10159015#M62912</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-03-15T22:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to select only visible hatches</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10162143#M62913</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;It works as I was thinking it should.&lt;/P&gt;&lt;P&gt;Now I can select different object which I see at the screen and everything else like switched off or frozen or out of the screen will be ignored!&lt;/P&gt;&lt;P&gt;That's fantastic!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry All Involved to this discussion if I mixed up you.&lt;/P&gt;&lt;P&gt;Especcialy &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556"&gt;@hak_vz&lt;/a&gt;&amp;nbsp; Your power to help is incredible! Thank you !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I work only with 2-D drawings quite many years. That's probably the reason why I even couldn't imagine that visible or invisible mean something else except what I see or not at the screen.&lt;/P&gt;&lt;P&gt;Only yesterday I discovered that it can be understood differently!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards !!!!!&lt;/P&gt;&lt;P&gt;Kirill&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 20:21:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-select-only-visible-hatches/m-p/10162143#M62913</guid>
      <dc:creator>karpki</dc:creator>
      <dc:date>2021-03-16T20:21:59Z</dc:date>
    </item>
  </channel>
</rss>

