Tagged Questions
3
votes
1answer
65 views
ArcObjects: Perform action upon refresh command in the TOC
We are using custom layers in our plugin used in ArcScene/ArcMap. For quite some time we were trying to figure out how to hook into the event occuring when the user selects "Refresh" in the right ...
2
votes
1answer
82 views
How to use IObjectClassEvents?
I need to use IObjectClassEvents in my project. I don't know how to start, can any one give me a simple explanation, or an example in C#.
2
votes
1answer
88 views
How to cancel the edit session?
I want to prevent the user from starting an edit session under certain conditions.
How can I do that?
void m_editEvents_OnStartEditing()
{
// Code
}
1
vote
1answer
97 views
Listen to edit events
I recently started working on ArcMap.
I want to make some changes to the edit tools.
For example I want to prevent the user from using the sketch tool when the time is between 1pm and 2pm
But I ...
1
vote
1answer
358 views
ArcObjects - Listening for Map Click in ArcMap
I have a seemingly simple requirement that is causing me all types of headaches - listening for a map click event in ArcMap via ArcObjects. Simple as that, just tell me when the map is clicked (and ...
1
vote
0answers
80 views
ArcObjects - IGraphicsContainerEvents_ElementAddedEventHandler Unregisters After a Few Fires
I am using IGraphicsContainerEvents_ElementAddedEventHandler to do stuff with graphics added by users in an ArcMap session using the standard drawing toolbar. As the code snippet below shows, its a ...
7
votes
3answers
2k views
ArcObjects (ArcGIS for Desktop and C#): How to cast between the ArcMap COM UI and my custom .Net UserControl objects?
I'm creating a utility to run in ArcGIS for Desktop using ArcObjects (9.3.1 SDK) and C#.Net. My prototype involves a toolbar with two comboboxes and a tool. The first combo selects a layer in the TOC, ...
2
votes
2answers
420 views
ArcMap - Strange Behavior When Trying To Wire IActiveViewEvents in IDockableWindow
I can't seem to wire up IActiveViewEvents for an IDockableWindow. I am using a straight out-of-the-box IDockableWindow which inherits BaseCommand. The snippet below shows what I have added to the ...
5
votes
2answers
236 views
ArcObjects Class Extension - core events not being fired by an editing tool
I think I've just hit a major limitation with how ArcMap (10) deals with class extensions on a Feature Class but I would first like to make sure I'm not missing something or seeing a bug.
I have a ...
3
votes
2answers
900 views
How to list ActiveView SelectionChanged event delegates in ArcObjects .NET?
I currently have an issue in an ArcObjects ArcMap add-in where my event handlers are seemingly-randomly being unhooked from the event I'm trying to catch. I've spent some time looking for a way to ...
3
votes
2answers
3k views
How to implement mouse down event when the user clicks on the map?
Newbie programming in C#.net.
I have a very simple desktop application in in arcmap.
I'm trying to get the coordinates when a user clicks a button on a toolbar and when click the map.
The toolbar is ...