2
votes
1answer
27 views

Dockable window close event

Is there an event that fires when a custom dockable window is closed in ArcMap? My dockable window uses the Add-in pattern and hosts a WPF user control. It opens via a command button which is nested ...
3
votes
0answers
23 views

ArcMap add-in (vb.net) datagridview will crash map when right click on the title part

I find the problem accidentally. In my ArcMap add-in, there is a search function which allows the user to search the geodb based on the value of a field. It works fine but today when I right click the ...
0
votes
0answers
31 views

Need help with the creation of add-ins for arc map

How to find the coordinates x and y of the point when you click on the map? I'm creating a new add-in to the arc map. When you create the add button and I chose dockable window. In dockable window I ...
1
vote
1answer
59 views

How to get ESRI Addin to read the System.ServiceModel configuration?

I have a complex set of add-in's that we need to run in ArcMap, ArcServer, and ArcGIS Explorer for Desktop. We are experimenting with changing from the old Web Reference service connection to a WCF ...
2
votes
0answers
47 views

Adding a button from an add-in to a TOC context menu

I would like to add a button to a group layer context menu in the table of contents. The button is from an add-in that also contains an extension. Should be straight-forward enough. The extension ...
1
vote
0answers
111 views

How to resolve an InvalidCastException for two Objects of the same type in an ArcMap AddIn?

I'm trying to work through an InvalidCastException that is being thrown when a form is displayed from an ArcMap Addin. This is a fairly recent occurrence and I haven't identified what has changed that ...
0
votes
0answers
95 views

ArcMap throws NullReferenceException for OnClick event of Add-In

I have this below code which is a toolbar button to open a dock able window in ArcMap 10.2 Desktop application and what happens is that I am able to install the toolbar button but when I a click that ...
-1
votes
1answer
106 views

On Mouse Up Event in ArcMap Add-In

Does anyone know how to wire up mouse events on a map document? I have found a bunch of example code on how to wire up Add-In tools, but the Add-in I'm creating is a button. It should be as easy as ...
1
vote
1answer
81 views

Errors when creating a TextElement from ArcObjects

I am attempting to add some text in the layout view of ArcMap. I’m using the following line for the TextElement that I’ve found online from numerous places including ArcObjects Library Reference. ...
4
votes
2answers
103 views

Is there a way to control which ArcMap AddIn is loaded first?

I have a shared DLL that use across multiple ArcMap AddIns. It rarely changes, but recently I've had to modify it and I started getting MissingMethodExceptions whenever I made calls to classes in ...
2
votes
1answer
105 views

How to close the current mxd document through arcmap add-in

First, I open a mxd document named A in arcmap, then i use my add-in to generate another mxd document named B, then I use ArcMap.Application.OpenDocument(arcmapMapFileName); to open the ...
6
votes
3answers
2k views

What is the target .NET Framework of ESRI ArcObjects SDK 10.2

