Tagged Questions
3
votes
1answer
28 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 ...
1
vote
1answer
40 views
ArcGIS crashes with no error number in Visual Studio
I've been developing Add-ins for a while with Visual Studio 2008 and ArcGIS 10.
But in my new Add-in development process, I receive no error from Visual studio and ArcGIS crashes with error "Arcgis ...
0
votes
1answer
30 views
ArcObjects IDataset.Copy causes program to crash
My implementation of IDataset.Copy continues to crash and I cannot figure out why. The program attempts to copy a shapefile from a temporary folder in one directory to a final folder in another ...
1
vote
0answers
46 views
ArcGIS Add-In Project to Standard Library Project
I have been developing an ArcGIS 10 Add-In tool, but requirements changed halfway through development. Fortunately, this isn't changing any of the code, but I just need to be able to compile the ...
1
vote
0answers
52 views
Distance Units of a Layer
I am developing an ArcGIS desktop addin. I am attempting to get the distance units (ft, mm, km, etc.) from a layer in my .mxd and display it on a windows form. How can I do this? I can access the ...
2
votes
1answer
93 views
Write string to status bar that doesn't go away
I'm attempting to write the number of items matching a given query to the statusbar. when i debug through the code, i am able to step through and see the message hit the statusbar, but then it ...
3
votes
0answers
54 views
ArcObjects running in Addin slower?
I have created a class library which does some geoprocessing. The addin calls a class that is an async process. I have ensured the thread is STA and the arcobjects are thread safe (ie. not passed from ...
1
vote
0answers
84 views
What is the correct way to handle assembly resolution in .NET ArcGIS add-ins?
This has been a thorn in my side for some time now -- in .NET ArcGIS add-ins, assembly dependencies packaged with the add-in are often not resolved correctly. I am still not sure why and under which ...
1
vote
2answers
93 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
35 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
135 views
How can I determine the layer name in an edit session?
I have a problem with an editor extension in an Add-In for ArcGIS 10.
The editor extension listens on different events occuring on shapefile layers via registering listeners:
...
2
votes
3answers
191 views
How to Access the Current Workspace Using an ArcObjects Add-in for ArcMap?
Accessing current workspace using an ArcObjects add-in for ArcMap (Table of Contents has layer groups).
I am trying to retrieve the current WorkSpace using ArcObjects for an ArcMap add-in in C#.
Any ...
4
votes
3answers
175 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
1answer
113 views
How to create multiple dockable windows?
I am building an add-in and I have several different windows, which I open with the code below. This works fine. However, how can I create the same window n times?
UID dockWinID = new UIDClass();
...
3
votes
1answer
70 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
1answer
131 views
What needs to be done to downgrade a ESRI addin from 10.1 to 10?
I have created an esri addin which targeted ArcGIS 10.1, however I need to have the addin to work on ArcGIS 10, what needs to be done within my solution to get it working?
I have checked the ...
3
votes
0answers
94 views
Is it possible to add a command to the ArcMap Find dialog context menu?
I think I already know the answer to this... which is "no", but I wrote this up so I'll ask anyways.
Is it possible using ArcObjects to extend/customize the ArcMap Find tool/dialog by adding a ...
6
votes
1answer
912 views
Creating ArcGIS add-ins for both 10.0 and 10.1
Has anyone tried to deploy the ArcMap add-in for both ArcGIS 10.0 and ArcGIS 10.1? There is a target version parameter in the add-in config XML file that needs to be specified. After upgrading the ...
6
votes
2answers
300 views
How to find all ICommandItem instances of a custom button command in an ArcMap add-in?
I have an ArcMap 10.0 add-in in which I have a button that the user can place (using the Customize dialog in ArcMap) on any toolbar including user-created toolbars as well as standard ones or even 3rd ...
2
votes
1answer
161 views
Alternatives to IPersistVariant in ArcMap add-in's?
I have migrated an classic COM ArcMap Extension of mine to an add-in.
I have tried the new persistence approach of add-in's but I cannot serialize my custom objects through the XMLSerializer. I get ...
1
vote
0answers
96 views
ArcObjects: Scale text not changing map units from miles to feet
I am adding scale text to a page layout. The code works, but the map units on the text scale still appear as miles and not feet as coded. Here is the code snippet to add scale text....
...
3
votes
1answer
697 views
How to make a WPF Window be a well-behaved child window of ArcMap?
I am pretty familiar with Windows Forms in ArcGIS but WPF, which I'm just starting to tinker with, seems to be a different animal. I've created an ArcMap add-in with a button that displays a Window ...
3
votes
2answers
233 views
Get the geometry from the lasso selection tool
I'm building an Add-in solution in ArcGIS 10 that contains a custom tool. I'd like to borrow the functionality of the lasso selection tool without reinventing the wheel. Is there a way to intercept ...
2
votes
0answers
78 views
Is it possible to lock a single feature from editing in ArcObjects?
We're developing an ArcMap addin. Now we need a way to lock a feature from editing/deleting. Is this possible with ArcObjects or do we have to create our own implementation of locking?
Example:
User ...
7
votes
1answer
595 views
Is there a line symbology that also shows vertices?
Is there such a thing as a line/vertices symbology? If not a workaround? In some situations, particularly when editing, I would like to see my lines as well as all the vertices similar to the effect I ...
3
votes
1answer
366 views
How can I access standard ArcMap cursors?
I'm writing an Add-In for ArcGIS 10 and would like to use the standard mouse cursors ArcMap uses (e.g. the info cursor and the edit cursor). I hope it is possible to just use the right reference in ...
1
vote
1answer
538 views
ArcObjects: Setting image of a command button to a partially transparent bitmap
In an ArcMap 10 add-in, I am attempting to create a toggle button of sorts whose image changes based on the button's state.
This answer describes how to set an add-in button's image programmatically ...
4
votes
2answers
289 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 ...
2
votes
2answers
365 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. ...
4
votes
1answer
218 views
How to find the service pack level in ArcGIS Addin?
I can query the current version from RuntimeInfo.Version. But I would also like to know what service pack is also installed. Do I need to just check the registery key ...
4
votes
1answer
182 views
List all active extensions with ArcObjects
I am building an ArcGIS 10 Addin that dumps out as much debug information about a system that I can get. I am currently trying to query which extensions are active in the ArcMap session. The following ...
5
votes
1answer
456 views
ArcGIS 10 Add-ins - How to adjust the size of an add-in toolbar?
I've built an add-in toolbar with two buttons. Works great, but I'd like to make the toolbar a little wider so that the user can see it's full caption. Is there a property I can adjust in the ...
2
votes
2answers
2k views
Streetview/Bing Bird's Eye Add-In
I'm trying to create an Add-In for this tool:
Link to Google Maps and Bing from MXD (Streetview and Bird's Eye supported)
I'm not receiving an error however my browser is not opening after I select ...
5
votes
1answer
583 views
ArcGIS 10: AddIn Extension loading toolbox issue
I have an extension class in an ArcMap addin project of which loads a custom toolbox into ArcToolbox when the user opens ArcMap or opens a previously created map. My toolbox gets added to ArcToolbox ...
3
votes
2answers
445 views
ArcObjects: IMapEvents.FeatureClassChanged doesn't fire if the layer's previous data source was invalid
Is there any other event besides IMapEvents.FeatureClassChanged that will be fired when a layer's data source changes? FeatureClassChanged doesn't seem to fire if the layer's previous data source was ...
10
votes
2answers
578 views
ArcGIS 10 add-in: Top-level exception handling
The ArcGIS 10 add-in I'm working on is pretty simple -- just a tool control and a dockable window. I'm handling the specific exceptions I anticipate occuring at the source and throwing everything ...
2
votes
0answers
223 views
ArcObjects: How to get a reference to layer in a java add in
I am trying to implement a java add-in version of this solution:
unique value symbolize layers from a lookup table.
At the same time I want to start coding in Java for the ArcGIS Desktop, so I am ...
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
520 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 ...
6
votes
1answer
675 views
ArcMap Addin - add interoperability connection programatically
I'm currently building an add-in for ArcMap - ArcView using the .Net framework.
The user of ArcMap and the Add-in should access data published from WFS services.
I am aware that it is possible to ...
2
votes
2answers
517 views
Reference for IDockableWindow?
Kind of a newbie with ArcObjects .NET. Trying to open a dockable window with the following code:
public class CAD_Test_01_button : ESRI.ArcGIS.Desktop.AddIns.Button
{
public CAD_Test_01_button()
...
5
votes
1answer
1k 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 ...
2
votes
1answer
466 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 ...
3
votes
1answer
381 views
Simplest way to add built-in commands to an custom add-in
Currently in Config.esriaddinx I have
<Button id="my_UniqueID" class="MyWrapperClass" caption="My Caption"
image="Images\My_Image.png" ...> </Button>
and then I implement ...
