<?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 How do I just refresh one feature layer using PartialRefresh in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-do-i-just-refresh-one-feature-layer-using/m-p/72180#M403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm creating an ArcMap add-in for dynamically updating a feature layer. My map have many other layers. Every time I call ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeography, myFeatureLayer, null), all other layers are refreshed as well. How can I just refresh my layer? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jan 2017 14:16:59 GMT</pubDate>
    <dc:creator>LimingWu</dc:creator>
    <dc:date>2017-01-13T14:16:59Z</dc:date>
    <item>
      <title>How do I just refresh one feature layer using PartialRefresh</title>
      <link>https://community.esri.com/t5/developers-questions/how-do-i-just-refresh-one-feature-layer-using/m-p/72180#M403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm creating an ArcMap add-in for dynamically updating a feature layer. My map have many other layers. Every time I call ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeography, myFeatureLayer, null), all other layers are refreshed as well. How can I just refresh my layer? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 14:16:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-do-i-just-refresh-one-feature-layer-using/m-p/72180#M403</guid>
      <dc:creator>LimingWu</dc:creator>
      <dc:date>2017-01-13T14:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I just refresh one feature layer using PartialRefresh</title>
      <link>https://community.esri.com/t5/developers-questions/how-do-i-just-refresh-one-feature-layer-using/m-p/72181#M404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you look at the help file for &lt;A href="http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#iactiveview_partialrefresh.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;IActiveView&lt;/A&gt; it is fairly clear that you need to ensure that the individual layers have their &lt;A href="http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#ILayer_Cached.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;cached&lt;/A&gt; property set to True for partial refresh to take affect. Below is some VBA code to show you how to set this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Public Sub &lt;SPAN class="token function"&gt;test&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 Dim pMXDocument As IpMXDocumentocument
 Set pMXDocument &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ThisDocument
 
 Dim pMap As IMap
 Set pMap &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pMXDocument&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FocusMap
 
 Dim pLayer As ILayer
 Set pLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pMap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Layer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 
 Dim pActiveView As IActiveView
 Set pActiveView &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pMXDocument&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ActiveView
 
 ' whole screen refreshes
 pActiveView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PartialRefresh esriViewGeography&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pLayer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Nothing
MsgBox &lt;SPAN class="string token"&gt;"now cached refresh"&lt;/SPAN&gt;
 
 ' Ensure individual layer &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; cashed
 pLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Cached &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; True
 pActiveView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PartialRefresh esriViewGeography&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pLayer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Nothing
End Sub‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;As a side note questions related to ArcObjects should be tagged as&amp;nbsp;ArcObjects or posted in the ArcObjects SDK, you are more likely to capture the attention of the right sort of person.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:47:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-do-i-just-refresh-one-feature-layer-using/m-p/72181#M404</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2021-12-10T22:47:44Z</dc:date>
    </item>
  </channel>
</rss>

