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)

0
votes
0answers
8 views

How to delete a feature class from a GDB using ArcObjects for Java?

I've seen this solution which may works in ArcObjects for VB/.Net: How to overwrite a shapefile or feature class using arcobjects When I try to convert it into Java, I get a ClassCastException on ...
0
votes
1answer
22 views

How to Convert ISelectionSet to ITable

I Have code ISelectionSet pSelectionSet; layer = AxMapControl1.get_Layer(0); pFeatSel = (IFeatureSelection)layer pSelectionSet = pFeatSel.SelectionSet; ITable table = pSelectionSet as ...
1
vote
1answer
23 views

arcmap editor attribute window fill value programmatically

In my map I have a layer named PARCEL, when create new feature on this layer, the attribute window will open automatically. There are 2 attributes in this layer: PARCEL_ID and SUB_ID. Since the ...
1
vote
2answers
37 views

How can I release the lock file on a DBF after removing its join to a FeatureLayer using ArcObjects?

I found another post with two different answers on how to remove the join between a feature layer and a standalone table, but neither method successfully removes the lock file ...
4
votes
0answers
39 views

Customizing Create Features window in ArcMap?

Can I customize Create Features window in ArcMap? (whether by using ArcMap capabilities or by writing ArcMap-Addin) I've read about Creating custom ArcMap TOC views, is there something similar for ...
0
votes
2answers
50 views

ArcMap keeps crashing whilst using simple C# .NET addin

I honestly have no clue what is causing this. I want to have a message appear that tells me which layers are selected or not. Here is my code: using System; using System.Collections.Generic; using ...
0
votes
0answers
13 views

Start Editing Return Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

I'm using IEngineEditor.StartEditing method to start an edit session on SDE Workspace. My workspace is having a right value because I have no problem to get a feature class using it. I'm not sure ...
0
votes
1answer
22 views

.net arcobjects draw polygon(rectangle) can not start at the preferred location

I am using the sample code (draw a polygon on the screen) provided by Esri but it seems I cannot start the drawing from a location I want, every time it starts at wherever the function(or tool) ...
-1
votes
0answers
6 views

network build the above code works perfectly in winxp but in win7 itshows file read/write error builderror.txt has Buildfailed::nocurrent record [duplicate]

mpGeoDataset = mpNetworkDataset 'Build the Network Dataset Dim pNDBuild As INetworkBuild Dim pReturnedExtent As IEnvelope pNDBuild = pNetworkDataset ...
1
vote
2answers
52 views

Which version of C# should I learn for ArcObjects with .NET?

I'm wanting to pick up ArcObjects and have decided on C# over VB as my language. I know that arcpy uses python version 2.7. If I had started learning python 3.2 to learn arcpy I'm sure I would have ...
1
vote
0answers
20 views

How can i draw sectors by lon/lat (for each record) in a table

I found a short code in the net (Sub CreatePie and Sub CalLine) that draw only for one point. I want to draw many point, so I make a table Temp.tab with 4 columns: Cellname, Lon, Lat, Azimuth I want ...
1
vote
1answer
19 views

Quick method to evaluate MXD project for dashed line

ArcMap export of a layout to Adobe Illustrator file converts all dashed-line symbology into dashes or dots that are not selectable as one object. How can I use ArcObjects .NET to access symbol ...
0
votes
0answers
19 views

INetworkBuild throwing exception of file read/write error?

I Have a code that executes well in winxp but recently i am working in win7 the earlier code runs well in win7 also but only the build network is throwing me an exception of file read /write error can ...
1
vote
1answer
24 views

Empty output with ArcGIS CopyFeatures

I am automating a process in .Net and calling the ArcGIS CopyFeatures geoprocessing tool multiple times. The source feature class is always in a file geodatabase and the result is always a new ...
0
votes
0answers
38 views

Searching for features added in an edit session with QueryFilter only works when using object id or no WhereClause

I'm getting strange behaviour reading added features from a feature class while within an edit session. The feature class is in a personal geodatabase and is open in the map control in an ArcEngine ...
0
votes
1answer
21 views

ArcObjects WPF Legend Toolkit Control doesn't show layers

I'm starting to develop GIS applications using ArcObjects for c# and WPF. I have to say: what a difficult disorganized and not well documented API, but that's another story. I'm trying to migrate a ...
0
votes
1answer
42 views

Track Map Events in ArcObjects Dockable-Window Addin

I'm building an Addin for ArcGIS 10.2 with c#. It is a dockable Window, that will host some controls for our custom export solution. I want to listen to Map-Move events of the main map ...
0
votes
2answers
62 views

