2
votes
0answers
425 views

How to wire ESRI.ArcGIS.Desktop.AddIns.Extension to a custom AddIn Button click event?

I am developing custom ArcMap toolbar with various AddIn tools, button and extension. I see the sample how to access the ActiveView events in the extension Initialize() method. private void ...
0
votes
1answer
204 views

Create road speed limit segments with linear referencing

I have a route-feature class and a point feature class with speed limit signs. In ArcMap I am capable to reference the signs on the route with help of a reference field and using the locate features ...
2
votes
0answers
65 views

How to prevent the user from moving the feature?

I want to prevent the user from moving the feature in ArcMap when editing. I used OnChangeFeature event but it does not work. void m_editEvents_OnChangeFeature(IObject obj) { ...
3
votes
1answer
78 views

How to prevent user from deleting a feature?

How can I prevent the user from deleting a feature? void m_editEvents_OnDeleteFeature(IObject obj) { // Code }
2
votes
1answer
118 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
114 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
658 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 ...
8
votes
3answers
3k 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, ...
5
votes
2answers
375 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
1k 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 ...
4
votes
2answers
5k 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 ...