Tagged Questions

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)

3
votes
2answers
709 views

How to apply a new renderer in ArcGIS?

I try to create a new renderer for a geo feature layer in ArcGIS 10. (My project is an asp.net based webservice) There is one solution I got from a tutorial that works, but only for a ISimpleRenderer ...
4
votes
0answers
790 views

HRESULT E_FAIL error when doing batch geocoding in ArcObjects

I am trying to write a batch geocoding application in ArcObjects/C# and keep getting the meaningless "Error HRESULT E_FAIL has been returned from a call to a COM component" error (error code ...
4
votes
2answers
4k views

ArcObjects - Finding the intersection of a polyline and polygon?

I have a polyline and polygon. The polyline will intersect the polygon at two or fewer points. I would like to get these intersection points as X and Y values. EDIT: Here is a quick code sample using ...
3
votes
0answers
294 views

ArcObjects - WFS:

Hy, has anybody an example concerning accessing data from a WFS server by using the DataInteropability in ArcObjects? I'm getting the right field definistion, but don't know how to read the data. ...
4
votes
4answers
3k views

Sum the values of a single raster and output the value as a number?

I have a floating point raster and have applied a conditional to it in order to only extract the positive values, so there are 'no data' "holes" in the raster. I simply need to sum the values from ...
2
votes
1answer
364 views

Determine which field is being modified during OnChangeFeature event

In the OnChangeFeature event is there a way to determine which field was just edited causing the event to fire? I'm doing several tasks in OnChangeFeature that only need to happen when certain fields ...
3
votes
2answers
367 views

Override default ArcMap editing error dialog

Is there a way to override this dialog easily? The custom message is already there, but I'm guessing that my client will be more annoying and will want a translated message. Can I replace that ...
2
votes
2answers
737 views

ArcObjects: Alternative workflow to using a SQL query with over 1000 values in IN statement

I have a ListBox listing the unique values of a column in a feature class; the user can select any number of values and click a button to then zoom to the set of features matching those values. A ...
2
votes
1answer
255 views

How can I call a command programmatically and change its defaults?

I am quite new to ArcObjects and development, but from what I have researched I can run a command programmatically like so: [VB] Dim pUID As New UID Dim pCmdItem As ICommandItem pUID.Value = ...
0
votes
1answer
111 views

Implement IEditSketch interface for custom cad tools

I want to build cad tools which will be used in municipality applications on esri.Let me tell the question.The user wants to edit on the map and does it by using IEditSketch.But i want to write a ...
1
vote
2answers
418 views

How to create a Esri Context Menu on desktop development

How can i create a context menu on ESRI Arcgis Desktop.And after creating it,how can i use it while a base command is open and active.I use C# but i can understand visual basic. Thanks for your ...
5
votes
1answer
2k views

ArcObjects: modifying feature field value

I'm developing an ArcMap extension and looking for a way to change feature attributes knowing its feature class and OID (and, presumably, everything else that there is in IFeature). All layers use ...
6
votes
4answers
910 views

Deriving separate polylines from coded points using ArcObjects (Figure inside)

I have a single point featureclass that represents the left and right sides of a landform (the points are coded as either 'right' or 'left'). Visually I can pick out and digitize two lines along these ...
1
vote
2answers
793 views

ESRI Desktop Zoom to the feature

i find a feature by using IFeatureClass.Search then i want to show the feature on the screen.How can i do that ? is there a zoom interface or else ?
2
votes
0answers
302 views

ArcObjects: How to get a reference to layer in a java add in

I am trying to implement a java add-in version of this solution: unique value symbolize layers from a lookup table. At the same time I want to start coding in Java for the ArcGIS Desktop, so I am ...
1
vote
0answers
240 views

Assign Custom Band Combination To Image Catalogs In ArcGIS

I have an image catalog composed of 4 band rasters. I would like to use the same image catalog, and set custom renderers for a true color and false color combination and save each of those catalogs ...
3
votes
2answers
2k views

How to list ActiveView SelectionChanged event delegates in ArcObjects .NET?

I currently have an issue in an ArcObjects ArcMap add-in where my event handlers are seemingly-randomly being unhooked from the event I'm trying to catch. I've spent some time looking for a way to ...
2
votes
1answer
1k views

