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
2answers
98 views

Ring to Polygon

I want to get an exterior ring from a polygon. I need to itopologicaloperator.intersect a line with the polygon (exterior ring) to read attributes from the line. I have the original Polygon I can get ...
7
votes
1answer
1k views

Add layer to open mxd using ArcObjects from outside the map document crashes ArcMap

I have an Access database (MS Access 2010) that allows users to enter a variety of land treatment information including associated points, lines, or polygons which users can select and the database ...
3
votes
2answers
1k views

Accessing ArcGIS layers from separate thread using ArcGIS Engine?

I've got an ArcEngine application, referencing a MXD for it's data (and map display). I'm running a query against all layers, so can take quite some time. I would normally run the query in a ...
12
votes
6answers
3k views

ArcObjects Resources

What are the best books/web sites for C# development with ArcObjects? The ArcGIS Resource Center is very helpful, but I am trying to find sources with more examples. Thanks
1
vote
0answers
66 views

Snippets applicable for ArcObjects 10.2.1

I am trying to create ArcGIS desktop add-in using Visual Studio Professional 2012. But when I use ArcGIS Snippets Finder to insert code, I found the applicable versions as follows: ' Applicable ...
1
vote
1answer
62 views

ITopologicalOperator simplify takes more time

The objective is to cut the polygon where the lines are intersect. The polygon has 183182 vertices and taking more time while using simply method so process time is increased very huge. Please suggest ...
0
votes
2answers
48 views

Inverse of Selected Records using ArcObjects? [closed]

What is the Process to find the inverse of selected data from featureclass using vb.net arcobject?
0
votes
2answers
96 views

Find centroids of polyline and create point using Arcobject [closed]

I have one road feature class and one area feature class .What i have to do is i have to create a point at the centroids of the polylines of (road feature class) and find intersection of point with ...
0
votes
1answer
37 views

Query WMS GetFeatureInfo with known latitude and longitude

My issue is that normally, when you want to query a WMS layer, you need to pass width & height of a map, and x,y (in pixels) which describe a point on the map where user clicked. I want to do ...
0
votes
0answers
20 views

Map scaling in ArcObjects?

I am using below code to set mapscale of mapFrame. This frame I am using in PageLayout IMapFrame pMapFrame2 = new MapFrameClass(); pMapFrame2.Map = new MapClass(); pMapFrame2.Map.SpatialReference = ...
5
votes
2answers
3k views

No constructor defined?

In my C# Console Application, Visual Studio 2010 highlights new FeatureClassNameClass() in my below line of code and states "ESRI.ArcGIS.Geodatabase.FeatureClassNameClass has No constructors defined" ...
3
votes
2answers
342 views

How to add point to a polyline?

I have a polyline, and i want to add point (vertex) on a specific distance, like two meters for example. How can i do that?
1
vote
1answer
37 views

IProximityOperator.ReturnDistance returns incorrect result

