<?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 Attribute Window is not refreshed after programatically clearing selections. in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/attribute-window-is-not-refreshed-after/m-p/506069#M13586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everybody:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am using an event handler to automatically clear all the selections when a point in a specific layer is created. The clearing works for the attribute table of the layer and the selection on the map. However, the clearing doesn't work with the Attribute Window of the editor. This causes a strange state after the point is created: nothing is selected on the map (no blue highlight), but the Attribute Window tree view shows a newly created point feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Why does this happen? How to synchronize the tree view in Attribute Window?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
// * this event handler is re-attached to the IEditEvents_Event.OnSelectionChanged of the ArcMap editor extension, every time
//&amp;nbsp;&amp;nbsp;&amp;nbsp; when a point of a specific layer is created.
// * This function is called when an edit session is started.
// * m_application is the IApplication of the ArcMap, and m_editor is the running editor extension
void Extension_OnSelectionChanged()
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; (m_editor as IEditEvents_Event).OnSelectionChanged -= Extension_OnSelectionChanged
&amp;nbsp;&amp;nbsp;&amp;nbsp; ((m_application.Document as IMxDocument).FocusMap as IMap).ClearSelection();
&amp;nbsp;&amp;nbsp;&amp;nbsp; ((m_application.Document as IMxDocument).FocusMap as ISelectionEvents).SelectionChanged();
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2013 16:18:54 GMT</pubDate>
    <dc:creator>SuiHuang</dc:creator>
    <dc:date>2013-02-26T16:18:54Z</dc:date>
    <item>
      <title>Attribute Window is not refreshed after programatically clearing selections.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/attribute-window-is-not-refreshed-after/m-p/506069#M13586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everybody:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am using an event handler to automatically clear all the selections when a point in a specific layer is created. The clearing works for the attribute table of the layer and the selection on the map. However, the clearing doesn't work with the Attribute Window of the editor. This causes a strange state after the point is created: nothing is selected on the map (no blue highlight), but the Attribute Window tree view shows a newly created point feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Why does this happen? How to synchronize the tree view in Attribute Window?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
// * this event handler is re-attached to the IEditEvents_Event.OnSelectionChanged of the ArcMap editor extension, every time
//&amp;nbsp;&amp;nbsp;&amp;nbsp; when a point of a specific layer is created.
// * This function is called when an edit session is started.
// * m_application is the IApplication of the ArcMap, and m_editor is the running editor extension
void Extension_OnSelectionChanged()
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; (m_editor as IEditEvents_Event).OnSelectionChanged -= Extension_OnSelectionChanged
&amp;nbsp;&amp;nbsp;&amp;nbsp; ((m_application.Document as IMxDocument).FocusMap as IMap).ClearSelection();
&amp;nbsp;&amp;nbsp;&amp;nbsp; ((m_application.Document as IMxDocument).FocusMap as ISelectionEvents).SelectionChanged();
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 16:18:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/attribute-window-is-not-refreshed-after/m-p/506069#M13586</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2013-02-26T16:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Window is not refreshed after programatically clearing selections.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/attribute-window-is-not-refreshed-after/m-p/506070#M13587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Java, the Editor class has this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;A href="http://forums.arcgis.../../../com/esri/arcgis/editor/Editor.html#contentsCleared(com.esri.arcgis.carto.IActiveViewEventsContentsClearedEvent)"&gt;contentsCleared&lt;/A&gt;&lt;/STRONG&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.../../../com/esri/arcgis/carto/IActiveViewEventsContentsClearedEvent.html"&gt;IActiveViewEventsContentsClearedEvent&lt;/A&gt;&lt;SPAN&gt; theEvent)&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fired when the contents of the view is cleared.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;A href="http://forums.arcgis.../../../com/esri/arcgis/editor/Editor.html#setAttributeEditAll(boolean)"&gt;setAttributeEditAll&lt;/A&gt;&lt;/STRONG&gt;&lt;SPAN&gt;(boolean pFlag)&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Indicates if the pre-populate attributes dialog is used for all&amp;nbsp; layers or just the selected layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does .NET have the equivalent methods?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 21:14:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/attribute-window-is-not-refreshed-after/m-p/506070#M13587</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-02-27T21:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Window is not refreshed after programatically clearing selections.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/attribute-window-is-not-refreshed-after/m-p/506071#M13588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What about "&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/0001/000100000097000000.htm"&gt;Invalidating the Display&lt;/A&gt;&lt;SPAN&gt;"?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 21:22:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/attribute-window-is-not-refreshed-after/m-p/506071#M13588</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-02-27T21:22:37Z</dc:date>
    </item>
  </channel>
</rss>

