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)

0
votes
1answer
220 views

Setting a path to a Variable to be able to open a new mxd? [duplicate]

Possible Duplicate: How to define Subroutines and functions? I know its strange but I need to be able to open a new mxd into an existing one. Yes, it can be done. All I need to do is set a ...
1
vote
0answers
41 views

Opening New mxd into existing mxd from command button on form in VBA [duplicate]

Possible Duplicate: How to define Subroutines and functions? I am programming a dialog box in VBA because Python does not have one yet!! The action that needs to occur is for an mxd to open ...
5
votes
3answers
1k views

Is it possible to target an ArcMap add-in to an earlier version?

My development environment is Visual studio 2010 with ArcGIS Desktop 10.1 installed. I need my add-in to support 10.0 AND 10.1. Right now, if I try to install it on ArcMap 10.0, it fails. Is it ...
2
votes
4answers
3k views

How to zoom to selected Feature in ArcMap using ArcObjects?

By using the QueryFilter I am getting some features based on the query and I am placing that feature names in a listbox. When the user selects a particular name in the listbox that feature has to be ...
2
votes
2answers
1k views

Data View/Layout View Changes - ArcMap 10

I have code that will hide a certain set of points from the view using an ExclusionSet, and then switch to layout view for printing. I noticed in my 9.1 version, when after I am done printing, and I ...
1
vote
2answers
283 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 ...
9
votes
1answer
257 views

ArcObjects equivalent to ArcMap Flip button?

In an ArcMap extension, I need to flip multiple lines from a selection. The ArcMap Flip button only allows you to flip one feature at a time. What's the ArcObjects equivalent to ArcMap's Flip ...
-3
votes
1answer
85 views

ArcObjects Library of Sample Scripts

OK, I'm still not getting help on how to code for accessing a folder. So does anyone know where they keep sample scripts for people to go look and borrow??
0
votes
2answers
757 views

Connecting to Folder/File to open mxd document using ArcObjects?

I have a dialog box written in ArcObjects. I am programming the Map button on the dialog box. The user picks a type of station and county. The program goes to folder containing the mxds and ...
2
votes
1answer
214 views

ArcObject 10.1 Java : Raster Analysis

I have been working with ArcObjects Java for a short time and have not been able to find a solution to the following problems: How to get the Raster object from a IRaster reference? IRaster raster = ...
12
votes
3answers
2k views

What is the future of ArcGIS web development ? Is it JavaScript and HTML5? [closed]

I want to know about the future of ArcGIS web development; is it HTML5? I used to work with ArcObjects and .NET Web ADF so what is the best technology I must follow, especially when I know that ...
3
votes
1answer
121 views

How do you access the Draw toolbar symbol(s) from ArcObjects?

I'm dropping a text element onto a map and I'd like to use whatever settings the Draw toolbar has (font, size, color, etc). Is there a convenient way to access symbol interfaces? Or do you have to ...
3
votes
1answer
663 views

How to find polygon neighbors by rook and queen contiguity in a feature class?

I have a feature class containing several polygons. I would like to find all polygons that have a common border to a polygon of my choice. This can be done with the ISpatialFilter and ...
4
votes
1answer
109 views

How to detect densely labelled areas?

I'm trying to detect densely labelled areas for a given scale like explained below. so dense labelled area is the area having high rate of overlapping labels. I'd like to detect densely labelled ...
1
vote
1answer
1k views

Getting error in applyEdits function for ArcGIS

