<?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: Help with ssget inside block editor in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7555870#M111911</link>
    <description>&lt;P&gt;I found a solution for the not visible objects.&lt;/P&gt;
&lt;PRE&gt;(repeat
	(setq i (sslength sel))											;To convert each objetc in the selection set to vl-object
	(setq ename (ssname sel (setq i (1- i))))	
	(setq vlobj (vlax-ename-&amp;gt;vla-object ename))	
	(if (= :vlax-false (vla-get-visible vlobj))
		(ssdel ename sel)											;Remove the objects that had been hide in "(command "-bvhide" selh "" "")"
	);if
);repeat&lt;/PRE&gt;
&lt;P&gt;Need only the filter for objects that are only in the block editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 19 Nov 2017 04:00:37 GMT</pubDate>
    <dc:creator>msarqui</dc:creator>
    <dc:date>2017-11-19T04:00:37Z</dc:date>
    <item>
      <title>Help with ssget inside block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7555795#M111910</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this ssget that works pretty good for me but now I want to filter only objects that are in the block editor. So, how can I add a filter for that without changing the existing structure of this ssget? (getvar "ctab")?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Better yet... Because I am using this with dynamic blocks with visibilitys, is it possible to filter only objects that are visible? I mean, do not include the ones that have been hide by the "bhide" command?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(setq sel (ssget "_X" '(&lt;BR /&gt;&amp;nbsp;(-4 . "&amp;lt;OR")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;(0 . "WIPEOUT")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;(0 . "INSERT")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(-4 . "&amp;lt;AND")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(0 . "HATCH")(2 . "ANSI31")(62 . 2)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(-4 . "AND&amp;gt;")&lt;BR /&gt;&amp;nbsp;(-4 . "OR&amp;gt;")&lt;BR /&gt;)))&lt;/PRE&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Nov 2017 01:41:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7555795#M111910</guid>
      <dc:creator>msarqui</dc:creator>
      <dc:date>2017-11-19T01:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ssget inside block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7555870#M111911</link>
      <description>&lt;P&gt;I found a solution for the not visible objects.&lt;/P&gt;
&lt;PRE&gt;(repeat
	(setq i (sslength sel))											;To convert each objetc in the selection set to vl-object
	(setq ename (ssname sel (setq i (1- i))))	
	(setq vlobj (vlax-ename-&amp;gt;vla-object ename))	
	(if (= :vlax-false (vla-get-visible vlobj))
		(ssdel ename sel)											;Remove the objects that had been hide in "(command "-bvhide" selh "" "")"
	);if
);repeat&lt;/PRE&gt;
&lt;P&gt;Need only the filter for objects that are only in the block editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Nov 2017 04:00:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7555870#M111911</guid>
      <dc:creator>msarqui</dc:creator>
      <dc:date>2017-11-19T04:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ssget inside block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7558217#M111912</link>
      <description>&lt;P&gt;Use A for all objects instead of X for the entire database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(setq sel (ssget &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;"_A"&lt;/FONT&gt;&lt;/STRONG&gt; '(
 (-4 . "&amp;lt;OR")
  (0 . "WIPEOUT")
  (0 . "INSERT")
   (-4 . "&amp;lt;AND")
    (0 . "HATCH")(2 . "ANSI31")(62 . 2)
   (-4 . "AND&amp;gt;")
 (-4 . "OR&amp;gt;")
)))&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Nov 2017 12:39:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7558217#M111912</guid>
      <dc:creator>DannyNL</dc:creator>
      <dc:date>2017-11-20T12:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ssget inside block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7559794#M111913</link>
      <description>Sorry Danny.&lt;BR /&gt;This will still select the objects that are outside the block editor.</description>
      <pubDate>Mon, 20 Nov 2017 19:49:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7559794#M111913</guid>
      <dc:creator>msarqui</dc:creator>
      <dc:date>2017-11-20T19:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ssget inside block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7560204#M111914</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;msarqui schrieb:&lt;BR /&gt;Sorry Danny.&lt;BR /&gt;This will still select the objects that are outside the block editor.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;You can not Filter objects outside the current Block(outside of BEDIT), NO!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;So your problem isn´t exist, but why you are thinking it is existing? No idea why you think that.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Or I am wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the wanted selectionset it is need to define clear filter that present exactly what you want,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;but you are currently unable to technically handle this issue to describe completely and correctly&lt;BR /&gt;that makes it a bit difficult for the helpers;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inside the BEDIT, at this Moments you want to create a selectionset:&lt;/P&gt;
