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

ArcGIS 10.1 - c# custom geoprocessing function tool - how to populate a polyline output parameter?

I'm at 10.1SP1 with VS2010. In my tool's ParameterInfo property I create an output GPParameter object of IGPParameterEdit.DataType GPLineTypeClass. Then in the Execute() method I do work that ...
1
vote
2answers
1k views

Get Number of Rows, ArcObjects (VBA 6.0)

I am sorry to bother with what may be an easy question for most of you but i am new to ArcObjects (VBA 6.0) in ArcMap (ArcGIS 10.0) and i am really struggling here. I am trying to count the number of ...
2
votes
2answers
260 views

best practices for exception handling in ArcGIS .NET custom geoprocessing tools

I'm working on a set of C# GP tools for use both in Desktop and Server 10.1. The only soup-to-nuts treatment of writing geoprocessing tools in .NET appears to be Building a custom geoprocessing ...
2
votes
0answers
218 views

Processing arcobjects cursor is taking long time

I am maintaining a code on arcobjects 10.1, and there is a bug happening. I have a code that is parsing through a cursor, and generate a where clause statement to run it on a second query. So the code ...
1
vote
0answers
523 views

How to convert Graphic Layer to Feature Layer in ArcGIS 10.1

In general Graphics can be converted into Features manually from Drawing Toolbar option convert Graphics to Feature. My requirement here is i want to convert through code using ArcObjects and C#. One ...
3
votes
0answers
276 views

What is the correct way to handle assembly resolution in .NET ArcGIS add-ins?

This has been a thorn in my side for some time now -- in .NET ArcGIS add-ins, assembly dependencies packaged with the add-in are often not resolved correctly. I am still not sure why and under which ...
1
vote
0answers
28 views

When should I use recycling = true with IFeatureClass.Update? [duplicate]

I am migrating .NET code from 9.3 to 10.1 The code is using IFeatureClass.Update(queryfileter, true) where true is for recycling. I know recycling should not be used when we do update, and actually ...
1
vote
1answer
496 views

Arcobjects initializing license error

I have ArcObjects .NET code that is running on a machine with ArcGIS for Server 10.1. The application worked on the dev server. But when I moved to Test server, I am not able to initialize the ...
2
votes
0answers
143 views

How to identify custom lines in .Dgn file using DgnLib?

I am getting a problem, I can't identify custom lines in .Dgn file. As you know, in Microstation 7, we can assign the style value of lines from 0 to 7. But if lines are customed lines, they always ...
2
votes
1answer
163 views

How can I suspend default shortcut menu and substitute with a custom menu in the TOC?

I looking for solution (using ArcObject SDK 10.1 (VB.NET) ArcMap Addin template) to substitute the default shortcut "right-click" menu in the TOC (When a TOC Item is right-clicked) with a custom menu ...
0
votes
1answer
192 views

How to get the absolute raster row / column of rastercell when using ArcObject Raster Cursor?

