POST
|
ESRI finally provided the answer to this. The registry setting is in a different location, but works the same as before. HKEY_CURRENT_USER_\Software\ESRI\Engine10.1\ArcMap\Settings add DWORD value, ReverseMouseWheel = 0
... View more
04-24-2013
09:44 AM
|
0
|
0
|
472
|
POST
|
Do the items that update flicker? No flicker on any item that doesn't move. Obviously, if it moves it is erased and redrawn. I'm in the process of migrating from 9.3.1 to 10.1, but sticking with the engine for now. Hope to have some time to experiment with the new runtime in the near future though.
... View more
04-09-2013
01:31 PM
|
0
|
0
|
241
|
POST
|
I believe I ran into this same crash issue when I experimented with Graphics Tracker last year. Never resolved it because I found the overall performance for my application to be inadequate (even without removing any items). I ended up using BaseCustomLayer and partial redraws. It was not too difficult overall, but was tricky to get it to work without redrawing all my objects (caused annoying flickering), so I had to put them into different layers to get them to draw independently. Depending on how many objects you have this may be an option for you. I currently use it with up to about 20 layers, each having between 5-10 objects with labels, each updating once per second, and have adequate performance for my application (CPU is kept fairly busy though). I also check for updates in a timer routine to prevent too many redraws.
... View more
04-09-2013
12:39 PM
|
0
|
0
|
414
|
POST
|
I should add that I can reverse the zoom direction in ArcMap 10.1 using the options setting, but this has no affect on zoom behavior in the Arc engine application (not that this is a viable option-- just thought there may be a new registry value that might be useful).
... View more
04-09-2013
06:06 AM
|
0
|
0
|
472
|
POST
|
I need change the default behavior of the map control in (.Net app) of the mouse wheel for zoom in/out-- default is roll forward to zoom out, and I need roll forward to zoom in. In 9.3.1, I was able to change the behavior using the registry setting found in this thread http://forums.esri.com/Thread.asp?c=159&f=1707&t=263532 however this does not seem to work for the latest version. Anyone know how to resolve this? TIA
... View more
04-08-2013
02:56 PM
|
0
|
2
|
2765
|
POST
|
Additional Note: In the debugger, the Display.DisplayTransformation.SpatialReference member does not seem have the correct value. The debugger shows the reference as that of "System.__ComObject". On the working system the debugger correctly shows the object is an ESRI.ArcGIS.Geometry.ProjectedCoordinateSystemClass.
... View more
04-11-2012
01:35 PM
|
0
|
0
|
131
|
POST
|
Using Arc 9.3.1 & VS2008. Having trouble with converting spatial reference to PCS on a new development system only. This worked fine on my previous development system (XP), and works fine on a production system (Win7). But on the new system the conversion to PCS below always returns a null object reference. public override void Draw(ESRI.ArcGIS.esriSystem.esriDrawPhase drawPhase, IDisplay Display, ESRI.ArcGIS.esriSystem.ITrackCancel trackCancel) { if (!m_bValid || !m_visible) return; if (drawPhase != ESRI.ArcGIS.esriSystem.esriDrawPhase.esriDPGeography) return; IProjectedCoordinateSystem5 pcs5 = Display.DisplayTransformation.SpatialReference as IProjectedCoordinateSystem5; // then the work is done which just puts markers on the map ... } Any ideas on why this is broken on my new development system? Thank you if you can help!
... View more
04-11-2012
11:11 AM
|
0
|
1
|
687
|
POST
|
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.
... View more
06-20-2011
12:43 PM
|
0
|
0
|
205
|
POST
|
Hi Alex, My original implementation was using the foreground drawing method you describe, but there is no way to only redraw some of the items-- all foreground items must be redrawn. I need to redraw only the items (polylines) that changed, which was my original reason for posting. I tried using esriViewGraphics, but had no luck getting that to work. With my most recent attempts I am using a custom layer subclassed from BaseCustomLayer. WIth this approach, no matter what draw phase parameter I provide to PartialRefresh(), my Draw() method override only gets invoked with a phase of esriDPGeography (which, I should note is actually a different enumeration type than is passed to PartialRefresh). Neverthelss, according to ESRI documentation in my previous link, I should be able to refresh only the layer object passed to PartialRefresh. I found these posts of others having similar PartialRefresh problems: http://forums.arcgis.com/threads/24958 http://forums.esri.com/Thread.asp?c=159&f=1707&t=180719 Based on suggestions in the Steven Dunn thread, I was able to make some improvements but its still not working correctly. Draw() is now called on each of my layers independenty, but about 1/2 the time the the previous layer contents are left on the map (not removed). Also, about once a second, it appears the entire map frame is repainted without ever needing to calling my layer's draw method... This is actually worse than redrawing all my layers since the entire map repaints, not just my layers. Thus, still working on it...
... View more
06-20-2011
07:30 AM
|
0
|
0
|
459
|
POST
|
I tried using separate layers for groups of polylines and using the partialrefresh method that allows a single layer to be specified for redraw as described in docs (How to redraw the display) // Refresh a single layer. pMap.PartialRefresh(esriViewGeography, pLayer, null); http://edndoc.esri.com/arcobjects/9.2/net/7b7dfcf8-18bd-4b11-bc67-cf9af9bd6591.htm This partial refresh with an object reference passed does not call Draw() on my object/layer. Draw only gets called if I provide null as the second parameter. And as I expected, when I do that all of my polyline layers are refreshed (Draw is called on each layer)-- exactly what I wanted to avoid. Has anyone done something like this and been successful? Doc also implies that using the esriViewGraphics phase individual elements can be refreshed. Has anyone tried that?
... View more
06-17-2011
12:59 PM
|
0
|
0
|
459
|
POST
|
Thanks for the suggestions. The v10 GraphicsTracker looks promising but unfortunatley I am stuck using 9.3 for now, as my customer invested over 40K in it about a year and a half ago... Also, I had tried using a dynamic display a while back and determined it was not well suited for the application. Dont remember specifically but think it significantly degraded the map grahics. I am going to experiment some more with custom layers and see where that takes me. I'm still not sure if its possible to force a refresh on a single custom layer without causing other custom layers to be redrawn. If anyone has tried something like that, Id appriciate any input. Thx, Scott
... View more
06-16-2011
10:51 AM
|
0
|
0
|
459
|
POST
|
I am deveoping a standalone c# application using the MapControl in ArcGIS 9.3. I am currently drawing polylines on the map, using the call "PartialRefresh(esriViewDrawPhase.esriViewForeground, null, null) to trigger an event causing my drawing code to be invoked. This all works great however, I'd like to be able to redraw some polylines (that need to be updated/moved) and not others, and using this method all lines must get drawn each time the refresh is performed. This causes the apperance of "flickering" as the majority of the lines did not change but get redrawn anyway. Is there a way to just redraw some polylines and not others? Is it possible to group polylines into different layers and only redraw some layers? Ideas/suggestions are appreciated!
... View more
06-16-2011
07:08 AM
|
0
|
6
|
712
|
Online Status |
Offline
|
Date Last Visited |
09-29-2021
10:46 AM
|