<?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: Clear Selection on screen OR Select none in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/clear-selection-on-screen-or-select-none/m-p/3249400#M74183</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would anyone have a solution for this? I can't find a solution elsewhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SendingString cancels my current command.&amp;nbsp;And trying to set a selection set with Nothing in it creates an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(Chr(27), False, False, False)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;psr = Nothing&lt;/P&gt;&lt;P&gt;ed.SetImpliedSelection(psr.Value)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Dec 2011 20:35:21 GMT</pubDate>
    <dc:creator>SRSDS</dc:creator>
    <dc:date>2011-12-04T20:35:21Z</dc:date>
    <item>
      <title>Clear Selection on screen OR Select none</title>
      <link>https://forums.autodesk.com/t5/net-forum/clear-selection-on-screen-or-select-none/m-p/2292862#M74182</link>
      <description>--Or you can just PInvoke acedSSSetFirst, which is what&lt;BR /&gt;
the SelectObjects() method does.--&lt;BR /&gt;
&lt;BR /&gt;
My limited training materials does not tell me how to get the acedsssetfirst selection set, I want to clear it out.&lt;BR /&gt;
&lt;BR /&gt;
I used:&lt;BR /&gt;
&lt;BR /&gt;
Autodesk.AutoCAD.Internal.Utils.SelectObjects(ids); &lt;BR /&gt;
&lt;BR /&gt;
to get some objects for zooming, and now I want to un-select them for the user to move on.&lt;BR /&gt;
&lt;BR /&gt;
In vba i could get a selection set by name from a group of selection sets in the drawing.  Can I do that in .net?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
jvj</description>
      <pubDate>Thu, 03 Jul 2008 21:21:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/clear-selection-on-screen-or-select-none/m-p/2292862#M74182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-03T21:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Selection on screen OR Select none</title>
      <link>https://forums.autodesk.com/t5/net-forum/clear-selection-on-screen-or-select-none/m-p/3249400#M74183</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would anyone have a solution for this? I can't find a solution elsewhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SendingString cancels my current command.&amp;nbsp;And trying to set a selection set with Nothing in it creates an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(Chr(27), False, False, False)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;psr = Nothing&lt;/P&gt;&lt;P&gt;ed.SetImpliedSelection(psr.Value)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2011 20:35:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/clear-selection-on-screen-or-select-none/m-p/3249400#M74183</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2011-12-04T20:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Selection on screen OR Select none</title>
      <link>https://forums.autodesk.com/t5/net-forum/clear-selection-on-screen-or-select-none/m-p/3249406#M74184</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;use this: &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;tAcadDocED.SetImpliedSelection(New ObjectId() {})&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH, - alfred -&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2011 20:49:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/clear-selection-on-screen-or-select-none/m-p/3249406#M74184</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2011-12-04T20:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Selection on screen OR Select none</title>
      <link>https://forums.autodesk.com/t5/net-forum/clear-selection-on-screen-or-select-none/m-p/3249418#M74185</link>
      <description>&lt;P&gt;I did try something similar but it also didn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Dim arOBJIDS(0) As ObjectId&lt;BR /&gt;'arOBJIDS(0) = Nothing&lt;BR /&gt;'ed.SetImpliedSelection(arOBJIDS)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks once again!!&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2011 21:08:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/clear-selection-on-screen-or-select-none/m-p/3249418#M74185</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2011-12-04T21:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Selection on screen OR Select none</title>
      <link>https://forums.autodesk.com/t5/net-forum/clear-selection-on-screen-or-select-none/m-p/3249420#M74186</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; I did try something similar but it also didn't work.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; Dim arOBJIDS(0) As ObjectId&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;you have an array declared with one item, I did declare an array with 0 items, that's the difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, good to hear it's working now for you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2011 21:12:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/clear-selection-on-screen-or-select-none/m-p/3249420#M74186</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2011-12-04T21:12:35Z</dc:date>
    </item>
  </channel>
</rss>

