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)

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 ...
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 ...
5
votes
1answer
2k views

ArcGIS 10 add-in: Bring dockable window to front

I have an ArcGIS 10 ArcMap add-in written in C# .NET 3.5 that implements an ESRI.ArcGIS.Desktop.AddIns.DockableWindow (which also inherits from UserControl) and an ESRI.ArcGIS.Desktop.AddIns.Tool that ...
5
votes
4answers
671 views

Is accessing an mxd from an Msd based SOE safe?

I have a server object extension (SOE) that returns a list of legend items based on symbols that fall within a specified extent. This allows the client to update a legend to reflect on the symbols ...
5
votes
1answer
380 views

How can I pass a WorkspaceName to another thread for opening?

My winforms app gets an IWorkspaceName from an IDatasetName via the GxObject selected in a GxDialog. I want to pass it across to a worker thread for opening. I know how to write multithreaded ...
5
votes
2answers
2k views

How to catch when scale is changed in ArcGIS?

We want to update a combobox so that it always shows the correct scale. If the user zooms-in, out or resizes the control hosting the map. What is the best event or events to catch and use in ArcGIS to ...
5
votes
1answer
223 views

When a class in an ArcGIS extension should be an ArcGIS class

Visual Studio templates provided by the ArcGIS SDK offer a "ArcGIS Class" which is a simple C# class that has the attributes Guid, ClassInterface, and ProgId before the class declaration. While adding ...
5
votes
2answers
2k views

ArcObjects - find nearest feature to a point - has to be FAST

I've seen lots of discussion on this, especially using IIndexQuery.NearestFeature() on a FeatureIndex instance. Something like this: private IdDistancePair FindNearest(IGeometry g, IFeatureClass fc, ...
5
votes
4answers
544 views

Need help to convert 9.3 code for registering .dll to 10.1

This is my code to register my DLL (im using ArcMap 9.3) Private Sub regDLL(ByVal dllName As String) Dim asm As System.Reflection.Assembly = System.Reflection.Assembly.LoadFile(dllName) ...
5
votes
1answer
870 views

How to split a Polyline Geometry at a certain point in ArcObjects?

I have a polyline geometry and wish to split it into two different geometries, based on a given point on that line, in ArcObjects. I have tried to find out how to do this, but to no avail. I found ...
5
votes
3answers
1k views

How to let the user select a spatial reference using ArcObjects?

I need to build a tool where the user selects a coordinate system for a given CAD file. What is the easiest way to do this with ArcObjects? Obviously, I could populate a list with the hundreds of ...
5
votes
1answer
440 views

Can you use ArcObjects in an MVC service at v10.1

I'm slighlty confused with the changes at 10.1 and understand this version no longer supports DCOM or remote arcobjects. Can you use ArcObjects in a webservice (in my case a .NET MVC 4 service) that ...
5
votes
2answers
472 views

Is it possible to modify the ArcObjects IProgressDialog2?

It turns out that the best way to run long tasks in ArcMap is to use the IProgressDialog2. The BackgroundWorker in combination with ArcObjects (STA Threads) is a mess. However, it seems that the only ...
5
votes
1answer
815 views

Refresh Currently Open ArcMap Attribute Table using ArcObjects

I have written an ArcMap Addin (ArcMap 10.0) that allows a user to perform a join between an in-memory table and a feature class (feature layer) added to the TOC. I want the attribute table of the ...
5
votes
2answers
492 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 ...
5
votes
1answer
715 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 ...
5
votes
1answer
423 views

New Snapping while editing vertex's in ArcEngine 10

Is it possible to use the new (not classic) snapping functionality when editing the vertices of a polygon feature in ArcEngine 10. I would like editing vertices to behave exactly the same as editing ...
5
votes
1answer
701 views

Why is SymbologyControl missing symbols in XP?

I'm using the the code form SymbolForm.vb in this sample: Change layer rendering using the SymbologyControl It's working great on my developer machine with Windows 7, 64bit. But when I deploy the ...
5
votes
3answers
2k views

finding nearest point to a point

I work in GIS with VBA. I have 2 Points layer.One of them is City points and another is hydro station points.I want write code in vba for selecting one point from station layer and finding closest ...
5
votes
3answers
517 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: ...
5
votes
1answer
280 views

