POST
|
In the end, I used IHitTest to quickly find features, which I stored in an IFeatureCache to prevent repeated queries, and used the IScreenDisplay Draw methods for the highlight. It worked quite well. Cheers, - Scott
... View more
03-29-2011
07:36 PM
|
0
|
0
|
139
|
POST
|
Hello, I'm looking for the recommended workflow for quickly identifying the nearest feature to the cursor in ArcMap (version 9.3 using .NET) and highlighting it. I've tried three approaches. First I formed an envelope around the mouse in device units (pixels), and used IFocusMap.SelectByShape(..., ..., true) to fetch and highlight a single feature from the layer. Obviously this wasn't ideal. I considered using IFeatureIndex.NearestFeature(), but I'm concerned about overhead, as each time the tool performs its function it changes the underlying features, invalidating the index. I settled on using IFeatureSnapAgent. This quickly gives me the nearest point on the nearest feature. However, to find and highlight the feature itself seems to require an intersection search with the snapped point to fetch an IFeature. This seems redundant and inefficient. Could someone suggest how I might efficiently highlight a feature on mouseover? Thanks! - Scott
... View more
03-01-2011
09:15 AM
|
0
|
1
|
937
|
POST
|
Does anybody know why this might be the default behavior of Arc? I'm not positive why this is, though I assume it's because the designers guessed that users adding network nodes landing in the middle of an edge would want that edge to pass through the node. You know, on second thought that does make sense as a default assumption. However, does no one know of a way of overriding this? Much obliged, - Scott
... View more
08-30-2010
09:37 AM
|
0
|
0
|
99
|
POST
|
I'm altering network edge (SimpleEdgeFeature) geometry within a tool. Occasionally an edge between junctions A and B will pass through junction C. When I store this change, Arc breaks edge A-B into two edges, A-C and C-B. This is undesirable behavior for my application. Is there any way to override this behavior, aside from running a Dissolve operation after each set of geometry changes? Thanks so much!
... View more
08-12-2010
05:34 PM
|
0
|
1
|
399
|
POST
|
Hi all, This is my first time posting to these forms. I have what I believe is a simple but foundational question concerning the object model at use in ArcObjects / for ArcMap tools. I've noticed that just about every UI-related method in the .NET/C# API expects an IApplication object. Call it an overly simple question, but why is this? I'm writing an extension to ArcMap, and in doing so I have never noticed the IApplication object change. Isn't this ripe for a singleton object? As usual with design questions, I assume that their decision was well informed and that I am not. Are there circumstances where a single code base can run against multiple applications? Can the IApplication object be reallocated at run time? Is this related to some detail about COM object programming with which I am not familiar? I'd appreciate any illumination you could offer, thanks! - Scott
... View more
07-30-2010
11:05 AM
|
0
|
2
|
293
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|