How to set the workspace to a featureclass from an unknown file gdb?

When a user loads an mxd, I am getting the IWorkspace object from the featurelayer's dataset: IFeatureClass featClass = (IFeatureClass)featLayer.FeatureClass; IDataset dataSet = ...
8
votes
2answers
521 views

ArcObjects diagram/object model?

Is there an existing object model diagram for ArcObjects? Something that can be printed out as a large poster.
5
votes
1answer
1k views

Automate export of ArcMap legends

I've been building legends for my javascript websites that use 9.3.1 services. I know there's the ESRI legend tool for older services but I don't feel that it does a good job of producing legend ...
3
votes
2answers
452 views

Cannot persist to a blob field

Following this initial thread I'm having some problems implementing what was suggested here: Can I Store An ArcObject inside a BLOB? Well, following the link Kirk provided, I've came up with this: ...
5
votes
1answer
342 views

Intersect between Surface and Ray

I am interested in finding the intersection of a Ray and a Surface in ArcObjects. I already know of two solutions. First solution is to use the Locate method of ISurface: Dim intersectionPoint As ...
3
votes
1answer
975 views

How can I execute my custom model's tools in VB.Net?

I want to execute one of my tools (which I created with Model Builder). I can execute a built-in tool by this code, but when I change the tool name with Model Tool Names it doesn't work. I gathered ...
0
votes
1answer
471 views

Any issues in converting a AutoCAD 2010 DWG to FeatureClass?

I have a small .NET script that uses ArcObjects such as CADtoFeatureClass to convert DWG files to ESRI FeatureClasses. This standalone program has been working great with DWGs created in previous ...
3
votes
1answer
141 views

Refreshing ArcIMS service with ArcObjects

Does anyone know if it is possible to refresh an ArcIMS service with ArcObjects and if so do you have a nice code snippet? :) I think it might have something to do with interface IIMSAxlRequest - but ...
3
votes
2answers
549 views

Count the number of segments of a polygon based on the angles

I wish to count the number of segments of a polygon that has a length less than 25 meters when the angle between two vertices is not close to 180 degrees i.e. if the angle is between 178 to 182 ...
5
votes
2answers
480 views

ArcGIS - IExtension.Startup() not launching

I have an ArcGIS 10 extension that will not launch .Startup() when ArcMap loads. I can get it to hit when I go to Customize->Extensions and un-check/re-check the extension name. Is there a setting ...
2
votes
2answers
473 views

Create a dbf table by copying the structure of another dbf table

I have a dbf table and I wish to automatically create another dbf table with a different name but with exactly the same structure i.e.fields as the existing table. Is there any ready code in VBA and ...
3
votes
1answer
383 views

Python metes and bounds automation in ArcMap

We are using the metes and bounds in old pipeline alignment sheets, when in an edit session in ArcMap, to plug in the "direction/length" values to generate the line segments. Does anyone have any ...
2
votes
1answer
465 views

convert SDE table to polygon feature class with Arcobjects

I figure there's a few ways to convert a table to polygon feature class, but what's the fatest and cleanest way to do it? My table has lat, long, azimuth, and beam width and based on all this info I ...
6
votes
1answer
1k views

How to always enable an ArcGIS toolbar?

On ArcMap 9.3.1, is there a way to ensure that a toolbar is always enabled? In my case, I want the Standard toolbar (the one with new/open/save/print icons) to always be visible. I'd like the ...
5
votes
1answer
546 views

Determining ESRI File Geodatabase release version?

Is there any method in Python, ArcObjects, or the File GDB API for determining the release version (9.3, 10.0, etc.) of a file geodatabase? There is a need to find all of our shared 10.0 version file ...
5
votes
3answers
1k views

How do I remove a join (between a standalone table and a feature layer) with ArcObjects?

I already know how to do a table join with ArcObjects, via the IDisplayTable, IMemoryRelationshipClassFactory etc. interfaces. Here are some links to resources that have example code for this: ...
9
votes
4answers
3k views

Connecting line features and determining the length of the longest line

