Hot answers tagged

16 votes
Accepted

Debugging ArcMap Add-In .Net 4.5 in Visual Studio 2013: Unable to start ArcMap.exe

In Visual Studio 2013, to fix this check Use Managed Compatibility mode in VS2013 > Options > Debugging > General (last option in the list). Original answer by Preston McCormick here
user avatar
  • 381
10 votes
Accepted

Unable to create .esriAddin; missing ESRI ArcGIS Add-in SDK components(s)?

I did not per se figure it out becuase i don't really understand what is going on here but I was trying different things until it worked. I am not sure whether it is suppose to work or whether this ...
user avatar
9 votes
Accepted

ArcMap Add-In Not Updating To Latest Version

Yes there is a cache on the local machine. At version 10.1 it is: C:\Users\user name\AppData\Local\ESRI\Desktop10.1\AssemblyCache In the AssemblyCache folder will be a folder for each add-in ArcMap ...
user avatar
  • 2,358
8 votes
Accepted

Creating AddIns for ArcGIS Pro?

ArcGIS Pro currently does not support Python add-ins. There were no plans for a Python Add-in support in ArcGIS Pro. ArcGIS Pro has arcpy site package shipped though (you can author Python script ...
user avatar
5 votes
Accepted

Why is ESRI.ArcGIS.Desktop.AddIns.ComboBox configured with a number of W's?

This is just conjecture, but there is probably some variable-width text measurement logic going on behind the scenes, and the character W was probably chosen because it is one of the widest characters ...
user avatar
  • 35.4k
5 votes

Debugging ArcMap Add-In .Net 4.5 in Visual Studio 2013: Unable to start ArcMap.exe

In order to debug ArcMap 10.3 Add-in with VS2013 in .Net 4.5. I had to attach VS2013 to ArcMap.exe process. This is kinda annoying but it is the only way I got it to work for now. I'm still confused ...
user avatar
  • 381
5 votes
Accepted

Develope ArcGIS Desktop Add-Ins with ArcGIS Runtime SDK

ArcGIS Runtime SDK and ArcGIS Addins are two different things. If you want to develop standalone application then choose ArcGIS Runtime Sdk. If you want to extend ArcGIS Desktop , then you should ...
user avatar
4 votes

Measuring draw time of layer in ArcMap?

PerfQAnalyzer does just that. From that page: In the Spring of 2012 we released the PerfQAnalyzer tool, which assists users in capturing render and edit times within ArcGIS for Desktop. This tool ...
user avatar
  • 4,173
4 votes
Accepted

ArcMap add in constructor called not called on start up

In config.esriaddinx, set the tool's onDemand property to false. Similarly, if you have any extensions that need to be initialized at startup, set its autoLoad property to true.
user avatar
  • 35.4k
4 votes
Accepted

Why would Dissolve stop working in ArcGIS for Desktop?

Thanks to prompting by thehealingprocess, I did investigate a little more and the GP messages indicate the proper error is actually "Workspace or data source is read only"...which a bunch of others ...
user avatar
  • 438
4 votes
Accepted

Issue with initializing ArcObjects Interface and classes

I had this problem in Visual Studio 2010, when you included your error message it came back to me. The answer can be found here : https://stackoverflow.com/questions/2483659/interop-type-cannot-be-...
user avatar
4 votes

Why is add-in toolbar greyed out?

Not sure if this is the current source code, but it does look like a lot of buttons are tied to an edit session and if the extension enabled. Also go to Menu Customization-->Extensions and see if ...
user avatar
  • 14.4k
4 votes
Accepted

Where does ArcGIS persist shared AddIn folder configuration

According to this link you can indeed do that in the registry. http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/Advanced_add_in_concepts/0001000004n7000000/ According to ...
user avatar
  • 2,358
4 votes
Accepted

Close DockableWindow in ArcGIS AddIn

The way I have done this in the past is to put the code to close the window in the close document event. So you need to set up a document event handler to catch the close document event: Private ...
user avatar
  • 2,358
4 votes

Arcobjects 10.3.1: TOC listeners

I'm not sure what you want to do exactly, but it looks like you want to receive an event when a layer is added to, or deleted from the map, right? Here's a sample: private IActiveViewEvents_Event ...
user avatar
  • 4,173
4 votes
Accepted

How to make a 10.0 ArcMap AddIn project valid for ArcGIS 10.3 SDK?

After I manually added a new button, I circled back to the SDK AddIn Component Wizard Issue and figured out how to resolve. Before posting this question, I did attempt to change the targets in the ...
user avatar
  • 14.4k
4 votes
Accepted

exporting 10.2 .esriaddin to 10.0

Addins are not backwards compatible and cannot be installed on an earlier version of ArcMap. You'll have to set up a development machine or VM with ArcGIS 10.0 and Visual Studio 2010 to compile the ...
user avatar
  • 1,776
4 votes
Accepted

Visual Studio 2015 Error when running ArcMap add-in

To quote this thread, Visual Studio 2015 "will install correctly, and create projects, but will not allow you to build a project without having VS2013 installed as well."
user avatar
4 votes

AddIn button/tool force Arcgis 10.2.2 to close

If I have understood you are developing on a 10.3 machine and manually (?) editing the configuration file to say it's a 10.2 addin, is this correct? If you are developing for a 10.2 environment you ...
user avatar
  • 38.8k
4 votes
Accepted

Inscrutable behavior of ArcMap add-in?

If something in ArcMap should be working and isn't there are a couple cuprits that crop up regularly. First check out %AppData%\Roaming\ESRI\Desktop10.X\ArcMap\Templates\Normal.mxt. Back that file up ...
user avatar
  • 1,509
3 votes

Why is add-in toolbar greyed out?

There are a few possiblities. One would be the addin was not installed correctly. Mostly likely the issue is that some tools are only available in certain situations. For example, you must be in an ...
user avatar
  • 15.5k
3 votes

What are pros and cons of Python add-ins vs .NET add-ins to ArcGIS for Desktop?

One of the disadvantages of developing Add-Ins in .NET is that each new version of ArcGIS uses a different incompatible version of ArcObjects and a different incompatible version of Visual Studio. ...
user avatar
3 votes

Is it possible to add a command to the ArcMap Find dialog context menu?

According to the product engineer at Esri responsible for the Find Dialog, there is no way to customize the context menu on the result items of the "Features" tab: The Find dialog was refactored ...
user avatar
  • 31
3 votes

Finding path where add-ins are installed for ArcGIS Desktop?

Here is the C# code to get the addin assembly folder: public static string AssemblyDirectory { get { string codeBase = Assembly.GetExecutingAssembly()....
user avatar
3 votes
Accepted

vb.net arcmap add-in loop through a dbf file get 'System.NullReferenceException' error

This line: pRow = pCur.NextRow should be at the end of your loop Do Until pRow Is Nothing SegmentID = pRow.Value(pFieldIndex1) DrainName = pRow.Value(pFieldIndex2) MsgBox("SegmentID = ...
user avatar
  • 1,178
3 votes

Adding STAThread to an ESRI Addin

If you are using System.Timers.Timer or System.Threading.Timer, your code that is triggered by the timer occurs on a worker thread. This thread will not be marked STAThread and so can't use the ...
user avatar
3 votes
Accepted

Adding STAThread to an ESRI Addin

Instead of using a Timer (which runs on a separate thread) how about using the inbuilt events: IActiveViewEvents.ViewRefreshed (start refresh) and then IActiveViewEvents.AfterDraw (finished refresh). ...
user avatar
3 votes
Accepted

ArcObjects ITable.Search hits default table version but cursor iterates over edited current version of table?

Yes, sort of. The problem here is you're accessing directly from the database which may or may not be aware of any edits; edit reside in a different database in your TEMP directory (Scratch Workspace) ...
user avatar
3 votes
Accepted

Arcgis SDK C#: Addin running code on arcmap startup

If you want code in an add-in like a button to be available when it is loaded rather than when it is clicked, in the Config.esriaddinx file add onDemand="false" to that button's xml. You can also use ...
user avatar
  • 2,358
3 votes

Debugging ArcMap Add-In .Net 4.5 in Visual Studio 2013: Unable to start ArcMap.exe

Here is how I resolve this issue and it works pretty much every time it comes up. Restart VS2013 Right click on project -> Debug -> Start new instance (this will prevent it from building first) ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible