Partial Refresh doesn't work as described

3811
3
03-02-2011 10:31 PM
LionelMartz
New Contributor II
Hallo again,

know I am challanging another Problem.
I would like to refresh a little feature within the Map. I followed this Guide: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//000100000242000000
Now I have a big resource of different trys to let ArcMap do what I want. but...

my favorite was:
_activeView.PartialRefresh(esriViewDrawPhase.esriViewGeography, featurelayer, envelope)


In all my trys i just had two different kinds of results:
1. Everything within the envelope has been refreshed (every layer)
2. <nothing happens>

By Googling the problem i found another Post describing the same thing:
http://forums.esri.com/Thread.asp?c=159&f=1707&t=180719
But the Solution is not what i expected.

I hope somone knows a practical solution
0 Kudos
3 Replies
ScottMcNeil
New Contributor
I have run into this problem as well.  I stumbled into it trying to redraw polylines on the map.
Here is the thread I started.

http://forums.arcgis.com/threads/32810

I have two problems using this approach.  1) often a layer's previous contents are left on the map (not removed), and 2) periodically, the entire map is repainted for no apparent reason...

If I slow down my updates, I can make the first problem go away (not a practical solution for the real world...).  The second problem occurs regardless of how fast or slow I send my updates.
0 Kudos
MiriRevivo
Occasional Contributor
There is an open bug at ESRI regarding this issue - partial refresh actually refreshes all layers instead of taking the given parameters into consideration. It is open since version 9.3.1 but occurs also with 10.0.
I managed to work around the problem in one of our clients' application by using IViewRefresh::AnimationRefresh.
0 Kudos
AlexanderGray
Occasional Contributor III

Any hope this will ever be fixed.  Tried in 10.2 same things, everything refreshed.

0 Kudos