ArcObjects is a set of COM-based APIs from ESRI Inc. that are used in several of their products including ArcGIS Desktop, ArcGIS Engine and ArcGIS Server.

learn more… | top users | synonyms (3)

12
votes
6answers
6k views

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

I have developed an ArcMap Add-in 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 that the ...
-1
votes
0answers
251 views

Add Layer into existing GroupLayer in map c# [on hold]

I can't add Layer into existing GroupLayer in map. I'm trying this code below, but it does not work! I need code looks like this: public void AddLayer(AxMapControl mapControl, ILayer pLayer) { if(...
1
vote
1answer
319 views

vb.net arcobjects enable customized context menu item only if a feature is selected

The solution may be very simple, but I haven't made it work. I want to enable a data view context menu item only if a feature (in polyline layer) is selected, all other places the item should in grey....
2
votes
1answer
444 views

Can I update the service on ArcGIS for Server programmatically?

There is Windows Service. This service adds user raster data to the Raster Dataset in sde database. The Raster Dataset registred on the ArcGis Server. This Raster Dataset also was publishing on ...
1
vote
1answer
668 views

How to edit feature in sqlserver geodatabase

I am using arcmap 10.2.1 and arcobject 10.2.1,I just want to conncet to a geodatabase and edit,add,delete a feature from a feature class using arcobject,I tried to connect to database and it works ...
0
votes
0answers
406 views

VBA Code to wait until Python returns value [on hold]

I have written a code in VBA, I am passing parameters to Python and creating a buffer there. After that I am passing that buffer layer and further processing in VBA again. Here is the code for ...
0
votes
0answers
19 views

Focussing on form created by add-in button and disabling any other buttons or tools in ArcMap? [on hold]

I made an add-in button and make it to show a form when it's clicked. I want the form to be focused. It means when I click anywhere outside the form, it will auto focus on the form and make any other ...
3
votes
1answer
215 views

How do I export circles from ArcObjects to WKB?

I have a small circle in SDE which I'm trying to extract through ArcObjects into well-known-binary (for later import into other systems). Using the IWkb interface I can obtain the WKB, but it comes ...
0
votes
0answers
142 views

unable to insert newline and spaces in textelement in java

i am working in arcgis desktop with eclipse in java. i have created a textsymbol and added it to a textelement which i need to add on another layer(the model is a 3Dglobe and not a map). i am able to ...
0
votes
0answers
372 views

Can I display google map in arcgis desktop application without violating the license? [on hold]

I have desktop application on C# 4.0 based on ArcObjects. What controls do I need use to display google map? Is it real?
0
votes
0answers
150 views

How to create sector figure in ArcObject? [on hold]

How to create sector in ArcObject 10.1? Now I draw one point, two lines, two arks. But I think it is not good. It is differents objects. I need one object. Well. Now I drawing: IElementCollection ...
3
votes
1answer
53 views

Multiple columns in TOC and Legend in ArcMap

I would like to give the user additional information next to the label in the TOC of a UniqueValueRenderer for each class. I can just add the numbers in the labeltext, but it does not align to proper ...
3
votes
1answer
362 views

OGIS Ole Db provider sample with read/write capability

I'm trying to determine what level of effort would be required to develop an OGIS Ole db provider for ArcGIS. There is a sample that is read-only. I would like to be able to edit featureclasses in ...
0
votes
0answers
10 views

Visual studio problem with Map Control Application

I have installed Microsoft Visual Studio Proffisional 2013 (12.0.30501), ArcGis 10.3.4322, ArcEngine 10.3.4322, ArcObjects SDK for the Microsoft .NET framework 10.3.4322 I need to create an Add-in ...
3
votes
3answers
380 views

Refreshing display for newly added labels with ArcObjects from Python?

I've added a shapefile to an MXD and Edited the symbolization of it with ArcObjects. Now I'm trying to edit the labeling with ArcObjects. I've successfully been able to edit the default class in the ...
2
votes
1answer
207 views

Standalone program can see license

I used standart license initialization code in C# standalone program. It was working perfectly on 10.1 and 10.2. But after migrating to 10.3 it says Licenses are not available. Meanwhile ArcMap and ...
0
votes
1answer
230 views

cad to shapefile conversion

i have use arcgis10.1,arcobjects.net. i did following code ESRI.ArcGIS.Geoprocessor.Geoprocessor gp = new ESRI.ArcGIS.Geoprocessor.Geoprocessor(); gp.OverwriteOutput = true; ...
0
votes
1answer
194 views

Removing unused references in ArcObjects vba?

Can anyone suggest me how will I find and remove unused references used in a project done in ArcGIS 9.3.1 vba.
8
votes
1answer
428 views

What is the function of the ESRI.ArcGIS.AddIns.targets file?

I am currently upgrading from 10.2 to 10.3 and as expected there are always some issues with recompiling addins and upgrading the the visual studio version. There is now a known issue for which ...
4
votes
4answers
208 views

Navigating ArcObjects Object Model Diagrams (OMDs)?

How does everyone get round navigating the different Object Model Diagrams (OMDs)? I can work with single interfaces no problem, but when i have to use multiple interfaces I struggle to get my head ...
2
votes
0answers
17 views

Serialize geometry to GeoJSON with ArcObjects

In the ArcObjects developer SDK, I found that the IExternalSerializerGdb2 interface of the JSONSerializerGdb class supports writing to GeoJSON. ArcGIS Developer Help (ESRI.ArcGIS.Geodatabase) ...
0
votes
0answers
179 views

Assigning list or array to IRowBuffer Row without Row.set_Value()?

Is it possible to assign a list or array to IRowBuffer Row? I have something like the following: I have a fields (list) with values and i have to fill a Row with that values. public void fillRow(...
3
votes
1answer
859 views

Changing symbol and legend of feature class in ArcMap using ArcObjects?

I want to change the symbol of features and legend programmatically. When I use this code Dim pSymbolSelector As ISymbolSelector Set pSymbolSelector = New SymbolSelector Dim pMarker As ...
0
votes
1answer
292 views

Create a new BasicOverposterLayerProperties

ArcGIS 10.1 with VB.NET I have been trying to figure this out for days but can't seem to make the connection. For a layer I am trying to create a label. I create a new BasicOverposterLayerProperties ...
0
votes
2answers
78 views

Drawing markers and text on ArcGIS map, at fixed size, independent of zoom?

I'm writing a WPF application, in C#, using ArcObjects. I have an ESRI.ArcGIS.Controls.AxMapControl on my form, and I'm trying to draw some graphics elements on top of it. The map I'm developing ...
2
votes
0answers
66 views

How to connect to secured ArcGIS server shared on AGOL with ArcObjects

Our organization is hosting secured ArcGIS Server geodata and map servers (token based). The services are shared on ArcGIS Online, where specific AGOL users in a group are allowed access. Now I want ...
0
votes
1answer
533 views

Getting map using C# code in ArcMap?

I have been programming in C# a small code for:1) create a polyline Featureclass in a GDB, 2)put that in the map view (ArcMap 10.2) and finally 3) edit that feature using a button or tool... Well I ...
1
vote
1answer
220 views

ArcObjects 10.1 IDatabaseCompact lock file

I'm trying to automate one of task by creating code that will execute the IDatabaseCompact.Compact method to a GDB file. Everything seems to work fine but there is always a .lock file generated after ...
1
vote
1answer
308 views

Eclipse export as runnable jar file error

I am building a destop application , which takes user input for personal geodatabase and finds feature class in it . It works fine till i run it in eclipse , but when i export it as a runnable jar ...
1
vote
1answer
208 views

Connect to remote Sqlserver using arcobject

I want to connect to a database assigned to a vps with an ip address.I used this string to connect to Database when it was on localhost. how I change it to connect to remote one? ...
0
votes
1answer
235 views

Code to get featureclass name from existing topology

I am creating and validating topology through vb.net and arcobject code.Things are running fine as I am able to add rule and validate it . Problem is when once the program is run and topology is ...
1
vote
1answer
44 views

Can I simulate the user interaction described with a series of scripts/tools/buttons? [closed]

I’m trying to find the best solution for adding/update a new/old record in a feature class in ArcMap 10.3 environment using a GUI. I’ve done some research for the last couple of days trying to ...
3
votes
1answer
666 views

Is it possible to undo and redo outside edit session in ArcObjects?

I would like to know if it is possible to undo and redo changes outside of an edit session? If yes, how can I do it in ArcObjects using .NET? I am working on an ArcSDE 10.1 versioned geodatabase?
1
vote
1answer
938 views

Converting FeatureLayer to graphics using ArcObjects?

How do I convert a Map or FeatureLayer to graphics on ArcObjects 10.1? Problem Solved this is the working code: private void Convert_to_graphics( IMapDocument doc) { IMap pmap; ...
-2
votes
1answer
243 views

On Mouse Up Event in ArcMap Add-In? [duplicate]

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
284 views

Handling mouse events for tool called by button?

I have a dockable window with a 2 buttons that call 2 different tools (Draw Marker and Select Features), What i want to happen is when the user clicks on the relevant button on the dockable window and ...
0
votes
1answer
37 views

Convert lat/long to arbitrary projection?

I'm writing Windows WPF application using ESRI's axMapControl, and I need to display points on the map, where the points are in lat/lon (WGS 1984), and the map projection is determined by the user. (...
2
votes
2answers
468 views

Create FeatureClass in Personal Geodatabase and store data

I have to create a new featureClass in my existing personal GeoDatabase. And save some polylines into this featureClass. How can i do it? I need c# code to do this. Edit: I have a problem during ...
3
votes
1answer
85 views

Not getting all decimal places when converting numbers to string (ArcObjects with VB .Net)

I would like to build some queries in my addin from layers in my map. I am having problems with double numeric types. esriFieldTypeDouble has 14 - 18 decimal places or more depending on the database ...
1
vote
1answer
29 views

Alter Esri geoprocessing environment settings with C#

I maintain an extension to ArcMap (currently at 10.2.2) for coworkers' internal use. Several people lately have been tripped up by un-set spatial grid settings when trying to export data into a file ...
0
votes
0answers
22 views

C# Arcobjects Adding multiple fields from selected features to datagridview

I'm fairly new to developing add-ins in c# and I'm trying to write multiple fields of selected features to a datagridview. Currently, the code will only display one field. I've been playing around ...
0
votes
1answer
29 views

Exporting map with arcobjects interupted by refresh event

I have developed an ArcMap extension in C# for ArcGIS 10.0 with a Form that configures the PageLayout and exports the ActiveView as PDF. There are two different ways to do that. You could use ...
3
votes
2answers
49 views

ArcObjects: Is there a way to insert an error into the Start Editing dialog

When I use the the Editor Start Editing toolbar item, a dialog with information, warning and error appears before the edit session is started: Is it possible to insert programatically my own error ...
0
votes
1answer
208 views

INTERSECT tool in arcobjects

I am using geoprocessing tool Intersect in Arcobjects. How to pass two input feature classes in to in_features option in INTERSECT tool could you please tell me how to pass. Geoprocessor gp = new ...
2
votes
1answer
731 views

Drawing in ArcGIS Engine?

I am trying to port over a large amount of code for drawing lines, bitmaps (with transparency), and text onto our map display. Originally it was done using Dynamic Display and IDynamicMap but that is ...
1
vote
1answer
12 views

ArcObjects: identifier for ICommandBars.Find

I am looking for the identifiers for the method ICommandBars.Find(object identifier) method in the ArcObjects. During web search I found the following page, that used the class ArcID, but I cannot ...
0
votes
1answer
26 views

ArcObjects: Is there a possibility to cancel stopping an edit session in BeforeStopEditing event

I have additional data to be stored when an edit session is saved. If the storing of the data fails (it is located on an internet service) the edit session should not be saved, otherwise data would be ...
0
votes
1answer
565 views

Debugging InvalidCastException was unhandled by user code error from ArcObjects DataStat?

I have some code that adds a bunch of group layers into ArcMap based on a table within ArcMap. The code works fine in VBA, however in VS 2010 I get an error on the "pEnumVar = pDataStat.UniqueValues" ...
6
votes
1answer
466 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 ...
1
vote
2answers
199 views

How do you make a field read only using Arcobjects?

I have created add-in toolbar with C# arcobjects. I am creating some empty geodatabase shapefiles. While creating featureclass i want to assign some default value to attribute and then make it read-...