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
0answers
319 views

Using custom contextMenu in Arcobjects(C# and ArcMap)

I added a new custom tree to TOC which looks like this: IObjectClass IFeature IFeature ... IObjectClass IRow ... made context menu using this sample ...
0
votes
1answer
216 views

Can't load Mxd file in MapControl?

I used below codes to save IMap into byte[] (to store in my database), but I can't load it again, are there anyone know what's wrong ? public byte[] SaveMap(AxPageLayoutControl pageLayOut) { ...
0
votes
1answer
728 views

Problem inserting new features to file geodatabase feature class using ArcObjects 10 SDK

I'm trying to add new feature to file GDB feature class and keep getting this error: Objects in this class cannot be updated outside an edit session. Feature class has attachments enabled (exists ...
2
votes
1answer
375 views

Write string to status bar that doesn't go away

I'm attempting to write the number of items matching a given query to the statusbar. when i debug through the code, i am able to step through and see the message hit the statusbar, but then it ...
1
vote
0answers
57 views

code for finding gaps between polygon parcels

i am trying to write code for finding gaps between polygons, the idea is to convert polygons to polylines and checking the attribute table, each selected segment that shows two records in the tables ...
1
vote
3answers
361 views

ArcCatalog 10.1 tree doesn't refresh after adding new custom IGxObject at runtime

I am using ArcObjects 10.1 (.NET) to customize ArcCatalog: adding new nodes in catalog tree like in the Esri's example. But when I add new child node to already expanded parent, it doesn't show up in ...
2
votes
0answers
464 views

Can I use an Update cursor with a versioned feature class which has attachments in ArcObjects .NET

I have a problem with my code (C# ArcObjects 10.1). We are trying to update and insert 10 - 15 rows at a time into a feature class hosted in ArcSDE 10.1 on SQL Server 2008 R2. We have a feature class ...
1
vote
0answers
76 views

Create Configurable Extension in ArcGIS Desktop

I am creating a configurable extension for ArcGIS desktop 10.1 I am not using Add-on , so please don't suggest add-on. How can I disable some toolbars and commands, when the extension is disabled? I ...
6
votes
1answer
504 views

Annotation features containing both GraphicElement and TextElement objects not drawing in ArcGIS Server map service?

I am building annotation features with Python/comtypes/ArcObjects. The annotation works great in ArcMap (10.1), but it is does not draw when published to a map service in ArcGIS Server. Each piece ...
2
votes
1answer
196 views

Reading Attributes from Attributed Relationship Class ArcObjects

I have an M-N relationship class with attributes. I am listening to the IRelationshipClassEvents.OnCreate Event event to see if any new relations are created. How can I read these attributes from an ...
0
votes
0answers
151 views

ESRI AddFeatures call on rest endpoint with attributes

I can add a line feature via the rest endpoint with my hand crafted call from C#. However, if i add any attributes to the call it will fail and say unable to perform operation. All of the fields in ...
3
votes
1answer
167 views

How to add image base tool control to a drop-down list in ArcGIS 9.3.1

I have to retrograde an ESRI add-in application from ArcGIS 10.1 to ArcGIS 9.3.1. My challenge is how in the drop down list can I add base tool control( will be shown as icons inside the drop down ...
2
votes
1answer
266 views

How to save raster results of IExtractionOp?

I'm using IExtractionOp to clip a raster by polygon: IExtractionOp operation = (IExtractionOp)(new RasterExtractionOp()); IRasterBandCollection rasterBandCollection = ...
1
vote
0answers
67 views

Joining a In_memory table with an SDE table

I have a in memory table that gets created, and want to join it to a table from SDE. I have tried the following code. Private Sub JoinTables(sdetable As ITable, inMemoryTable As ITable, joinField As ...
8
votes
0answers
219 views

ArcObjects running in Addin slower?

I have created a class library which does some geoprocessing. The addin calls a class that is an async process. I have ensured the thread is STA and the arcobjects are thread safe (ie. not passed from ...
4
votes
1answer
170 views

Is it possible to share temporary (InMemoryWorkspace) FeatureClass between Threads?

I'm trying to run some operations (functions) in seperate threads so that the UI is not blocked. One of this operation is the generation of a feature class copy from an existing feature class into a ...
1
vote
0answers
265 views

Picture fill symbol fails with a polygon graphic

The following code snippet successfully draws a graphic polygon and fills it with the specified picture fill symbol. When the x values for all of the points are made negative and a repeat call to the ...
8
votes
2answers
258 views

How to efficiently (programmatically) determine whether two datasets have / don't have identical content?

Given: a geodatabase A that contains 100 datasets named a1 .. a100 a geodatabase B that contains 100 datasets named b1 .. b100 I want to programmatically (*) determine for each dataset pair (ai, ...
0
votes
1answer
216 views

Using ESRI.ArcGIS.Display.ITemplate to draw cutom lines?

I am using ESRI.ArcGIS.Display.ITemplate to draw custom lines such as dot/dash lines on a map control. Then, I used below codes ESRI.ArcGIS.Display.ITemplate templateCls = new ...
2
votes
0answers
747 views

How to copy a feature class within the same GDB

I'm trying to copy/clone a feature class within the same file gdb using C#. I've figured out that this won't work with IDataset or IFeatureDataset. So far I only found IGeoDBDataTransfer.Transfer but ...
1
vote
1answer
414 views

How to get the nearest line to a feature?

I have features on map, and i want to get the nearest poly-line to each one. How to write spatial query to get the nearest one. I tried to use ISpatialFilter but i couldn't reach anything.
6
votes
1answer
333 views

Is ArcFM or ArcMap leaking memory when switching between page templates?

Can anyone else reproduce the memory leak described below? Any insight into what may be causing the leak is appreciated. I have custom code that swaps between landscape and portrait templates and ...
2
votes
1answer
224 views

Obtaining map service url from within Server Object Extension (.NET)?

I'm having trouble figuring out how to obtain the full url to the map service a Server Object Extension is running on top of. I bascially want: IMapServer4 mapServer = ...
2
votes
1answer
612 views

How to split zAware polyline by points programmatically with C#?

I'm trying to split a polyline by the boundaries of a polygon using IPolyCurve2.SplitAtPoints using C#. The polyline I'm trying to split is zAware and holds elevation values at a regular interval. ...
1
vote
1answer
409 views

ArcObjects Java Calculate Line Length

I'm relatively new to programming and ArcObjects. I'm trying to simply calculate the length of a line (test.shp) using ArcObjects and Java. I've tried the code below with no luck. This is simple in ...
1
vote
1answer
797 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
302 views

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
231 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
574 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
305 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
542 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
148 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
176 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
201 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
584 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
128 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
149 views

Syntax for ArcGIS ICalculator object?

I have a code snippet that I can't figure out: 'Define a calculator for NewArea field pCalculator = New Calculator With pCalculator .Cursor = pCursor .PreExpression = "Dim ...
2
votes
1answer
312 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
895 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 ...
3
votes
1answer
222 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
262 views

Performing action upon refresh command in TOC using ArcObjects?

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
90 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
125 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
228 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
223 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
320 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
479 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
262 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 ...