I have been trying to add an entry to a featureLayer and in want to get a callback from this so I can update another field in it. below is my code clkListenerAddFeature = dojo.connect(map, "onClick", ...
4
votes
1answer
158 views

Map automation, create and populate inset maps for densely-labelled areas

I would like to know if it is possible to automate the example in the picture below, unlike the picture below i'm using vector data. I would like for a fixed scale generate map, but when labels are ...
2
votes
0answers
124 views

Basic unit testing for ArcGIS 10.0 Java Add-in

I've been assigned the task of translating an old ArcGIS VBA script into a Java add-in. I finished the rough translation of the code, now I'm starting the debug process. The first unit test I want to ...
5
votes
2answers
566 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
0answers
109 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 ...
2
votes
1answer
249 views

How to move all elements of PageLayout to left (right, right, up, down..) 5 cm (C#) ?

Are there anyone know how to move all element (text, line,) of a PageLayout (in GraphicsContainer) to left (or right, up...) 5 cm using C# ? Thank you very much !
1
vote
1answer
384 views

“There is not enough memory” Error when accessing IArea.LabelPoint

I have an intermittent error that I'm having a terrible time tracking down so I thought I'd see if anyone has encountered something similar. I am trying to access the label point of a polygon feature ...
2
votes
2answers
366 views

Creating join between feature class and table created with InMemoryWorkspaceFactory?

I'm trying to join a featureclass contained inside a pgdb with a table created with an InMemory Workspace. The in-memory table contains results that I want to use to define symbology on the ...
3
votes
1answer
106 views

How to add a ITable (Table object) to the current map (or document)?

I created an in-memory results ITable and I need to add it to the current ArcMap document/map to see the generated data. How can I do it?
3
votes
0answers
570 views

How to change page size of pagelayout for printing custom size?

I have a A3 printer (size: 297mm x 420mm). But I am wanting to print my pagelayout with paper size is: 265mm x 380mm I tried to change the page size of my pagelayout to 265mm x 380mm by using the ...
4
votes
1answer
201 views

How to render features with different symbols depending on in memory data?

We are developing a complex ArcMap extension software which contains class extensions, a workspace extension and some ArcMap extensions. The purpose of the software is to link our existing management ...
1
vote
1answer
364 views

How to set a color for a rectangle?

I had drawn a rectangle by adding element to graphics container like the code below: IGraphicsContainer gc = mxDoc.FocusMap as IGraphicsContainer; gc.Reset(); IRectangleElement rectangleElement = new ...
5
votes
0answers
297 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. ...
4
votes
1answer
116 views

Cannot use SnapAgent alone?

I'm trying to use a standalone snap agent. Is that not possible? Here's some code: // instantiate these agents. _snapSupportAgent = new FeatureSnapClass(); ...
2
votes
1answer
310 views

How to create multiple dockable windows?

I am building an add-in and I have several different windows, which I open with the code below. This works fine. However, how can I create the same window n times? UID dockWinID = new UIDClass(); ...
0
votes
1answer
800 views

Spatial index grid size is invalid

I am trying to move a point feature programatically, but on stop operation, I am getting this error : spatial index grid size is invalid Kindly help. Regards
5
votes
1answer
163 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, ...
3
votes
1answer
354 views

How to get X and Y coordinate values of the map?

I want the upper right and lower left coordinate of the exposed portion of the map, and for the whole map. What is the way to do this?
5
votes
1answer
623 views

How to programmatically clear all layers from data frame?

I'm trying to create a button using VB.NET and ArcGIS 10 to clear the layers of my data frame. I know how to add layers, but I don't have any idea on how to delete/clear them. Any suggestions? ...
3
votes
1answer
167 views

OGIS Ole Db provider sample with read/write capability

I'm trying to determine what level of effort would be required to develop an OGIS Ole db provider for ArcGIS. There is a sample that is read-only. I would like to be able to edit featureclasses in ...
2
votes
2answers
339 views

How do I reach a layer inside a GroupLayer?

I am having problems in ArcObjects. I am struggling to get to the individual (feature-)layers inside a GroupLayer. Does anyone know how to do that ?
0
votes
1answer
78 views

GxFilterWorkspace allows a folder that is not a IWorkspace or IGxDatabase

I am trying to open a ArcGIS file browser. And For this, I used IGxDialog interface's DoModalOpen method. To specify what the user can select using a GxDialog browser is based on the filters ...
1
vote
1answer
585 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?
2
votes
1answer
334 views

Why IEnumFeature in ArcObjects returns duplicate features?

During development of ArcGis AddIn I've found strange behaviour of MapSelection when there are a lot of selected features. When I tryed to get selected features I've received duplicate features. So ...
1
vote
1answer
139 views

How to get 'IGraphicsContainer' from the map?

I tried to get IGraphicsContainer from Data View (active map) using FocusMap, ActiveView IGraphicsContainer graphicsContainer = (IGraphicsContainer)neApp.Document.MxDocument.FocusMap; but the ...
-1
votes
1answer
381 views

How to get the nonspatial tables in the TOC into a combobox in ArcMap?

I'm new in using Arcobject . i'd like to set dbf of ArcMap TOC to the Combobox Items. How can i set dbf files to items of combobox using C# programming and Arcobject ?
2
votes
3answers
603 views

Removing duplicate rows from a shapefile

I would like to write some c# code to delete duplicate rows from a shapefile stored in a folder. Can anyone provide me with an example or pointers on the best way to attempt this, please?
2
votes
1answer
767 views

How to draw a rectangle a the map using C#?

I have two points, Ipoint upperRight; and Ipoint lowerLeft; points. from the previous points i can get the height and the width for the rectangle. How can i draw a rectangle on the map?. I think i ...
2
votes
1answer
106 views

How can I multiply rows with a number using C#?

I have a dbf with a field named "ppa" .the type of ppa is double. users enter number (for example 0.023) in a textbox and select the dbf in a combobox . then click Run and program multiply 0.023 ...
2
votes
1answer
67 views

Should I use thread lock when implementing Enabled void in ArcGis Command?

I've noticed that that ArcGis Commands are activated asynchronously. So I supposed that there is a chance to corrupt memory without using thread locks when overriding Enabled void of custom ArcGis ...
2
votes
2answers
1k views

Problem creating polygon features using ArcObjects / ArcGIS 10

I need to create a grid of polygons. Each polygon is rectangle, thus has 4 corners (vertices). When I create polygon features using ArcObjects they seem to have wrong geometry, which results in wrong ...
2
votes
1answer
272 views

Setting up Eclipse for ArcGIS Engine Java development?

I'm trying to setup Eclipse for ArcGIS Engine 10.0 development. I've been reading for days and weeks through the documentation and through the forums here and elsewhere. It seems that no one has this ...
1
vote
1answer
64 views

Store global reference to a service/object

In developing with ArcMap, is there any way to register a service that can be used during the life-cycle of a document- for example to do something like: C# .NET ...
1
vote
3answers
316 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. ...
2
votes
1answer
395 views

How to display custom context menu during create feature task?

I have a created a custom context menu using ICommandBar and am displaying it on create feature mouse-down right click. I am constructing a point collection on each mouse down and then creating a ...
2
votes
1answer
1k views

Is there any way to set polygon features fill color and outline programmatically?

By some process I am creating a polygon feature layer. Before adding the layer in the map, I want to set polygon's fill color to no color and set polygon's outline color and width. I am working with ...