I have a line feature (see image) representing a river that I created using the Stream_to_Feature tool. The attribute table contains several records representing different lines - the problem is the ...
5
votes
1answer
699 views

Geometric Network - Listening to network feature connection changes in the IObjectClassEvents::OnChange event

I need to be able to tell when a particular type of feature, that participates in a geometric network, is having its geometry automatically modified due to the geometric network. What i mean is that ...
2
votes
2answers
640 views

How to creat a graph from a Field values (VBA_ArcObjects)

I have a combobox that shows all fields of a shapefile. I want to get these values programmatically in a label--Count, Minimum, Maximum, Sum, Mean, Standard Deviation--and populate a graph of the ...
15
votes
3answers
2k views

ArcObjects: Memory leak in IFeatureClass.Search (only on SDE with direct connect)

UPDATE 6/30/11: ESRI Support say they have reproduced the issue and have opened a bug report (NIM070156). I have determined that there is a memory leak (in unmanaged heap memory) that occurs when a ...
3
votes
3answers
747 views

How do I convert existing fields to lat and long using the Calculate Field tool?

I am trying to convert my X and Y fields from feet to lat and long. I can easily do this in Calculate Geometry from the attribute table, but I'm needing to use this in a model and Calculate Geometry ...
3
votes
2answers
819 views

Changing Names in TOC Doesn't Update Legend Properly

This is related to an ArcMap add-in I coded up this past week. I'm trying to rename a layer in ArcMap and have the legend refresh properly. The renaming part is working fine, however I cannot get the ...
4
votes
1answer
597 views

Is it possible to reverse the trend/values of a raster?

For example - if I have a raster DEM covering a stream with higher elevations in the west (up river) and lower elevations in the east (down river) is it possible to reverse this trend so that the east ...
2
votes
2answers
672 views

Topological relationship between two polygon feature layers

I have two polygon feature layers: one representing land parcels and one representing roads. Some land parcels (polygons) coincide with a part of a road (another polygon feature). How can I check ...
2
votes
2answers
816 views

Measure each angle of a selected polygon

This post is also a continuation of a previous one. I have the code (in VBA and ARcObjects) shown below to measure each angle of a selected polygon in degrees. I have the following problems: 1. Some ...
3
votes
2answers
2k views

Create Polylines from arrays of points

Let me describe the data setup. A line has been provided as an array of coordinate pairs, one for each vertex. This array is variable in size, anywhere from 2 to 200 coordinate pairs per line. What I ...
3
votes
1answer
256 views

Reference to ArcObjects IUknown interface

Does anyone know what the ArcObjects reference library is for the IUnknown interface? I migrated the code below into Visual Studio and there is an error on the "Dim pSelItem As IUnknown" line. ERROR ...
1
vote
2answers
356 views

Count the number of points of a polygon

Actually, this is a continuation of a previous post entitled "Count the number of corners of a polygon". Although I managed to count the number of points (i.e. saying corners) of each polygon the ...
2
votes
1answer
168 views

Open a table for editing in a Console outside of ArcMap

I'm trying to write a C# console application to convert a CSV of Lat,Lon data into a Table using insert/update cursors. However, I am having the darndest time figuring out how to get a reference to an ...
2
votes
1answer
652 views

ArcMap Commands .NET code equivalent

What is the .NET code equivalent for this general ArcMap command syntax: Application.Document.CommandBars.Find(ArcID.Query_ClearSelection).Execute() I have been using this one below as a work ...
1
vote
4answers
528 views

How can I preserve ObjectIDs in a Featureset returned from an SOE?

I'm returning a featureset from an SOE. To create the FeatureSet, I'm first creating a Recordset, inserting features into it, and then serializing it as json using SOESupport. The client then ...
3
votes
3answers
235 views

Is there any way to write a snipet of code with function of “SDELayer -o register” command

I try to create a geodatabase using some SQL command and then register some tables of it with SDE. I create an empty geodatabase using sde post installation and then create tables and other database ...
6
votes
1answer
1k views

ArcMap Addin - add interoperability connection programatically

I'm currently building an add-in for ArcMap - ArcView using the .Net framework. The user of ArcMap and the Add-in should access data published from WFS services. I am aware that it is possible to ...