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

Trouble programmatically publishing to SOM when SOC is on another machine [closed]

I wrote a desktop extension for ArcMap that allows a user to publish the map they've just created to an AGS 9.3.1 machine on another server. This works fine as long as the AGS machine acts as a SOM ...
1
vote
1answer
412 views

Converting distance between nautical miles and degrees

This is such a basic question that I'm kinda of embarassed. Here is the situation: We have a certain funcionality developed that: Will check for a tolerance value (this input is given by the user ...
6
votes
2answers
249 views

How do I query a string in Arcobjects that has a single quote in it?

I'm trying to query values using a cursor and loop for the process of removing diacritics. The problem I am running in to is that when I try to create a WhereClause like so... qf.WhereClause = ...
0
votes
1answer
600 views

how do i calculate polygon area with arcobjects?

i'd like to develope an application with arcengine that can calculate area of a polygon . i wrote the below code to select a polygon in combobox for (int i = 0; i < pmapcontrol2.LayerCount; ...
2
votes
2answers
498 views

Adding Button as Icon and Text to toolbar in ArcMap

How do you add a BaseCommand to a custom BaseToolbar as an icon and text. This is not an Add-In, it's the old way of doing buttons and toolbars even though it's version 10 of ArcMap. Cheers
4
votes
1answer
296 views

ArcObjects: How to get the midpoint of a set of polylines?

How can I find the midpoint (along the curve) of a set of polylines using ArcObjects?
2
votes
1answer
167 views

ArcMap 10 Commands

Is there an updated ArcMap Commands site for version 10? If so, where are they located? I could not find it here: ArcObjects SDK 10 Microsoft .NET Framework Thanks
3
votes
1answer
355 views

How do I get the path of a layer file (.lyr)?

In C#, how do I get the path of a layer file? I can get the datasource and name of the layer but I need to get the path to the .lyr file. I want to record the path so my extension can copy and load ...
1
vote
1answer
1k views

How to get the “queried” value from attribute table and put it in a textbox?

I am new in VBA, I have a problem about querying an attribute table....: I have a table of a layer (wish.shp) with the fields: owner_ID, Value, Area. I made 3 textboxes in a userform, I input the ...
0
votes
1answer
294 views

Cannot run toolbox model from button

I have a button on my toolbar that when clicked, will run a particular model, I have copied the code from here ...
2
votes
2answers
163 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, ...
4
votes
7answers
644 views

Where is the server.dat equivalent at 10.1?

Prior to 10.1, I could locate the server.dat file, and programmatically find out the arcgisoutput folder URL location (virtual directory when using IIS) e.g. <Directory> ...
5
votes
2answers
304 views

Why esriSpatialRelTouches relation does not work?

I have two feature layers. The first one is just a polygon and the other one consists of a series of polygons which are enclosed by the first one. Thus, some polygons of the second feature layer touch ...
2
votes
1answer
126 views

IGPutilities in IGPFunctions

Quick question, in Esri's area calculation sample of IGPFunction implementation they use IGPUtilities but they don't release the instance. On the singletons page in SDK help they list GPUtilities as ...
2
votes
1answer
121 views

How to tell if an ArcGIS Service is secure?

I am creating a .NET REST SOE for ArcGIS Server 10, and I will need to determine if a map service (or image) is secure or not. Is there a property on a MapService that would tell me this in either ...
4
votes
1answer
446 views

Can you edit an SDE table via ArcObjects when not added to ArcMap

I have a table that is in SDE, what I want to do is in my userform click on the "Save" button, and the table will be edited even though it is not within the map document. Is this possible? I have ...
2
votes
3answers
1k views

IFeatureBuffer - performance considerations (ArcObjects)

I'm trying to optimize my code to make it faster. I have a loop that reads some string input and creates points with the help of IFeatureBuffer and IFeatureCursor. If I create the buffer inside tho ...
0
votes
1answer
215 views

find out those points which are intersecting each other using spatial filter in C# arcobjects [duplicate]