&lt;P&gt;a) Objects on Layers that are OFF&lt;/P&gt;
&lt;P&gt;b) Objects on Layers that are FREEZE&lt;/P&gt;
&lt;P&gt;c) Objects which are not visible (not Layervisibility)&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;d) Objects which are not visible because the current visibleState is hideing the object.&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;d) how to handle nested Objects (if there is a nested Block inside our current)&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The d) is to much for this Thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;The answer for [ c) hidden.. ] visible Objects is DXF60=0 (= visible), so attach this as filter to your ssget filterlist&amp;nbsp; &lt;STRONG&gt;(60 . 0)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;( and once again I allow myself to say at the point: I can not imagine that this "INSIDE BEDIT" thing is a really good way, but we still do not know the actual data and tasks )&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 22:07:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7560204#M111914</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-11-20T22:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ssget inside block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7560210#M111915</link>
      <description>&lt;P&gt;(60 . 0) = VISIBLY can only work if you set &lt;A href="http://help.autodesk.com/view/ACD/2018/ENU/?guid=GUID-BF628BE6-7100-4606-9185-44007503E8DE" target="_blank"&gt;BVMODE to 0&lt;/A&gt;, because by Value 1 all Objecs are "visible" &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 22:11:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7560210#M111915</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-11-20T22:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ssget inside block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7560681#M111916</link>
      <description>&lt;P&gt;Sebastian,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My goal was to filter visible objects inside BEDIT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I dug I little bit and I finally found the answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(setq sel (ssget "_X" '(
&amp;nbsp;(-4 . "&amp;lt;OR")
&amp;nbsp;&amp;nbsp;(-4 . "&amp;lt;AND") (0 . "WIPEOUT") &lt;STRONG&gt;&lt;FONT color="#0000ff"&gt;(67 . 0)&lt;/FONT&gt; &lt;FONT color="#ff0000"&gt;(60 . 0)&lt;/FONT&gt;&lt;/STRONG&gt; (-4 . "AND&amp;gt;")
&amp;nbsp;&amp;nbsp;(-4 . "&amp;lt;AND") (0 . "INSERT") &lt;STRONG&gt;&lt;FONT color="#0000ff"&gt;(67 . 0)&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;(60 . 0)&lt;/STRONG&gt;&lt;/FONT&gt; (-4 . "AND&amp;gt;")
&amp;nbsp;&amp;nbsp;(-4 . "&amp;lt;AND") (0 . "HATCH") (2 . "ANSI31") (62 . 2) &lt;STRONG&gt;&lt;FONT color="#0000ff"&gt;(67 . 0)&lt;/FONT&gt; &lt;FONT color="#ff0000"&gt;(60 . 0)&lt;/FONT&gt;&lt;/STRONG&gt; (-4 . "AND&amp;gt;")
&amp;nbsp;(-4 . "OR&amp;gt;")
)))&lt;/PRE&gt;
&lt;P&gt;67 code will filter current space. And you show me 60 code to filter visible elements.&lt;/P&gt;
&lt;P&gt;Now its working perfect for me.&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 03:14:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7560681#M111916</guid>
      <dc:creator>msarqui</dc:creator>
      <dc:date>2017-11-21T03:14:28Z</dc:date>
    </item>
    <item>
      <title>Betreff: Help with ssget inside block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7560980#M111917</link>
      <description>You should write more exactly, only the phras "visible objects" are hard to understand if we have&lt;BR /&gt;Layer off/on&lt;BR /&gt;Layer thaw/freeze&lt;BR /&gt;And objectd which temporary invisible by command are possible too, if you use in the active  Bedit-session.&lt;BR /&gt;&lt;BR /&gt;It is like to google for the keyword "help" , good results impossible.&lt;BR /&gt;&lt;BR /&gt;DXF 67 is only a flag, Modeltab current or not?&lt;BR /&gt;Current Layout/space is DXF 410&lt;BR /&gt;&lt;BR /&gt;But why? Please answer my question why you think you can select objects outside BEDIT and now "outside current space".&lt;BR /&gt;Which Version you are using (command _vernum)?&lt;BR /&gt;PLEASE show me an example that I can understand your posts about "outside BEDIT" and "current spaces" (dwg&amp;amp;screenshot/screencast).&lt;BR /&gt;&lt;BR /&gt;If objects on off and freezed Layers are ok for you and you think about BVMODE=0&lt;BR /&gt;&lt;BR /&gt;(setq sel (ssget "_X" (list&amp;nbsp;'(60 . 0)'(-4 . "&amp;lt;OR") '(0 . "WIPEOUT,INSERT")&amp;nbsp;'(-4 . "&amp;lt;AND") '(0 . "HATCH") '(2 . "ANSI31") '(62 . 2)'(-4 . "AND&amp;gt;") &amp;nbsp;'(-4 . "OR&amp;gt;") )))</description>
      <pubDate>Tue, 21 Nov 2017 07:39:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7560980#M111917</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-11-21T07:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ssget inside block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7561039#M111918</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;You do not need to answer, I finally discovered/understand it.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Just to make it easier for some readers as for me:&lt;BR /&gt;&lt;BR /&gt;Within BEDIT, ssget A and X..ignores normal modelspace-objects*, &lt;STRONG&gt;but notic objects in paperspace (Layouts) !&lt;/STRONG&gt;&lt;BR /&gt;If you want to select all Objects inside the BEdit you can set the SSGET filter to modelspace (67.0)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*if you edit the hole modelspace as block, all modelspace objects are inside the bedit, but if you edit a (real)&lt;BR /&gt;internal Blockdefinition the Block is temporary your modelspace and all usual modelspace objects are "away".&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;(setq sel (ssget "_X" '((60 . 0)(67 . 0) ; Visible-Flag and filter only (current) modelspace objects
                        (-4 . "&amp;lt;OR")
                              (0 . "WIPEOUT,INSERT")
                              (-4 . "&amp;lt;AND") (0 . "HATCH") (2 . "ANSI31") (62 . 2) (-4 . "AND&amp;gt;")
                        (-4 . "OR&amp;gt;")
                       )
)         )&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Please excuse my confusion&lt;/STRONG&gt; and I'm happy to have learned something again.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 08:18:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7561039#M111918</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-11-21T08:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ssget inside block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7561145#M111919</link>
      <description>&lt;P&gt;Good to know, thanks!&lt;/P&gt;&lt;P&gt;I didn't check (SSGET "_A" ....) with paperspace objects but only modelspace objects. So learned something new as well&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 09:08:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7561145#M111919</guid>
      <dc:creator>DannyNL</dc:creator>
      <dc:date>2017-11-21T09:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ssget inside block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7561254#M111920</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;DannyNL schrieb:&lt;BR /&gt;