Converting Between Similar Classes in ArcObjects and WPF Runtime Libraries (C#)?

There seems to be an "impedance mismatch" (if I can borrow the term) between similar classes in ArcObjects and the WPF runtime libraries. For example, there is a ESRI.ArcGIS.Client.Geometry.Polyline ...
5
votes
1answer
353 views

ArcObjects 10 Java SDK

I am being tasked with converting a AGS georpocessing toolkit currently written in AO 10 C# SDK to AO 10 Java SDK. Are there any resources out there which show an end to end example of creating an ...
5
votes
2answers
247 views

Zoom Commands as Mouse Gestures

Is it possible to use the zoom in, zoom out, and previous extent functions as mouse gestures in ArcMap? For example, say a user held down LShift then left click and dragged diagonally to the lower ...
5
votes
1answer
214 views

Reading an Existing Join

Confused again. I was finally able to run ArcCatalog and create a join in my map document (I will do the deed programmatically eventually) but I was interested in how a join looked once it was ...
5
votes
1answer
652 views

How to turn an IField from Not Editable to Editable?

so i have turned my ITable into an editable DataGridview from this post link. Now i want to set some of the columns to be non editable. So what I can do is initially set my IFieldEdit.Editable_2 to ...
5
votes
3answers
952 views

ArcGIS10 Debugging

First ever post to this forum, I have a C# extension (legacy from another developer) which I am trying to debug in the ArcGIS 10 Environ (64bit machine/Windows7). I have built the ext in "Debug" ...
5
votes
1answer
2k views

How to save a layer file with a relative path

In VBA, how do you save a layer file (.lyr) with a relative path? I have some code that loads a shapefile into ArcMap but I am unsure of how I go about using this shapefile to then save a layer file ...
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 ...
5
votes
1answer
346 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 ...
5
votes
1answer
351 views

Generate Mobile Map Cache from ArcObjects

As of ArcGIS 10, is there a way to generate a mobile map cache using ArcObjects? This can be done in a stand-alone Python script: ...
5
votes
1answer
839 views

Are there any good resources on WFS support in ArcGIS?

Are there any good resources on WFS support in ArcGIS? The only documents I found so far are these: How_to_work_with_WFS_using_ArcGIS_Desktop and Consommer des services/données WFS dans ArcGIS 9.2 ...
5
votes
2answers
1k views

How to filter Legend to show only visible features?

Is it possible to get the legend in a pagelayout to only show patches/swatches for features fall within the visible extent of the Map? The solution needs to work on FeatureLayers and ArcGIS Server ...
5
votes
1answer
458 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 ...
5
votes
1answer
152 views

how to capture the clicked point before moving a vertex

I need the location of clicked point before moving a vertex. IVertexMoved event will provide me the coordinates of the point after vertex is moved but I need before moving. Please help. Regards, ...
5
votes
3answers
1k views

Why do I get a “. not nullable field error” when attempting to split a feature?

I'm trying to split feature, by point, into 2 new features. var pFeatureEdit = lineToSplit.Feature as IFeatureEdit; var set = pFeatureEdit.Split(point); When this feature has configured ...
5
votes
1answer
265 views

How should I publish an arcgis toolbox via arcobjects (c#)?

I've been able to create map and image services by creating, adding, and starting configurations through an IServerObjectAdmin interface to a version 10.0 (sp4) ArcGIS server. Now, I'm shifting my ...
5
votes
1answer
297 views

Geodesic buffers for polygons

How can I create geodesic buffers around polygons? I'm on 9.3.1 ArcMap, but I need a programatic solution. IBUfferConstruction only does geodesic buffers for points. What are my options?
5
votes
1answer
2k views

How can I update an MXD file programatically?

I'm using ArcGIS 9.3.1. product line and MXD files. At our customer we have multiple environment (DEV, QAS, PROD) which should be more or less identical except they use different datbases and a few ...
5
votes
1answer
187 views

ArcObjects edit/update ODBC Oracle table

Can an ODBC Oracle table attached by OLE within ArcMap be edited/updated by using ArcObjects? If so, what are the procedural steps for doing this? Are there code examples out there showing how to do ...
5
votes
1answer
857 views

ArcGIS 10 Add-ins - How to adjust the size of an add-in toolbar?

I've built an add-in toolbar with two buttons. Works great, but I'd like to make the toolbar a little wider so that the user can see it's full caption. Is there a property I can adjust in the ...
5
votes
1answer
869 views

How to create adjacency matrix of topology graph of arc map for shortest path?

I have created a topology graph of a polygon feature and I want to find the individual FIDS of the lines of the polygon. I want to construct an adjacency matrix to create the shortest path. How can I ...
5
votes
2answers
814 views

How to toggle layer visibility in ArcObjects?

ILayer.Visible seems to have no effect - How can I manually manage layer visibility and actually get the map control to update? ILayer lyr = mapControl.get_Layer(i); //this works for custom layers ...
5
votes
0answers
123 views

addins vs python tools, which makes more sense? [closed]

With the upcoming release of ArcGIS Pro and the eventual retirement of Desktop and ArcObjects does it make more sense to start new customizations in python or continue to use ArcObjects/addins for the ...
5
votes
1answer
199 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 ...
5
votes
0answers
106 views

Is IGraphicTracker leaking memory?

It seems that when geometries are removed from an IGraphicTracker instance, the geometries remain in memory until IAoInitialize.Shutdown() is called. I have tried removing the geometries by calling ...
5
votes
0answers
269 views

Plugin Workspace: when to close an OleDbDataReader?

I'm developing a plugin workspace for ArcGIS. Internally, the plugin uses an OleDBconnection. All of the sample code I see seems to stress the importance of closing and disposing the connection. ...
5
votes
0answers
84 views

Can I verify that attribute indexes are being used in a query from ArcObjects?

We have some software as part of a larger project written using ArcObjects via .NET. This software migrates and merges data from multiple file geodatabases in one schema to a single file geodatabase ...
5
votes
0answers
137 views

How can I control what is passed to the OnCreate() method when a command or tool is initialized? [closed]

In an ArcEngine application can I control what is passed to the OnCreate() method when a command or tool is initialized? (I am using a synchronization object because I have both a map and a ...
4
votes
4answers
1k views

Exploring ArcObjects through C# or VB from Python background

While I understand that this may be off topic to an extent, I am in a bit of a bind and could use some help directing my thought process and research. I have little programming background aside ...
4
votes
4answers
193 views

IEditSketch and IEditSketch2

What is the difference between IEditSketch and IEditSketch2? Also why there are same interfaces with the same name only with a difference "2" at the end of the interface's name ?