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)

2
votes
1answer
819 views

Custom Application throws HRESULT if MXD/MXT has layers with data source missing?

This is in continuation to Getting ArcMap reference without launching application?. The idea of the application is to map layers (pointing currently to an unreachable server; server may be down, ...
2
votes
2answers
1k views

Reference for IDockableWindow?

Kind of a newbie with ArcObjects .NET. Trying to open a dockable window with the following code: public class CAD_Test_01_button : ESRI.ArcGIS.Desktop.AddIns.Button { public CAD_Test_01_button() ...
2
votes
1answer
2k views

Programmatically adding custom GP tool to a toolbox

I'm having issues add a custom GP tool to my toolbox programmatically using c#. The tool gets added to my toolbox OK but then when I try to open it it fails adding a red cross to the tool and ...
2
votes
2answers
405 views

Throwing E_FAIL errors so edit operation is aborted

I need to abort an edit operation somewhere, determined by a certain condition. Heres the code I'm using: private const int E_FAIL = -2147467259; private void ...
2
votes
1answer
836 views

Symbolizing layer with graduated colors using ArcObjects?

Can anyone tell me how to use isimplerender interface to symbolize a polygon layer with graduated colors according to a value of a field such as "population"? I've used the interface ...
2
votes
1answer
468 views

Using IDocumentEvents_Event from a .NET 4 assembly within ArcMap

Are there a known issues when working with events from .NET 4 COM assemblies within ArcMap? For example, when using IDocumentEvents_Event from a .NET 4 assembly in ArcObjects, the event appears to ...
2
votes
1answer
2k views

IFeatureWorkspace.CreateFeatureClass() error

I am trying to read a csv file straight into a set of new feature classes within a new file geodatabase, but I am getting the following stack trace when it fails: Attempted to read or write ...
2
votes
2answers
1k views

ArcMap TextSymbol in ArcObjects?

I'm looking to do the following. Create a point on a map at a given coordinate (x,y) and then display text at that point. Right now I can create a shape file but nothing is displayed on the map. ...
2
votes
2answers
442 views

Converting personal geodatabase feature class to coverage using ArcObjects? [closed]

how to convert personal geodatabase fatureclass to coverage using arcobjects with vba pls provide me any documentation or samples.
2
votes
1answer
359 views

Using custom dlls in multiple arcmap applications

I'll do my best to ask my question. I develop a number of COM-based libraries for use within custom arcmap dlls (using ArcGIS 9.3.1 SP2, .NET 2008 C#). These would include a custom arcobjects "helper" ...
2
votes
1answer
743 views

ArcGIS Visual Studio IDE Integration Framework?

i need to integrate arcgis 9.3 with visual studio c# 2008 express edition. i found the integration framework for 9.1 but no chance for 9.3 and i've seen a lot of questions on web about it. What ...
2
votes
2answers
531 views

Modifying existing edit tool to make new tool using ArcObjects?

I want to create versions of the edit tools that will add a parallel, offset segment each time I add a segment regularly. Is it possible to put a wrapper around the existing tools? Or otherwise add to ...
2
votes
3answers
2k views

Export a join table to arcmap

I have shape file (Point) and a table which I join using the following code. public ITable JoinLayer_Table(IFeatureLayer pFeatLayer, IStandaloneTable pStTable) { IDisplayTable ...
2
votes
1answer
324 views

Lock overlay on Custom Geoprocessing Tools

How do you get rid of the "lock" icon overlay on a custom geoprocessing tool in ArcToolbox? This seems to appear even with the ESRI Sample Projects.
2
votes
1answer
2k views

With Geographic Coordinate systems, why does my spatial query select all features from a feature layer?

Background: Add-In for ArcGIS 10 Desktop via ArcObjects for .NET The below code returns ALL features for the layer when the map is specified with any Geographic Coordinate System. However, the below ...
2
votes
2answers
522 views

How to get schema locks in oracle spatial direct connect mode?

I have a geodatabase having relation classes, domains ,subtypes etc. When I am trying to open that featureclass in a multithreaded environment it often fails with error like "Attempting to read ...
2
votes
3answers
1k views

Using Spatial Analyst Geoprocessing functions in ArcObjects?

I'm trying to run some geoprocessing functions in ArcObjects. Some of the tools I want to use are part of the spatial analyst extension. In 9.3.1 it was fairly straightforward to follow the ...
2
votes
2answers
565 views

Big IRowBuffer problem

I have a small software that connects to a database (SQLServer) reads a few values and transfers them to a SDE Oracle instance (11g). The problem is: I have over half million records that I need to ...
2
votes
1answer
1k views

What are the main steps when building a balloon callout using ArcObjects in arcengine 10 in VS2010 with C#

I'm looking for a good BalloonCallout example / tutorial / sample. edit: Using C# with ArcEngine 10 edit #2: What are the main steps when building a balloon callout using ArcObjects in arcengine ...
2
votes
1answer
69 views

ITopologicalOperator::Simplify not removing self-overlaps

I maintain an application whose main job it is to take esri-ish things from users and turn them into sql spatial objects in our database (2008 R2). Below is an excerpt that may be useful: public ...
2
votes
1answer
42 views

Get the coordinates of the snapped and clicked point in ArcGIS Engine

I am developing an ArcGIS Engine program. I am using the code below to activate snapping to a layer programmatically. I want to get the coordinates of the snapped point (clicked point). I know I must ...
2
votes
1answer
32 views

Spatial relationships that do not match

All, I have 2 layers as shown below What I want to do is go through each feature (in pink) and do a spatial filter against the green layer. My current code is inMemFeatCur = ...
2
votes
1answer
25 views

How to extract points off a polyline at certain distances using ArcObjects using VB.Net

I am trying to extract longitude and latitude of points from a polyline shapefile at certain intervals(10-50m). Using ArcGIS I was able to do using Densify followed by Feature Vertices to Points in ...
2
votes
2answers
84 views

How to make change to layer in ArcMap with python/ArcObjects?

In ArcMap 10.1 from the python window I am attempting to rotate a symbol for a point. After I run my code I can look at the symbol properties and the rotation expression is set on the symbol, however ...
2
votes
1answer
33 views

.net arcobjects delete point feature by one of the attribute value

What I want is to delete a feature by objectID, currently I have got the objectID of the related feature, but I have no idea how to delete the feature, can anybody give me some advice? The ...
2
votes
2answers
87 views

Can an ArcGIS Desktop Add-In Tool have two or more input events?

I'm trying to create an add-in for ArcMap in Visual Studio that adds points on mouse clicks and then executes some geoprocessing on those points when the enter key is pressed. So far sifting through ...
2
votes
1answer
85 views

How can I display annotations for certain features?

I am trying to display annotations for single features. I know it is possible to display annotations for layers, and for that entire map, but I would like to display them based on a SINGLE selected ...
2
votes
1answer
79 views

ArcObjects 10.1 IPixelFilter (IClipFilter) not filtering for IMosaicDataset

I am attempting to extract an irregular polygon from a Mosaic Dataset using ArcObjects in C#. This sample shows how to open a mosaic dataset in ArcObjects. Referencing existing (VB) code, this snippet ...
2
votes
1answer
47 views

Getting the New Map When the FocusMapChanged Event Fires

Normally, in ArcMap, when an event handler to catch the FocusMapChanged event is set up, and a new map (data frame) is activated, when the event fires, a reference to the FocusMap returns the map that ...
2
votes
1answer
85 views

Returning (x,y) from axMapControl to use in zooming by ArcObjects?

i'm new to ArcObjects and i'm trying to make a program that uses an axmapcontrol and i wanted to zoom in and zoom out using the pointer , i've searched here and i've found this link which shows how to ...
2
votes
1answer
57 views

Show selection set in Attributes Window

I have an ArcObjects extension that creates a selection set and then zooms to the selected features. This part works as expected. The problem that we are having, however, is that the selection set ...
2
votes
1answer
38 views

Feature Rotation Exception

I am getting an error when I try to change the value of a feature's Rotation Value. I have a schematic feature that I would like to rotate by changing the field's ROTATION value, but everytime I try ...
2
votes
1answer
65 views

How to determine if a raster layer covers a polygon layer?

I have a raster and a polygon layer. In my application I always want the raster layer to cover all the polygon layer. How can that be determined? Is it possible to find out from boundary extent of ...
2
votes
1answer
264 views

How to convert an XY Event Layer to a Shapefile?

The question is as follows: Using C# code, convert the XYEvent layer to a shapefile. Add the created shapefile to the map. I can NOT find out how to do this for the life of me. Any help/links would be ...
2
votes
1answer
216 views

Why is my context menu not showing

I am trying to create and show a context menu for arcmap desktop 10.2. I have followed the steps in the link provided by esri, which explains that I must override OnContextMenu. I am not sure if I am ...
2
votes
1answer
237 views

arcmap editor attribute window fill value programmatically

In my map I have a layer named PARCEL, when create new feature on this layer, the attribute window will open automatically. There are 2 attributes in this layer: PARCEL_ID and SUB_ID. Since the ...
2
votes
1answer
189 views

How to get an ArcGIS custom tool to run fom the command line?

I have been experimenting with ESRI's CalculateArea custom tool and it works fine running within ArcGIS from a toolbox. Then I wanted to see if I could run it as a standalone script from the ...
2
votes
3answers
161 views

Releasing features from a recycling feature cursor

I have a recycling feature cursor that is used to fetch a single row. Is it my responsibility to release that returned feature, or will it be cleaned up by the cursor as it would be if I consumed the ...
2
votes
1answer
241 views

How to set the extent of a rotated data frame from a rotated rectangle using ArcObjects?

I use ArcObjects to produce a map document. I have a rotated rectangle that I want to be the exact extent of my data frame. So, I want to rotate the data frame with the same orientation than the ...
2
votes
2answers
127 views

How to fill gaps in a multipart polyline

I want a function that can fill small gaps between parts of a multipart polyline. The polylines represent events on roads and are linear, not branched. The parts may be separated by small or large ...
2
votes
1answer
337 views

Creating a multiring buffer in ArcObjects

I am currently writing an an addin for ArcGIS in C#. The premise of the application is, the user will select a polygon, a multi ring buffer is created from the centroid of the polygon. The buffer ...
2
votes
2answers
308 views

Getting a list of ObjectID from a Selection Set Object using ArcObjects 9.3 in VB.Net

I am trying to get back a list of ObjectIDs from a selection set using VB.Net in ArcObjects for ArcGIS Desktop 9.3. I have been passing an object populated using the ".IDs" method from the ...
2
votes
2answers
361 views

ArcGIS standalone application deployment

I'm trying to build a deployment for a ArcGIS standalone application. I'm using ArcGIS 10 Engine controls in a WPF application with desktop and spatial analysis license. I'm using classes that only ...
2
votes
3answers
648 views

How to convert PCS based point X/Y into GCS Lat/Lon using ArcObjects

There are so many permutations of questions I've tried to find the answer to my question from various sources, but I have yet to actually find an answer the way that makes sense to me (and works). ...
2
votes
1answer
89 views

Can I convert an IFeature to ILayer and add it to the map?

I want to use FeatureClass.Search() to get a specific Feature and I want to convert this one to ILayer and set it to the Map, is there any way to do that?
2
votes
1answer
64 views

How to show a specific geometry on the map and hide the others?

I have a FeatureLayer, i used the method IFeatureLayer.Search() and the interface IQueryFilter to get a specific Feature, and i want to show only this Feature on the Map, how can i do that ?
2
votes
1answer
325 views

Accessing File Geodatabase to convert to shapefiles using ArcObjects?

The end result of what I'm trying to do is convert a FGDB into a folder of shapefiles. To do this, I need access to all the data I'd expect to see in a shapefile. Once I get all the information I need ...
2
votes
1answer
33 views

Join Table to QueryFeatureClass

I've joined a table to a SQL-QueryLayer like posted here Using IRelQueryTable When I set geoFeatureLayer.FeatureClass = relQueryTable as IFeatureClass; the Layer in ArcMap forgot that it is an ...
2
votes
1answer
220 views

Access CommandItems programmatically with ArcObjects in ArcGIS Engine application

I'd like to programmatically execute a command in my ArcGIS Engine application with ArcObjects. I know in Desktop I would do it like this: ESRI.ArcGIS.Framework.ICommandBars commandBars = ...
2
votes
1answer
1k views

ArcObjects SQL Server Connection not recognizing instance

I am trying to make a connection to a SQL Server database with SdeWorkspaceFactory. This is from my Windows 7 x64 Desktop to a Network database. If I use this: SDEWorkspace = ...