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)

1
vote
1answer
268 views

How can I transform layout page units to map units?

I am trying to build an add-in that will create a polygon from the current map extent. This is not a problem in Data View where I can easily get the envelope of an iMxDocument:iActiveView in data ...
1
vote
1answer
18 views

What's the difference between ArcGIS .NET SDK and ArcObjects?

Here's the scenario: The goal is to create a standalone console application to process data. This processing is basically ETL operations and, in the end, the results end up in a feature class table. ...
0
votes
1answer
16 views

Casting ILayer to IFeatureLayer in ArcObjects 10.1

I'm trying to use the following code in an ArcMap extension: private IFeatureLayer getLayer(string lname) { IMap map; IFeatureLayer flayer; IEnumLayer ...
1
vote
1answer
14 views

Releasing features from a recycling feature cursor

I have a recycling feature cursor that is used to fetch a single row. Is it my responsibility to release that returned feature, or will it be cleaned up by the cursor as it would be if I consumed the ...
0
votes
1answer
281 views

Join and Calculate vb.net

Im trying to join an excel table to a shapefile and then calculating those fields using vb.net. The code I have written has no errors, but won't work when I try it in ArcGIS 10.1 and I'm out of ideas. ...
4
votes
1answer
316 views

How to add individual layer of WMS group layer to ArcMap?

I am attempting to add a single WMS layer that is part of a WMS service group layer. I am writing code to do this using ArcObjects in C# .Net. So far I have been unsuccessful. I can either only add ...
3
votes
1answer
92 views

Create layer from ArcGIS REST URL in ArcObjects using C#

I am trying to create a layer and add it into a MapControl from ArcGIS REST URL. For example I use the following URL ...
0
votes
1answer
160 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 ...
3
votes
0answers
136 views

Add WMS Layer into map using Arcobjects

I am going to add a wms layer to my existing map.I use this code: public load_wms(ESRI.ArcGIS.Controls.AxMapControl mapcontrol) { // Create an WMSMapLayer Instance - this will be ...
3
votes
1answer
347 views

CodeDom.Compiler fails in Arcmap add-in, but works from console app

The Test method in the code below succeeds in a console test app, but fails when I call it from within an Arcmap add-in, throwing a ReflectionTypeLoadException with a loader exception saying: ...
-1
votes
0answers
34 views

ArcMap License problem [duplicate]

I dont want to execute my Add-in application in crack ArcMaps.I want to use or execute only licensed ArcMap's (orginal ArcMap's) my application.I cant control with EsriLicenseStatus constants.Are ...
3
votes
0answers
33 views

How to set up graduated colors for a layer using ArcObjects?

I have to render a feature layer with a graduated colors renderer, using the ArcGIS API for Java (or VB, .NET). As the feature layer data is created dynamically using webservices, I don't in advance ...
2
votes
1answer
122 views

How do you determine which dbclient connection property to use for an Oracle SQLWorkspace connection?

