<?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 unselect feature after open the map document? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-unselect-feature-after-open-the-map/m-p/629630#M16967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Try map_con_main.ActiveView.PartialRefresh esriViewGeoSelection, Nothing, Nothing. This should only refresh your selection features.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; Thanks for your response.My mxd do not happen the virtual selection again after I add a polygon feature to my mxd document. I thougt your ideal may not make it. I think that may be a bug.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2013 16:14:06 GMT</pubDate>
    <dc:creator>kju</dc:creator>
    <dc:date>2013-10-23T16:14:06Z</dc:date>
    <item>
      <title>How to unselect feature after open the map document?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-unselect-feature-after-open-the-map/m-p/629626#M16963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do not know way,when open the map document,I found that one of the feature is holding the 'selected' status.I try everything I can to unselect the feature which result in flickering the all of the form.So what can I do now?Thanks very much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I did.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Add the code:&lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;map_con_main.Map.ClearSelection();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map_con_main.ActiveView.Refresh();&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;to the method "FormMain_Shown"an "OnAfterScreenDraw"and so no.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 23:56:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-unselect-feature-after-open-the-map/m-p/629626#M16963</guid>
      <dc:creator>kju</dc:creator>
      <dc:date>2013-10-22T23:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to unselect feature after open the map document?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-unselect-feature-after-open-the-map/m-p/629627#M16964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try map_con_main.ActiveView.PartialRefresh esriViewGeoSelection, Nothing, Nothing. This should only refresh your selection features.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 12:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-unselect-feature-after-open-the-map/m-p/629627#M16964</guid>
      <dc:creator>HailiangShen</dc:creator>
      <dc:date>2013-10-23T12:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to unselect feature after open the map document?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-unselect-feature-after-open-the-map/m-p/629628#M16965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I do not know way,when open the map document,I found that one of the feature is holding the 'selected' status.I try everything I can to unselect the feature which result in flickering the all of the form.So what can I do now?Thanks very much.&lt;BR /&gt;Here is what I did.&lt;BR /&gt;Add the code:&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map_con_main.Map.ClearSelection();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map_con_main.ActiveView.Refresh();&lt;/PRE&gt;&lt;BR /&gt;to the method "FormMain_Shown"an "OnAfterScreenDraw"and so no.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If calling ClearSelection and Refresh doesn't clear the selection then a) the feature isn't actually selected (maybe it's a graphic element or something that makes it appear to be selected?) or b) map_con_main.Map isn't referencing the map you think it's referencing.&amp;nbsp; Is this running in ArcMap?&amp;nbsp; If yes, then what happens if you click the ArcMap Clear Feature Selection button on the toolbar?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:47:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-unselect-feature-after-open-the-map/m-p/629628#M16965</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2021-12-12T02:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to unselect feature after open the map document?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-unselect-feature-after-open-the-map/m-p/629629#M16966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If calling ClearSelection and Refresh doesn't clear the selection then a) the feature isn't actually selected (maybe it's a graphic element or something that makes it appear to be selected?) or b) map_con_main.Map isn't referencing the map you think it's referencing.&amp;nbsp; Is this running in ArcMap?&amp;nbsp; If yes, then what happens if you click the ArcMap Clear Feature Selection button on the toolbar?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; Everything you said is right, opening in arcmap instead of running in my app. did make the same situation before,and it appear selected but not,unselect on Button event will remove the virtual selection. I do not know why,sometimes I just do not want to be aware of this, open another mxd does not the happen like this.When I add a polygon feature to the mxd,it disappear(turn normal). I thought that may be a bug.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 16:07:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-unselect-feature-after-open-the-map/m-p/629629#M16966</guid>
      <dc:creator>kju</dc:creator>
      <dc:date>2013-10-23T16:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to unselect feature after open the map document?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-unselect-feature-after-open-the-map/m-p/629630#M16967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Try map_con_main.ActiveView.PartialRefresh esriViewGeoSelection, Nothing, Nothing. This should only refresh your selection features.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; Thanks for your response.My mxd do not happen the virtual selection again after I add a polygon feature to my mxd document. I thougt your ideal may not make it. I think that may be a bug.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 16:14:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-unselect-feature-after-open-the-map/m-p/629630#M16967</guid>
      <dc:creator>kju</dc:creator>
      <dc:date>2013-10-23T16:14:06Z</dc:date>
    </item>
  </channel>
</rss>