I try to implement search of nearest features in ArcObjects.NET (please, don't suggest existing tools like Near) and I use IProximityOperator.ReturnDistance to get distances between features and to ...
0
votes
0answers
87 views

Using Code Block in Field Calculator with ArcObjects (VB.NET)

I'm having trouble using a code block in the Field Calculator with ArcObjects. Ideally, I'd like to be able to read a text file which contains the Python code for the code block. I've tested this code ...
0
votes
1answer
17 views

How can one get the value of the point where the AxMapControl is centered at?

I am using the AxMapControl to display a map and I want to record a point where I am and want to be able to return to the same point later on using the CenterAt() method.
0
votes
1answer
42 views

ITableWindow2 does not show all records

I have to develop an extension in C# for ArcMap 10.2 and I need to show information from a datatable in an a table window. I can show the table without problems, but I have a problem I can´t resolve. ...
1
vote
1answer
44 views

IElement, extract Element from GroupElement nested in GroupElement

As per title. I am trying to extract Element from nested GroupElement. I can not find any code sample for that. Please refer to one or point me in to right direction, how to do that. It sounds ...
1
vote
1answer
86 views

VB.Net Field Population Methods

Disclaimer: I am basically brand new to VB.NET and ArcObjects. I am computing some statistics as a component of a larger arcobject script. I write these components to an ITable. This ITable is ...
1
vote
1answer
57 views

ArcObjects- IBorder.GetGeometry() in Python

I am trying to get geometry of frame border trough IFrameElement.Border. I do receive IBorder object, which has .GetGeometry() method. How do I use this method to get geometry of the border? I can ...
1
vote
0answers
21 views

Menu - onCreate Event

In ArcObjects, the Class 'BaseCommand' has 'OnCreate' method(to handle oncreate event). Similarly is there any equivalent method available for Menu ('BaseMenu' Class)?
0
votes
0answers
23 views

ArcObjects open report wizard

ArcMap provides a function to create report and after the creation can save as different formats. Now I want to allow user to skip the intermediate steps. I want do the report function using ...
1
vote
1answer
98 views

How to connect to ArcSDE for using the ArcObjects Erase tool in C#?

I want to make use of geoprocessing via .NET ArcObjects, in this case of the "Erase" tool. This is easy once dealing with a local gdb file what I did for feasibility study. The issue occurs when I ...
1
vote
1answer
95 views

ArcGis: Rotated grids and cell size

I am using ArcObjects, namely RasterGeometryProc, to apply rotation on grids. The transformation works fine. However, when looking at the grids properties in ArcGis, the cell sizes has changed. ...
1
vote
1answer
32 views

How to show multiple features selection button/dialog box on the map using .NET?

If you use the Edit tool to click a location on the map with overlapping features, a small icon Selection chip pops up with a dialog box previewing the selectable features where you clicked, so you ...
2
votes
2answers
623 views

Creating layer from in-memory shape data using ArcObjects?

In my current project, a feature layer is created based on shape data generated after some complicated surface analysis procedure. The sequence right now is like [Surface Analysis Algorithm] -> ...
0
votes
1answer
173 views

IFeatureLayer.Seach() throws exception HRESULT:0x80041538

My code as bellow give error HRESULT:0x80041538 whenever I use GROUP BY or ORDER BY postfix. Trying in Personal(.mdb) and MSSQL database datas - same result. What can be the reason. Asked similar ...
-1
votes
1answer
55 views

After SDE Conversion, cannot open our GP Services to republish them

We have several services that were originally published against a local file-based database (with ArcMap 10.1). We spent the past week converting the data into an SDE database and we are running ...
1
vote
0answers
21 views

Using IGeoProcessor2 to update Oracle Spatial

In the below example the input and out are shape files read from folders.Is it possible to read and write Oracle Spatial Geometry tables? I have ArcGIS,ArcSDE and Oracle Spatial 11g. How to set ...
1
vote
0answers
61 views

Can a custom add-in execute code upon install of the .esriaddin [closed]

I have made a custom add-in using C#.NET(a toolbar that contains buttons) and I was wondering if it is possible to have some code execute upon the install of the .esriaddin file. Basically I want to ...
0
votes
2answers
52 views

Is it possible to create Runtime content progamatically with ArcObjects

I'm exploring different options for creating an offline mobile application with Esri's technologies. The option that fits my needs the best is to use the ArcGIS Runtime SDK with offline maps created ...
3
votes
1answer
994 views

ESRI Flash Command in custom code

I would like to implement the same flash feature command that ESRI uses when accessing the context menu on a table row. I have used the following successfully to flash a selected feature: ...
0
votes
3answers
96 views

Get Coordinates of selected item on map using ArcGIS Engine

I have IFeatureSelection. Then select from it items by QueryFilter. How can i get coordinates of selected item? (If there are more then 1 object, then select first)? Selected item is Point in ...
0
votes
0answers
10 views

ArcObjects - IXMLPropertySet2.SaveAsFile XSL Translate Error

I'm stuck on this issue and really unsure what the problem is. I am trying to simply save the (IXMLPropertySet2)IMetadata.Metadata using the IXMLPropertySet2.SaveAsFile() method with the following ...
4
votes
2answers
842 views

Running ArcPy script from ArcObjects?

the standard method requires to run ArcPy script in command line, i've struggled with it to run but without a result, i can import arcpy, set the workspace to the geodatabase path and describe the env ...
1
vote
1answer
182 views

Opening InMemory Table to execute some SQL gives Runtime Error 445 - Object doesn't support this action?

I have a InMemory that gets created, what I then want to do is run INSERT, UPDATE and DELETE queries on the table. The code i have at the moment is below, I create a new InMemory table, add it to the ...
1
vote
2answers
101 views

Get IFeatureLayer from ILayer using ArcGIS Engine?

I try to select object from layer by name. I think i found sollution here. First problem i got is that i use GroupLayer. So i made research how to get subLayer from GroupLayer. Sollution is here. Now ...
1
vote
1answer
29 views

Is there a tool in arctoolbox for IDistanceOp.CostPathasPolyline?

Almost all the methods in IDistanceOp have a corresponding tool in the Distance Toolset Spatial Analyst Toolbox. However, I can't find anything in the toolbox for IDistanceOp.CostPathasPolyline. ...
0
votes
1answer
175 views

Determing partially Overlapped features from two linear feature classes

I have been trying to find object ids of features that overlap partially. Input taken is two linear feature classes , I have tried IRelationalOperator Overlaps methords , but it seems that it only ...
10
votes
2answers
984 views

How to unit test ArcObjects with Mocking?

I'm a huge fan of unit testing, but still make use of a FGDB to grab features for running unit tests against when using the ArcObjects framework. Is anyone successfully using mocking against thinks ...
1
vote
2answers
59 views

Conversion to SDE changes names

I could not find anything on this topic already discussed. We converted our file-based system in ESRI to an SDE instance on Sql Server. We made changes in our code to open using the connection string ...
0
votes
1answer
37 views

Creating a program for batch snapping polylines and polygons

I currently work with large sums of lines data. I am editing them using different GIS software. I've realized that I can detect node problems in arcmap10.1. I would like to know if it's possible to ...
0
votes
1answer
195 views

Rendering layer in ArcMap using ArcObjects and Python?

I succesfully wrote a script to render a Uniquevaluerenderer in a layer in ArcMAP using symbols from 4 parameters (values) read from the attribute table of the layer. I used ArcObjects and VBA, but ...
0
votes
0answers
14 views

Custom Editor Extension - how to maintain original and the new feature [duplicate]

I am editing file geodatabase using edit toolbar. I've writing an extension to listen to edit events. It gives me the new feature with OnChangeFeature. However I am trying to obtain the original ...
9
votes
3answers
5k views

How does ArcGIS compute the distance between two points with a non-equidistant projection?

This is a follow-up question to my previous one, Can you suggest some well-written introductory texts about coordinate system projections? Let's assume I'm working with the CH1903 map projection, ...
0
votes
1answer
89 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(); ...
1
vote
1answer
51 views

How do you determine when user is clicking the end point of an edit sketch using ArcObjects?

I am using vb.net working on ArcObjects. One requirement is to pop up a toolbox once the user click the end point (double click the point under editing status). So I want to know how can I know when ...
68
votes
5answers
11k views

Accessing ArcObjects from Python?

I would like to be able to script some things that are not exposed via arcgisscripting or ArcPy. How do I access ArcObjects from Python? I'm working with ArcGIS Desktop 9.3.1 right now, but will be ...
4
votes
1answer
385 views

In ArcObjects, how do I change the spatial reference of a Map (Data Frame) in an existing MXD?

I need to change the spatial reference of an existing MXD programmatically. In ArcMap UI, I would take the following steps: 1) Open the data frame properties and go to the Coordinate System tab; 2) ...
2
votes
2answers
174 views

Spatial search to find featureclasses in SDE

Is there a way to find all featureclasses within SDE that fall within a spatial search e.g a user draws a rectangle on screen over a map of the world say. (I would like to do this progrmammatically, ...
0
votes
1answer
67 views

In arcgis10.2, can I access arcobjects using python? [duplicate]

I am using python in Arcgis 10.2, but it seems Python cannot meet all my developing demands, from the forum, others recommend to use python to access arc objects,but what they mentioned is the old ...