I have an Oracle11g database that I connect to via a SQL Workspace; however the actual dbclient string value that works differs depending on machine (and I'm guessing oracle client configuration). On ...
4
votes
1answer
237 views

CustomLayer Draw Com Exception

I'm trying to create a custom layer, nothing crazy just press a button and have something show up on the display and also have the layer display in the TOC. Well, the layer shows in the TOC but ...
3
votes
3answers
241 views

Is there any way to write a snipet of code with function of “SDELayer -o register” command

I try to create a geodatabase using some SQL command and then register some tables of it with SDE. I create an empty geodatabase using sde post installation and then create tables and other database ...
0
votes
1answer
128 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 ...
0
votes
2answers
321 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 ...
1
vote
0answers
23 views

Getting all values of specific field

How do i get all values of a specific field of a featureclass in arcobjects (c#.net)? is there any way to select all features using IQueryFilter interface?
3
votes
2answers
672 views

Is it possible to deploy on a ArcGIS 9.3.1 machine a component created with ArcGIS 10?

We are developping a C# ArcObjects Class extension assembly. Our development machine was recently updgraded to ArcGIS 10, but when we try to install the assembly on a 9.3.1 machine, we get an R0000 ...
1
vote
1answer
14 views

ToolStrip Button click event is not fired on first click

I have a dockable window in a custom ArcMap extension. The dockable window has a regular windows forms ToolStrip control in it with ToolStripButtons on the ToolStrip. When the parent dockable window ...
3
votes
2answers
107 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
206 views

Adding an existing Feature class to an existing Feature Dataset in c#(arcobjects)

I want to add an existing feature class to an existing feature dataset. Both the feature class and the dataset have the same coordinate system, I searched over the net but only assistance I found was ...
3
votes
2answers
57 views

Add and remove tools from ArcMap toolbar via C# Button and ArcObjects?

OK I updated the draft with some of the suggestions but am still having some issues. I am trying to create a custom button in arcmap that when pressed will edit a toolbars content. Doing things like ...
10
votes
2answers
2k views

Avoiding fails from ArcObjects geoprocessing with .NET?

There are some nice features in ArcToolbox we can use, but for some reason, this is NOT working properly. It doesn't even throw me an error. My software is running inside ArcMap, so no need to ...
14
votes
6answers
6k views

Converting between Esri Geometry and WKT using ArcObjects?

It seems like there is no means of converting an ArcObjects geometry to the Well-Known Text representation (and vice versa) in ArcGIS ArcObjects API. The only thing I was able to find is conversion to ...
3
votes
2answers
388 views

Where to buy training licenses for learning ArcObjects?

A client of mine wants me to do some work with C# and ArcObjects. However, I have no real experience with C# (or much ArcObjects except with Java to be honest). Rather than outsource the work, I ...
3
votes
2answers
158 views

Automate Naming of Stormwater Network (Geometric network)

We have a geometric network representing our stormwater network. For anyone unfamiliar with stormwater drainage networks, they are composed of pipes and pits (simplified for this question). Pits are ...
0
votes
0answers
35 views

How to embed ArcMap graph into winforms dialog using .NET/C# and ArcObjects?

I am creating an addin for ArcMap in csharp and want to add a graph to a dialog. The native arcgis graph control doesn't seem to been available from the visual studio toolbox. I can't figure out ...
1
vote
1answer
121 views

How to get the data in dbf file while creating shapefile using arcGis

I am using ArcObject DLL to create shapefile. I am successfully able to create the shape file but I am having some issues with populating the shapefile data into .dbf file. At present the .dbf file ...
4
votes
3answers
374 views

How to use ITrackCancel to escape IRubberBand track?

I have a BaseTool for AX_MapControl and AX_PageLayoutControl that allows to draw a polyline via IRubberBand. But once the rubberband is started, you can't cancel it e.g. by hitting escape. I found ...
4
votes
2answers
804 views

Identifying features using ArcGIS Engine?

I am new to arcgis. I am building a custom desktop GIS application using arcgis engine 9.3.1 . I want to make a custom identify tool and add it to toolbar control. Any example or code will be ...
1
vote
0answers
15 views

FDOGraphicsLayer IGraphicsContainer Reset/Next throw 'not implemented'

Running ArcGIS 9.3.2 w/ ArcFM. protected override void InternalClick() { var d = _App.Document as IMxDocument; var m = d.FocusMap; var c = m as IGraphicsContainer; c.Reset(); ...
0
votes
1answer
201 views

How to call a GP service from ArcObjects in .NET using ArcGIS Engine 10.2?

I published and successfully accessed a GP service in ArcMap 10.2, but I couldn't make it work in my .NET program using ArcObjects 10.2: IGeoProcessor gp = new GeoProcessorClass(); ...
0
votes
2answers
607 views

C# Microsoft Visual: Setting text box value to null

I'm creating an attributes table in ArcObjects to show a bunch of values. They save just fine when I put them in, the problem is reverting them back to null. My text values all get turned into a blank ...
2
votes
2answers
58 views

Get feature from list

I've done this: while (feature != null) { if ((feature.get_Value(feature.Fields.FindField("NAME")) != null) && ...
0
votes
0answers
17 views

ITopologicalOp simplify

I want to simplify a polyline geometry so that at the intersection line was torn, that is added EndPoint (see figure below). Polyline Feature class is stored in a file geodatabase in the dataset, it ...
3
votes
1answer
36 views

Can I get a unique reference to a feature layer in ArcObjects?

I want to build an IDictionary with the feature layers of my TOC in ArcObjects. So I need key value pairs. The value will be an attribute of the feature layer but I am wondering what to use as key. I ...
3
votes
3answers
63 views

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

I'm using a ESRI.ArcGIS.Desktop.AddIns.ComboBox. I configure the size of the combobox in config.esriaddinx with the following xml: <ComboBox id="my_id" class="MyComboBox" ...
0
votes
1answer
139 views

ArcGIS Custom Toolbox crashes ArcMap 10.0

I have prepared Custom ArcToolBox using ArcObjects in java. It was working fine before though was giving NullPointerException but this something java related error and that is fine. Later I have ...
0
votes
2answers
362 views

How to Create shapefile using Geometry field

I am working on ArcObject. I want to create shape file using arcObject. I am very close to it. but need some better alternative as i feel my solution may fall short in time when there are lakhs of ...
0
votes
0answers
16 views

argis 9.3 to arcgis 10.2 arcobjects connection AutomationException: 0x5 - Access is denied. in 'Invoke'

A legacy code, written in 9.3, made connections to the server via the following code public String connect(String domain, String user, String password) { new ...
1
vote
1answer
42 views

Reusing ArcObjects code written at 9.3 in ArcGIS 10.2?

-- update: i've narrowed down the scope of the question to something more specific in a new question: argis 9.3 to arcgis 10.2 arcobjects connection AutomationException: 0x5 - Access is denied. in ...
0
votes
1answer
46 views

What's the best way to break closed polyline using ArcObjects?

I have a polyline feature class with several closed lines (the start point = the end point). I need to break these lines in two features, using ArcObjects (doesn't matter Java, VB or C#). I have ...
1
vote
1answer
29 views

Semi-transparent picture symbols in ArcObjects

When creating a new point layer with picture symbols in ArcMap 10.2.1 using ArcObjects, I have tried several ways to load semi-transparent symbol images from .png files, but to no avail, the ...
3
votes
2answers
379 views

How to get ArcMap reference without launching application?

I need to get hold of ArcMap properties in order to change the data source of the layers within it. I have developed a similar utility earlier utilizing ICommand, but I was curious if I could get a ...
0
votes
1answer
115 views

Determine what value used in Editor.OnCreateFeature

How can I determine what Value-Layer (not the layer itself, but the different colors for different attributes) was used in ArcGIS CreateFeature Event, when I insert a new feature using the Editor?
4
votes
3answers
285 views

Maximum length of WHERE clause with IN statement

I need to get all features from feature class where their field value matches to input array. To achive this one may set IQueryFilter.WhereClause property similar to 'FIELD_NAME IN (array[0], ...
2
votes
2answers
254 views

.NET Components triggering ITools on ArcEngine/Objects

I'm building a simple map interface on a .net component that I need to redistribute around. Well, my initial thoughts was to create the tools just the way I'm used to do it in ArcMap, inheriting ...
0
votes
1answer
104 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 ...
1
vote
1answer
22 views

What is the parantHWnd parameter used in some ArcObjects methods?

So the parameter parentHWnd appears in a number of ArcObjects methods, such as iExportOperation.ExportFeatureClass. Does anyone know what the parameter is? I can't seem to find any explanation. The ...