Tagged Questions
2
votes
2answers
73 views
How to use shortcuts in dockable windows?
I have developed a custom dockable window with textboxes, comboboxes and buttons for use in ArcMap. After the user clicks on a button in the dockable window a function is invoked.
How can I invoke the ...
4
votes
1answer
106 views
How to set focus on ArcMap map window using arcobjects and c#.net
I have developed a custom dockable window with textboxes, comboboxes and a button for use in ArcMap. After the user clicks on the button in the dockable window a function is invoked. After the ...
3
votes
2answers
213 views
Split a Polyline into small segments
I am writing an addin, which needs to split a polyline into a number of segments taking the number of segments as an input from user.
How can I accomplish this?
6
votes
3answers
172 views
How can you find ArcGIS version programatically?
Is there a way using ArcObjects.net to find out what version of ArcGIS is installed on a machine (i.e. 9.3., 10.0, 10.1)?
1
vote
1answer
55 views
Store global reference to a service/object
In developing with ArcMap, is there any way to register a service that can be used during the life-cycle of a document- for example to do something like:
C# .NET
...
0
votes
1answer
82 views
Problem with deploying addin
I have made a Button addin for ArcMap in Visual Studia 2010, but I don't know how to deploy it, I tried debugging it from ArcMap but nothing happens, Any help Please..
Thanks in advance....
13
votes
1answer
650 views
How to get selected Features/Geometry from Windows Clipboard in ArcMap/C#?
I have a custom tool in ArcMap 10. The Workflow is the following:
Select Features in a Layer with the "Select Features by Rectangle" tool
Copy the Features to the Clipboard using STRG+c
Select the ...
5
votes
1answer
1k views
How can I update an MXD file programatically?
I'm using ArcGIS 9.3.1. product line and MXD files.
At our customer we have multiple environment (DEV, QAS, PROD) which should be more or less identical except they use different datbases and a few ...
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, ...
8
votes
2answers
701 views
C# version for ArcObjects 9.3
Can I use C# 4.0 with the target framework set to .NET 3.5 to develop an extension for ArcMap 9.3? Or does it have to be C# 3.0 or earlier?
0
votes
0answers
191 views
ArcGIS 10 IGPFunction2 and IGPFunctionFactory Implementation
I'm creating a custom ArcToolbox tool in C# .NET in ArcGIS 10 SP2. Though I seem to be having two issues which maybe related:
Firstly, my tool is run as a background task i.e. the GP dialog does not ...
10
votes
6answers
3k 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 ...
3
votes
0answers
205 views
Alternative to IMapServer2.ExportScaleBar
Does anyone know a good alternative to the IMapServer2.ExportScaleBar function? I want to do essentialy the same task, but outside the ArcGIS Server environment. For a given map scale, predefined ...
0
votes
2answers
1k views
How do i popup a context menu with custom command items in a Select tool OnMouseDown (Right Click) with VB .Net?
This should be simple... I am converting VBA customization to VB .NET in VS 2008 Express Edition.
In VBA i have a custom selection tool. Aside from just selecting features, when OnMouseDown receives ...