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
1answer
230 views

Copy features between file geodatabase and ArcSde by using ArcObjects

I want to transfer all contents of a table from file geodatabase (*.gdb) to a table in ArcSde. In fact the data is meant to be replaced, so I need also to clear the table in ArcSde. Both tables have ...
1
vote
3answers
82 views

How to get WorkspaceCategory for a given path

I need to determine the WorkspaceCategory string (IGxDialog.FinalLocation.WorkspaceCategory) for a given path. I need this to create appropriate WorkspaceFactory and finally be able to create multiple ...
1
vote
1answer
184 views

How to programmatically Pause the drawing of the Map?

In ArcMap, there is a button to Pause the map's drawing. How do I programmatically call it from ArcObjects Code, before and after my heavy code runs?
1
vote
1answer
208 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 ...
1
vote
1answer
1k views

Finding TOC Layers Type (layer,grouplayer,..) and layerindex of a layer

How can i find the type of the layers in TOC ? these types are very important to me : 1.layer (that has a valid datasource) 2.layer (that lose its datasource because of changing the address of its ...
1
vote
1answer
521 views

Why doesn't my Custom Layer Draw?

I have a Customer layer which inherits BaseCustomLayer. I add it to my MapControl via addLayer. But the function "public override void Draw(esriDrawPhase drawPhase, IDisplay Display, ITrackCancel ...
1
vote
1answer
100 views

Learn ArcObjects

Is it mandatory to have ArcEngine Licence to learn ArcObjects?I was able to develop Addins for arcmap but I need in-depth knowledge of ArcObject so started exploring MapControl Application but it ...
1
vote
1answer
171 views

How to get a list of map scales programmatically in ArcMap?

I need to get all map scales, which are shown in the ArcMap scalebar. I need list of value, something like: 1:1500 1:3000 1:6000 1:12000 1:24000 1:50000 1:100000 Does anyone know how to get it?
1
vote
3answers
2k views

Zoom to selected features with ArcObjects

I am trying to figure out what is the best way to set the active view extent to be able to view all the selected features on the Arc Map. 1.The Map has only one layer. 2.The features are filtered ...
1
vote
2answers
414 views

Parallel Computing and Raster Operations in ArcObjects gives cryptic error

This is a problem I have been struggling with for awhile. The code below takes 1-3 input feature layers (pFLayer) that were stored into a list called pFeatureLayerCollection, casts them into ...
1
vote
2answers
272 views

How to define Subroutines and functions?

I am working in VBA. My error is sub and function are not defined. Here is my code: Private Sub CreateMap(cboDistrict As String) Dim mapDocument As New mapDocument If ...
1
vote
3answers
282 views

How to sort data after using uniquevalue from IDataStatistics?

How to sort data after using uniquevalue from IDataStatistics? The problem is I am using ArcGIS 9.3 vb6. Edit: Thanks kenbuja for the code. It will be useful. In details what I am trying to is this. ...
1
vote
2answers
213 views

How to add command developed with C# to ArcToolbox?

I have a command that I developed with c#. I want to add this command to the ArcToolbox. Is there any way to add such a command to ArcToolbox in ArcGIS Desktop programmatically ?
1
vote
2answers
801 views

IFeature.Store seems to bypass edit sessions and cannot be rolled back. Why?

I'm working with ArcObjects edit sessions for the first time and am having some trouble with it. The C# code I am about to discuss is part of an ArcMap 9.3 extension DLL. My problem is that calls to ...
1
vote
2answers
361 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 ...
1
vote
2answers
3k views

ArcObjects VB.Net - Looping through Layers from TOC and ListBox

Greetings, I'm creating a tool in ArcMap 10 using a windows form... its been a struggle (maybe some of you recognize the same themes in my questions) because this is the first time I've really messed ...
1
vote
2answers
1k views

unique value symbolize layers from a lookup table

I need to create a large number of Arcmap layer files (v9.3 or 10), perhaps a hundred, from lookup tables. I don't have to set the symbol patch itself, that can be random, but I do need the value and ...
1
vote
1answer
47 views

Restrict attribute value in ArcObjects

Is there a way in ArcObjects to restrict attribute value when user modifies it. Let's say for integer value between 0-10 or for string : no/yes?
1
vote
1answer
30 views

Is there a way to programatically get the FeatureClass's alias name?

I'd like to get the alias name of a FeatureClass, but I can't find an interface exposing that field. UPDATE: using IClassSchemaEdit, I'm able to specify an alias name, but I'm still unable to ...
1
vote
1answer
72 views

vb.net arcmap add-in loop through a dbf file get 'System.NullReferenceException' error

I am using vb.net arcmap add-in. I encounter a System.NullReferenceException error and cause arcmap crash. The workflow in my vb.net code is: (1) create a ShapefileWorkspaceFactory (2) use the ...
1
vote
1answer
57 views

Difference between ArcObjects SDK for Java and ArcGIS Runtime for Java?

I would like to develop spatial tools and automate my spatial analysis process (including converting XY into shp, proximity analysis, network analysis, geocoding etc on thousands of files) in Java. ...
1
vote
2answers
134 views

C# - Access content from ArcGIS Online

I have got an existing .NET C# desktop application which already reads various GIS formats. I would now like to add support to read data from ArcGIS Online. What options have I got to access ...
1
vote
1answer
123 views

How do I programatically edit the layer 'Display Expression'

I'm wondering if someone has or knows where a tool is to edit the 'Display Expression' of a Layer, or more specifically, a TableView, in ArcGIS Desktop. I know that it can't be accessed with Python, ...
1
vote
2answers
74 views

Conversion to SDE changes names

I could not find anything on this topic already discussed. We converted our file-based system in ESRI to an SDE instance on Sql Server. We made changes in our code to open using the connection string ...
1
vote
1answer
106 views

Is it possible to disable an Extension Addin on Startup

I am currently creating an Addin, that can be toggled on/off from the extension manager. What I want to do is when ArcMap is being loaded, to check the license level being used (which I have done), ...
1
vote
1answer
70 views

ArcGIS 10.1 - Re-writing an add-in application from processing an SDE Geodatabase to processing a file Geodatabase

ArcGIS 10.1- I am planing to re-write an Add-in application targeting SDE Geodatabase(ArcObjects) to an add-in application targeting file Geodatabase. The Add-in application is a Tool that allow the ...
1
vote
2answers
813 views

Objects in this class cannot be updated outside an edit session

HI i am trying to update my feature class with some new parameters using IEditWorkSpace, Following is my code --- IWorkspaceFactory workspaceFactory = new AccessWorkspaceFactory(); IWorkspace ...
1
vote
1answer
148 views

Access Personal geodatabase using java

Following example through ESRI is to access the features of file geodatabase (GDB) , ...
1
vote
1answer
693 views

Get the distance from a point on a polyline to polyline's from point

I have a polyline and a point on the polyline. I need to find the distance from the from point of the polyline to that point. ICurve.QueryPoint method does the opposite thing. It gives a point ...
1
vote
1answer
307 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.
1
vote
2answers
906 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 ...
1
vote
2answers
202 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 ...
1
vote
1answer
252 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 ...
1
vote
1answer
482 views

How to change the view from layout view to data view using c# code in ArcMap?

How to change the view from layout view to data view using c# code?
1
vote
1answer
783 views

How do I delete specific graphics on the map using arcobjects

I am writing a small application that allows the user to click on the map, and it will create 3 buffers (these are graphics using the IElement interface) at specified distances. What I want to do is ...
1
vote
2answers
597 views

Geoprocessing fails in separate thread

I have a method that does a bunch of geoprocessing on some layers for my ArcMap extension. It creates a feature-to-point layer for one FeatureClass and another feature-to-point layer for another ...
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 ...
1
vote
1answer
226 views

Get the names of currently visible rasters from a catalog

I have a simple win form app with a map control on it. The map has a layer (MADtedLayer) that was initialized from a catalog in a personal database (Access). The files displayed are DTED. I need to ...
1
vote
2answers
175 views

Associating data in a form with an SDE Layer

I was wondering if there was a way to associate/persist some data about an SDE featureclass when viewing via ArcCatalog. I know you can have metadata - but I don't want to use that, and I'm pretty ...
1
vote
3answers
2k views

ArcMap Form/Button VB.NET MxDocument hook

---UPDATE--- see below I have a scaling raster tool that I'm attempting to migrate from ArcGIS 9.3.1 VBA to VB.NET (Visual Studio 2010). I have a BaseTool that is used to put two graphic points ...
1
vote
1answer
295 views

Getting Basic Information about ArcGIS Map Service With IGxDialog

I am having a helluva time trying to get some basic information (server URL) about an ArcGIS Map Service using the basic IGxDialog. So far, I am able to pop open the IGxDialog, and allow the user to ...
1
vote
3answers
3k views

Running EsriRegAsm on Windows 7 without running as Administrator?

Even though I'm logged in as a user with admin privs, Windows 7 still won't let me register with EsriRegAsm.exe. I need to explicitly run as Administrator. Is there some way to configure a machine ...
1
vote
1answer
927 views

Change The Label Field In GeoFeatureLayer

I currently have a basic shapefile that's a map of the United States. It has the name of the states, populations, and other pieces of information that I can get the names of via the following code: ...
1
vote
2answers
802 views

Getting an empty geometry when retrieving the envelope of a GroupElement in ArcObjects: what might be wrong?

I am working in ArcGIS 10.0 (ArcMap) and Python 2.6.5 and in the Data View. I have an IGroupElement3 to which I add a TextElement and up to several RectangleElements. I want then to retrieve the ...
1
vote
1answer
1k views

How to work with .lyr files in ArcGIS Engine

I want to be able to load .lyr files created in ArcMap and ArcGIS Engine and save any updates in symbology in ArcGIS Engine back to the .lyr file. What APIs should I use the only method I found so ...
1
vote
3answers
2k views

How do I make an icon with some text to popup when I hover over it and for it not to be slow?

I would like to make an icon on the screen and have hover popup text. Ideally the text will be black with a white background. Right now my icon is a bitmap created like this GraphicTrackerClass ...
1
vote
1answer
100 views

What's the difference between dynamicDisplay and Display?

The overriden function is public override void DrawDynamicLayer(esriDynamicDrawPhase DynamicDrawPhase, IDisplay Display, IDynamicDisplay dynamicDisplay) What's the difference between dynamicDisplay ...
1
vote
2answers
788 views

ArcEngine draw a polyline or multipoint

Does anyone have a bit of code to plot a multiline? I just want to add some IPoints to a collection and display in a particular color and width, but I can't find a good way to do this. Right now I'm ...
1
vote
1answer
196 views

How to get pre-change Object state from a Class Extension change event in ArcObjects?

I have an Esri based system with a class extension registered for the feature classes. This extension implements IObjectClassEvents, and handles OnChange. I get passed the modified object, but after ...
1
vote
1answer
15 views

ToolStrip Button click event is not fired on first click

I have a dockable window in a custom ArcMap extension. The dockable window has a regular windows forms ToolStrip control in it with ToolStripButtons on the ToolStrip. When the parent dockable window ...