Possible Duplicate: Determine overlapping points using a spatial filter in ArcObject I have a point layer having thousands of point, now what i have to do using Spatial filter i have to ...
4
votes
4answers
2k views

Determine overlapping points using a spatial filter in ArcObject

I have a point layer with thousands of points. Using a spatial filter, I have to find out those points which are intersecting each other. Then the objectid's of the intersecting points should be ...
1
vote
2answers
2k views

How to create a graphic point by xy value?

I have implemented this code to create point event layer by xy text file, however I'm wondering how to create a point graphic by xy value? This script draws point graphic by mouse down. When I ...
2
votes
0answers
95 views

How to solve a filename conflict problem?

I use a procedure to remove and delete a feature layer with a certain name. Then, using another procedure which is called during the run time of the program (as the remove and delete procedure as ...
2
votes
0answers
113 views

Proper disposal of layers

I have a group layer. Its purpose is to show feature layers over a base map. Those feature layers are logically grouped into categories and we provide the ability to add/remove whole categories ...
4
votes
1answer
363 views

With ArcObjects, distinguish between Save Edits with and without closing the current edit session

Is it possible with ArcObjects to distinguish between the user selecting the Save Edits button and the users selecting the Stop Editing button and then saving edits? The reason for this is that in ...
1
vote
1answer
186 views

ArcGIS - ICommandBars exception

Testing my VB.NET 2010 app in ArcMap an exception occurs when ICommandBars is instantiated. ' zoom to selected Dim mxApp As ESRI.ArcGIS.Framework.IApplication Dim numUID As UID = New ...
3
votes
0answers
143 views

Elevation statistics for a given Area

I am attempting to determine the best way to calculate the Minimum and Maximum elevation for a defined area. The area is defined by an IPolygon The elevation is defined as an ISurface Possible ...
1
vote
0answers
54 views

Guide for esriRasterOpCode

I'm building dynamic cartographic symbols to display inside ArcMap, but they are displaying "wrong". Is there a guide somewhere that will show what raster op code does? I mean, not only show, but ...
1
vote
0answers
195 views

ArcObjects .NET 9.3 upgrade to 10 breaks IRasterDataset.Copy(…) code

I have to upgrade an application from ArcObjects 9.3 (C# .NET) to 10. Unfortunately, there seems to be some incompatibility regarding the IRasterDataset.Copy method. The following code worked fine in ...
2
votes
1answer
608 views

Convert Features to Graphics

I want to convert selected features to graphics and keep the featuere symbology. I was thinking I could just call the UID command below, however it seems to not be working? Dim pUID As New UID ...
5
votes
2answers
467 views

What does it mean to QI and how is it done?

I'm new to Esri's Arc* interfaces, and trying to figure out how to register an existing table using the ArcObjects API. The following question answers this to some extent: Is there any way to write a ...
14
votes
1answer
1k views

Calling arcpy/python from .NET?

Are there any available examples that show how python can be integrated into a .NET ArcGIS Addin or Extension? I have a series of python scripts that I would like to call from form events (e.g. button ...
0
votes
4answers
309 views

How to solve a run-time error in Thiessen polygons command line

Well I revise my post by giving more information for my problem hoping I may get some help please. I call Procedure 2 from a loop that is within Procedure 1 (see below). The program stacks in the ...
0
votes
0answers
354 views

How to solve a Run-time error 91?

I have a function which a part shown below. The problem is that I get a Run-time error 91 (object variable or with variable not set) and the debug highlights the last line of the code ( Set ...
3
votes
1answer
827 views

How to edit a given version of geodatabase?

I have a versioned geodatabase. Any of that versions are used only by one user. So then user called "XXX" has a version called "XXX". So then now I want to make a changes on given version, but when I ...
5
votes
2answers
2k views

Remove Shapefile lock

I have an ArcObject Dissolve procedure that creates a shp in a directory. This dissolved layer is a temp layer and is not added into ArcMap. I would like to delete it when the user clicks a button ...
4
votes
2answers
1k views

Adding data from a SQL Server Spatial database to ArcMap or ArcEngine application with ArcObjects for better performance

I have an ArcSDE geodatabase stored in MS SQL Server 2008 R2. The datasets in this geodatabase range from 10 record to 7 million records and there is a mixture of tables and spatial datasets (SQL ...
13
votes
5answers
2k views

Is Hillshade option in ArcMap rubbish or is it me?

Here is a pretty pic of the raster I am using - with no effects applied - just the color ramp and historgram adjusted to show out all the relief - all be it in a very 2D way! I have a raster layer ...
0
votes
0answers
124 views

How to make sure OnSketchFinished always works?

In my VBA application i have a listener setup that listens for OnSketchFinished, when the polygon is created a messagebox appears and then a userform. My problem is that the listener will work 90% of ...
2
votes
2answers
345 views

ArcObjects SDK Server toolbox

Seems to be a recurring nightmare here, but it seems ESRI UK gave us a bum steer. You do not need to install ArcObjects .NET SDK (and, of course, the obligatory VS IDE), but you do need to have an ...
7
votes
2answers
890 views

How do I implement outbound arcobjects interfaces in C#?

I would like to write a class in C# that implements one or more outbound interfaces, for example ILayerEvents and IActiveViewEvents. Does anyone know how to do this with C#? Update Following @Chaz's ...
8
votes
1answer
549 views

Automatically display related records for selected feature in tablewindow with ArcObjects

Is there a way through ArcObjects to automatically display the related table(s) for the selected feature in ArcMap in the attribute window (tablewindow) without the user having to click on it and ...
1
vote
1answer
194 views

Can I modify the “value” field of a raster attribute table?

Can I modify the values of the "Value" field of a raster attribute table and if yes how? Thanks Demetris
3
votes
2answers
482 views

Specify a starting location with IgxDialog

I would like to know what is the easiest way to set the starting location of a data dialog to a IWorkspace? My problem is that basically I do not want a connection (.sde file) for the users. I want ...
1
vote
0answers
150 views

How can I denote the values of reclassification using variables?

I used the following lines of code to classify a raster. However, my problem is how can I denote the old and new classification values in the last code line using variables? Then number of values ...
1
vote
0answers
192 views

How to find the features, which have an override on the offset field

I’m trying to write a code, which will find the features, which have an override on the offset field. It is very easy to find if a feature has any override, but to find if a feature has an override on ...
2
votes
2answers
957 views

Collapse layers in ArcMap Table of Contents using ArcObjects

Can someone offer up a Christmas present here? I'm stuck on how to collapse all layers in my ArcMap projects (9.3). I've tried a few bits of sample code, but they all seem to fail for some reason or ...
1
vote
0answers
57 views

How to get the nodes on the absolute boundary of a TIN with ArcObjects

I am trying to get only the nodes on the absolute boundary of a Tin. But GetNeighbor or LeftTriangle methods return edges whose nodes have NaN Z and very weird X-Y coordinates, so the row is inserted ...
4
votes
2answers
588 views

How to allow more polyline vertices for a ST_GEOMETRY in Oracle/SDE?

I'm receiving an error writing geometry (in ArcObjects) that has a large number of vertices (around 900). So big, but not ridiculously big. I would expect this to be no problem and I don't recall ...
1
vote
0answers
227 views

Extract by mask run time error in VBA

I have the following script language code shown below within a main code just to run the tool of spatial analyst "Extract by mask". Unfortunately, when I run it I get a Run Time Error. I checked file ...
5
votes
1answer
2k views

Geometry from multiple selected features into one geometry

Lets see if I can explain what I'm trying to do. First of all I have developed an AddIn for ArcMap that can take one selected feature (Polygon) on a layer, grab the geometry of that feature, and save ...
2
votes
1answer
212 views

ArcGIS Editor Attributes Dialog

Is there a way to update the Editor Attributes dialog to populate/refresh on ArcObject feature selection code? The attributes dialog only seems to respond to a manual view selection or manual table ...