Convert labels to Annotation addin crashes ArcMap

I am trying to write an ArcMap (10.3) Add-In in C# .NET that will convert labels to annotation. I have used a majority of the code from the relevant snippet on the ESRI resources website. When I run ...
2
votes
0answers
36 views

ArcMap - Export raster symbology to a raster function template programmatically

I would like to programmatically export symbology for a raster dataset as a raster function template xml file, as can be done by clicking the export button in the symbology tab of the layer properties ...
4
votes
1answer
105 views

Guidelines for using ArcObjects from Python

By far, How do I access ArcObjects from Python? is my most read and referenced Q&A on GIS Stack Exchange. In spite of that success, it's probably one of my weakest areas when it comes to actual ...
2
votes
0answers
40 views

ArcGIS Engine PageLayoutControl Get Page Coordinates from geographic coordinates

I have an ArcGIS Engine application that contains a PAGELAYOUT CONTROL In the code progressing I have acquired the centroid's of some selected polygons in real world coordinates (ie x = 2484242.45 ...
2
votes
0answers
27 views

How to add all tables from selected Personal geodatabase

I have a personal geodatabase which contains multiple tables and feature classes which are within feature datasets. I can add all the feature classes to ArcMap but I am unable to add all tables. Can ...
1
vote
1answer
27 views

Scripting creation of cogo polylines including curves

Is it possible to create polyline features from cogo type text files? I have some files that have survey type coordinates in them and they contain straight line segments as well as curves (defined by ...
1
vote
1answer
158 views

What is ArcGIS Pro .NET SDK?

What is ArcGIS Pro .NET SDK ? Can I code with ArcObjects?
1
vote
0answers
26 views

Optimize Code for Spatialdata intersection

I am working with ArcGis with c# and I Face some major issue and I do not reach why that issue is occurs. I am creating a shape file using ArcGis SDK which is created successfully. I have 500000+ ...
2
votes
0answers
69 views

How to get an ArcGIS custom tool to run fom the command line?

I have been experimenting with ESRI's CalculateArea custom tool and it works fine running within ArcGIS from a toolbox. Then I wanted to see if I could run it as a standalone script from the ...
1
vote
1answer
47 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. ...
1
vote
2answers
61 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
28 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 ...
3
votes
0answers
53 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 ...
1
vote
0answers
35 views

Getting all values of specific field

How do I get all values of a specific field of a feature class in ArcObjects (c#.net)? Is there any way to select all features using IQueryFilter interface?
1
vote
1answer
28 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 ...
4
votes
3answers
115 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 ...
0
votes
0answers
47 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
0answers
23 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
0answers
22 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
42 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 ...
0
votes
0answers
33 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 ...
3
votes
3answers
81 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" ...
2
votes
2answers
66 views

Get feature from list

I've done this: while (feature != null) { if ((feature.get_Value(feature.Fields.FindField("NAME")) != null) && ...
1
vote
1answer
56 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 ...
1
vote
1answer
28 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 ...
2
votes
1answer
46 views

How to set the extent of a rotated data frame from a rotated rectangle using ArcObjects?

I use ArcObjects to produce a map document. I have a rotated rectangle that I want to be the exact extent of my data frame. So, I want to rotate the data frame with the same orientation than the ...
1
vote
1answer
43 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 ...
1
vote
0answers
40 views

ArcObjects — How to tell if an event is already wired up

Using Visual Studio 2010 C# and ArcMap 10.1. In a custom ArcObjects extension, a bunch of events are wired up at startup. For example, this simple standard code chunk: IEditEvents_Event ...
0
votes
1answer
42 views

How to batch export to PMF using ArcGIS 10.2 and VB.Net

This is my first post, and was hoping I might be able to get some assistance. I have modified a code I found online to batch export a series of map documents (mxds) to ArcPublisher files (PMFs). I ...
1
vote
0answers
29 views

Is spatial reference information suceptible to be translated?

In an English application that uses ArcObjects API from ESRI, the information regards the spatial reference system is displayed in English as the API gives it. If the application is translated to ...
2
votes
1answer
65 views

How to get layer description using ArcObjects?

Assuming we have a ILayer object, I'm looking for how to get the layer description. I mean the description text of the layer properties: I didn't find it into the ArcObjects documentation.
0
votes
1answer
57 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 ...
0
votes
0answers
34 views

Cast, Convert Esri.ArcGIS.Geo.IRecordset TO system.Data.Dataset solutions?

I have a bunch of tools that are still running on Arcmap 9.2 drive and I am updating my tools so they can run on 10.1. I came across this problem in one of my functions, where I needed to cast an ...