When using the ArcObject RasterCursor (see snippet below), how do I get the absolute row / column of the current pixel value? IRasterCursor rasterCursor = raster.CreateCursorEx(null); do { ...
4
votes
1answer
530 views

Intersect, Union are failing on 10.1

After a huge help from Blah238. I found exactly what is the problem. I wasted few days checking our data, and trying many things. The problem that I cannot do intersection between two polylines to ...
2
votes
2answers
111 views

Cache FeatureCursor results so they can be requeried

What is the best method for caching features obtained by a featurecuror so they can be requeried without having to round trip to the datasource? I am querying a subset of features using a queryfilter ...
2
votes
1answer
277 views

Binding to ArcGIS for server

I am building a stand alone .NET applications using ArcObjects. I want to run it on the server, where I have ArcGIS for Server. I am trying to bind the license at runtime to the ArcGIS server ...
4
votes
1answer
789 views

Is there a faster way to get unique values for a given FeatureClass in ArcObject?

I'm trying to count rows by unique values for a given FeatureClass. I'm using DataStatistics to get the unique values for a specific column for a given FeatureClass. This seems to be (very) slow with ...
2
votes
1answer
205 views

Can't cast from IFeatureClass to IFeatureClassLoad [duplicate]

I'm attempting to load a large number of features (up to 310k) into a feature class. It is functional at the moment, but speed is a major issue. It takes about .42 seconds per 1000 features. I've ...
3
votes
1answer
248 views

ArcObjects: Perform action upon refresh command in the TOC

We are using custom layers in our plugin used in ArcScene/ArcMap. For quite some time we were trying to figure out how to hook into the event occuring when the user selects "Refresh" in the right ...
2
votes
1answer
86 views

Personal Geodatabase: Access speed up due the use of RelationshipClasses?

I've a special question about the effects of RelationshipClasses. For some reasons I've created a Personal Geodatabase and imported two features from Shape-Files and created an own table. For ...
0
votes
0answers
121 views

Migrating code to 10.1 and recycled search

I am migrating 9.3 Desktop extension to 10.1 I am getting this bug when I am trying to update a row in the geodatabase "Cannot call Store on a recycled row while editing" And seems the reason is, I ...
1
vote
2answers
211 views

How to drag a layer from ArcMap Add-in into its MXD?

I have a simple ArcMap Add-in that displays all featureclass names in a database inside of a ListBox. If I select a name or multiple names in the listbox, how can I drag and drop it in ArcMap? Just ...
5
votes
1answer
211 views

Is it possible to add to the map a layer containing results from a sql query

I'm developping an ArcMap Extension and I need to join an existing feature class with data from a sql query located on another DBMS. I already set up a Workspace with an OleDbWorkspaceFactory. I'm ...
2
votes
1answer
301 views

Why does Updating Location of ArcSDE Feature using ArcObjects .NET give Error HRESULT E_FAIL has been returned from call to COM component?

I have been able to connect to an Enterprise GeoDatabase, retrieve features from it and update attributes. However I am having problems accessing and then updating the shape property of a feature. ...
3
votes
0answers
437 views

VBA Convert decimal degree to Meters button

I have 2 data frames one which has WGS data in it and the other OSGB1936. I am trying to create a button where the user can input decimal degrees (WGS) and it will zoom them to that location in ...
1
vote
1answer
259 views

.Net to Python - ArcGIS Add-in

Background: I have been tasked with porting a 9.3 .NET toolbar to ArcGIS 10 / 10.1. I am a dyed in the wool Python programmer and, while digging through someone else's .Net is interesting, it isn't ...
1
vote
0answers
98 views

Can't find MapFrame of GraphicsContainer in PageLayoutControl (C#) ?

I am getting a problem: I added element (text, line) in a ActiveView.FocusMap of a PageLayoutControl, then all elements are showed in the MapFrame of PageLayoutControl.GraphicsContainer. If I don't ...
4
votes
2answers
1k 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?
1
vote
1answer
92 views

IGPFunction2.Execute() never triggers when using IEnumLayer.Next() when run in background

I got a strange issue in GP tool I don't really understand: In my IGPFunction2.UpdateMessages() method, I use the following code to traverse all layers: IEnumLayer enumLayer = ...
0
votes
2answers
496 views

Converting Arcobjects in VB.Net to C#

I am attempting to learn ArcObjects using a tutorial that uses VB.NET and I am trying to convert it to C#. I have Visual C# 2008 Express Edition. This is an ArcMap Add-In project that creates a ...
3
votes
1answer
2k views

How to get all selected features from a specific feature class in C#

I am looking for a way to get all selected features from a map which belongs to a specific feature class (shape file, geo database,…). To be more specific and to give you a real case for my ...
3
votes
1answer
2k views

Calculate polygon area inside extent

We're using ArcMap 10.0 sp5, creating a tool in c# using the ArcObjects sdk. Is there a built in function or simple set of steps that calculates the area of each feature of a polygon layer within a ...
0
votes
2answers
843 views

Is there any API in C# for Zooming selected feature?

I am new to ArcGIS and want to implement the Zoom to Selected Features functionality available in Selection menu option (Selection-> Zoom to Selected Features), using C# API. Is any API available in ...
0
votes
0answers
40 views

esri ArcObjects slow performance accessing features [duplicate]

I have to create my own control like Attributes Table using C#. My version of attributes table is very slow, for ex. for 300.000 rows in table and 140 fields it takes about 1 minute! esri Cursors are ...
2
votes
1answer
940 views

ArcObjects 10.1 .NET Convert Point from WGS1984 to OSGB1936

Please can someone help me convert a point in WGS1984 to OSGB1936, I have followed all the documentation (or so i think...) and yet have not made any headway into this problem. This is my code : Type ...
1
vote
0answers
38 views

Problem with deployment of GeoProcessors

I am developing an AddIn which requires lots of Geoprocessing but whenever I deploy any Geoprocessor, the ArcMap crashes and its always with the Geoprocessors only. All other commands are working fine ...
5
votes
3answers
576 views

How can I determine the layer name in an edit session?

I have a problem with an editor extension in an Add-In for ArcGIS 10. The editor extension listens on different events occuring on shapefile layers via registering listeners: ...
1
vote
0answers
142 views

Interpolate shape (3d analyst) problem

I am making a code on C# to interpolate z values of a line on a DEM. Below is the code that I've written. I have also tried step by step debugging, the program works fine till the Geoprocessor ...
2
votes
0answers
1k views

How can I copy selected polygon features to a polyline feature class with ArcObjects?

I would like to copy selected polygon features to a polyline feature class. (Similar to how polygon features can be copied and pasted inside an edit session in ArcMap) Until recently I've been using ...
2
votes
1answer
659 views

Benefits of relationship classes and how they can be accessed in c#

At the moment I've a personal geodatabase with two imported feature classes from shape files and an own created table. This table has columns for the IDs of the elements in the two feature classes. ...
1
vote
1answer
752 views

How do I get Visual Studio to run EsriRegasm.exe as administrator?

When run Visual Studio 10 as administrator and build a project with this in my csproj: <Target Name="BeforeClean"> <Exec WorkingDirectory="$(CommonProgramFiles)\ArcGIS\bin" ...
4
votes
2answers
659 views

Is IPolygon2.QueryExteriorRingsEx Method not working in ArcGIS version 10.1 SP1?

I am updating my addins from 10.0 to 10.1 and my code is crashing on the IPolygon2.QueryExteriorRingsEx Method. I understand there is something strange going on with this method because Developer ...
1
vote
0answers
61 views

How do I prevent Arcmap from verifying SQL expressions when using a plugin dataset?

I've written a plugin workspace for ArcGIS. I'm able to compose a where clause containing syntax that my implementation of IPluginDatasetHelper understands, assign it to IQueryFilter.Whereclause, and ...
2
votes
0answers
61 views

ArcObjects custom GP tool: Multiple extensions using IGPFileDomain

I am using IGPFileDomain to make the user select between different file extensions, for example .type1, .type2, .type3. These are added using domain.AddType("type1") etc. The dialog box then lists ...
3
votes
2answers
580 views

arcobjects update geometry Z values of line vertices with a given number

I am trying to develop arcgis 10.0 addin to update Z values of vertices of a selected line. Scenario: The tool scans all features in a given shape file and populates the list of features which has at ...
2
votes
1answer
315 views

How to search an ITable with conditions [duplicate]

At the moment I am searching for the most effective method of searching an ITable with one or more conditions (like where clauses). I can perform it manually by iterating through each row and proof ...
2
votes
1answer
150 views

IGeometryBridge.GetPoints throws NotImplementedException. Am I doing something wrong?

I am working on some .NET code that processes lots of polygon geometries at the vertex level. In order to reduce COM interop overhead, I want to call IGeometryBridge2.GetPoints once instead of calling ...
0
votes
1answer
76 views

How to use a property of a different interface for a created ArcObject

I have created an arc based three points (from point, through point, and to point). To create the arc I used this code: import arcpy, comtypes.client import comtypes.client.CreateObject as ...
5
votes
1answer
481 views

Slow performance when selecting features

I am trying to use the following code to select the features that have the attribute values that I pass in. The performance is really slow when it comes to a lot of values e.g >16k values to match ...
1
vote
0answers
64 views

What affects the kind of date (local vs. UTC vs unspecified) on JTXJobClass.StartedDate?

I am accessing the JTXJobClass.StartedDate for a JTX Job (with IJTXJob3). I am getting an unspecified DateTime.Kind value. The value appears to be UTC (iirc, WMX always stores UTC in the database ...
1
vote
1answer
114 views

how to set workspace of Geoprocessor in .net?

I am migrating some code from VBA to C# for developing an addin. In VBA, the geoprocessor's workspace could easily be accessed by workspace property of Geoprocessor. But how to set the geoprocessor's ...
1
vote
0answers
156 views

ArcObjects ICommandBar is not refreshing

I am migrating a 9.3 based Desktop extension, to 10.1 The Extension, is building toolbars on the fly. It creates the toolbar, and add the commands to it. This is the snippets of the code that does ...