&lt;P&gt;I didn't check (SSGET "_A" ....) with paperspace objects but only modelspace objects. &lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This was not clear to me, but there had to be a reason why msarqui (in my view) got mixed up.&lt;BR /&gt;Then I tested at some point as it is with the paperspace.&lt;BR /&gt;So: The BEdit environment is temporarily a modelspace, but the paper area exists in the moment "as usual"&lt;BR /&gt;&lt;BR /&gt;Me too, and statements like "67 code will filter current space." had confused me additional.&lt;BR /&gt;Because 67=0 isn't filter the current Space, it filter the modelspace.&lt;BR /&gt;(But inside the BEdit you are alltime "in modelspace", so 67=0 is the current space if Blockeditor=1)&lt;BR /&gt;&lt;BR /&gt;Thanks to msarqui for this discussion, not only did you have some of it, Kudos4u&lt;BR /&gt;Usually you do not work with Lisp inside the blockeditor (very special thing),&lt;BR /&gt;but for people who work with scripts (*. scr) this could also be of interest if you use the objectselection method ALL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 09:52:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7561254#M111920</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-11-21T09:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ssget inside block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7569236#M111921</link>
      <description>&lt;P&gt;This is better yet than mine.&lt;BR /&gt;Thanks Sebatian!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 21:56:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-ssget-inside-block-editor/m-p/7569236#M111921</guid>
      <dc:creator>msarqui</dc:creator>
      <dc:date>2017-11-23T21:56:33Z</dc:date>
    </item>
  </channel>
</rss>