I had ArcMap 10 Add-In project built with ArcObjects SDK for .NET 10.1 where I could not reference external COM DLL build on .NET 4.0 due to a .NET forward compatibility issue. (ArcObjects SDK 10.1 ...
1
vote
0answers
70 views

How to achieve the statusbar as the same effect with the arctoolbox‘s tool called in ArcMap add-in?

How to achieve the statusbar as the same effect with the arctoolbox‘s tool called in ArcMap add-in? i do not know how to use the progressbar as a result of my project involves in a large mount of ...
1
vote
2answers
199 views

How to Disable the add-in button when ArcMap is started?

Question 1:How to Disable the add-in button when the ArcMap started,then I use the SelectByRectangletool select features,then the button enabled! I am a fresh man about the add-in. Question 2:I made ...
1
vote
0answers
76 views

Why does DataGridView data not update for ArcMap add-in?

I have created a dockwindow(name:FrmWellConfig) with a datagridview(datagridview1) control in a new ArcMap add-in project. I then bind the data: ...
3
votes
1answer
383 views

ArcMap AddIn Build Error when referencing external ActiveX Interface in VS2010

If the "Register for COM interop" is unchecked the projects builds without errors. But I have to reference external ActiveX Interface in my project so I have to have that check-box checked. I am ...
2
votes
0answers
420 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 ...
2
votes
2answers
218 views

Adding “SelectByRectangle” tool to ArcMap custom toolbar Add-In

I am able to show the other esriArcMapUI selection tools in my custom toolbar, but "Select By Rectangle" does not appear. What is the correct Tool refID of it? <ESRI.Configuration ...
3
votes
1answer
91 views

How can I hide a tool from command window under category

I have created a tool, a button and a dockable window under one project. To open/close the dockable window, button is used. For some specific work, by clicking some specific button from dockable ...
6
votes
2answers
672 views

ESRI ArcMap Add-in Config.esriaddinx

I'm in the process of converting an older ArcMap extension to an Add-In in C# and I am trying to best take advantage of the XML based configuration. Config.esriaddinx works great for the basic set up ...
1
vote
1answer
53 views

Why does onDemand setting remove my buttons from my menu?

When I set the onDemand="false" attribute, my buttons disappear from my menu! I'm setting the attribute to false so that I control its behaviour using the OnUpdate override in code. Am I doing ...
1
vote
2answers
180 views

How to drag a layer from ArcMap Add-in into its MXD?

I have a simple ArcMap Add-in that displays all featureclass names in a database inside of a ListBox. If I select a name or multiple names in the listbox, how can I drag and drop it in ArcMap? Just ...
1
vote
0answers
38 views

Problem with deployment of GeoProcessors

I am developing an AddIn which requires lots of Geoprocessing but whenever I deploy any Geoprocessor, the ArcMap crashes and its always with the Geoprocessors only. All other commands are working fine ...
5
votes
3answers
902 views

Is it possible to target an ArcMap add-in to an earlier version?

My development environment is Visual studio 2010 with ArcGIS Desktop 10.1 installed. I need my add-in to support 10.0 AND 10.1. Right now, if I try to install it on ArcMap 10.0, it fails. Is it ...
2
votes
0answers
65 views

Cubist Add-In for ArcMap

I'm looking for an ArcMap add-in that will create a raster based on rules from RuleQuest Research's Cubist .model files. Ideally, the add-in will give the user the option of matching input raster data ...
4
votes
1answer
142 views

How to use IDatabaseCompact.Compact() on an used IWorkspace, without permission denied

I am writting an ArcMap-AddIn with vb.net. I get an error when trying to compact my IWorkspace(mdb), the error is: COMException You tried to open a database, which was already opened by the ...
4
votes
0answers
333 views

Creating a VB.net Dataset in Visual Studio 2010 from an SDE Geodatabase

I am building an ArcMap Addin that contains several Windows Forms with controls that need to be bound to a database. I am trying to decide whether or not to use a native SQL Server Database or an SDE ...
2
votes
1answer
491 views

Why do I get an “Type 'IPoint' is not defined” error in VB.NET

I am writing an add-in for ArcMap 10. I am trying to do Dim clickedPoint as IPoint in VB.NET, but I get "Type 'IPoint' is not defined" error. Do I have to import a class or how do I make this work?
4
votes
2answers
454 views

ArcObjects: How to measure the draw time of a layer in ArcMap?

I'd like to quantitatively measure the display performance of mosaic datasets, image service layers, raster layers, feature layers, etc. in ArcMap 10. How can I measure the draw time of a particular ...
4
votes
2answers
592 views

DLL As Embedded Resource ArcMap Add-In? VB.NET

I tried using StackOverflow, but I don't think anyone can answer my question in context(ArcMap Addins). I am currently developing an add-in that needs to load a custom control DLL as a dependency. ...
9
votes
2answers
385 views

How do I insert new-line character into Addin Extension Description?

Apparently the text box in Esri's Extension manager doesn't wrap text (10.0 SP2). As a workaround, I'm trying to insert newline characters into the xml file, but haven't found anything that works. ...
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 ...
3
votes
2answers
767 views

Changing Names in TOC Doesn't Update Legend Properly

This is related to an ArcMap add-in I coded up this past week. I'm trying to rename a layer in ArcMap and have the legend refresh properly. The renaming part is working fine, however I cannot get the ...
5
votes
1answer
2k views

ArcGIS 10 add-in: Bring dockable window to front

I have an ArcGIS 10 ArcMap add-in written in C# .NET 3.5 that implements an ESRI.ArcGIS.Desktop.AddIns.DockableWindow (which also inherits from UserControl) and an ESRI.ArcGIS.Desktop.AddIns.Tool that ...
11
votes
6answers
4k views

ESRI ArcMap Add-in with app.settings not recognizing app.config changes

I have an ESRI Add-in developed for ArcMap which requires a configuration file. After spending a while trying to read config values from a single App.Config file (and always getting null) I believe ...
2
votes
1answer
637 views

Walkthrough: Add-In Command Bars root menu

I am wanting to create a new ArcMap Add-In project with just a custom root menu. According to the walkthrough, I can access the Add-In Command Bars (which has the Menu element) by adding a new item to ...
4
votes
1answer
305 views

How can I view the Certificate of a code-signed ESRI AddIn (*.esriAddIn) without ESRIRegAddIn.exe?

For users with ArcGIS 10 installed, it's easy to view the certificate for a signed AddIn since it is presented to you in the Confirm Add-In file installation window. Is there a way to view this ...