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
2answers
341 views

How to cancel SaveEdits/StopEdits button press (ArcObjects)?

I have an interesting situation.Suppose a user creates 10 features in ArcMap in an edit session. Now the user tries to save this edits by clicking save edits or stop edits button. I would be ...
3
votes
1answer
613 views

When converting legacy addins to VS 2010 (ArcGIS 10.1), why are references to certain ArcObjects updated while others are not?

I am converting a number of my addins from VS 2008 Express, ArcGIS 10.0 to VS 2010, ArcGIS 10.1 and I need to update some but not all references. Why? For example, in the current addin I just ...
3
votes
2answers
256 views

Running Regular Queries Through ArcSDE

Working on an .net arcobjects app that's connecting to a Geodatabase (Oracle) through ArcSDE. I make a bunch of edits inside a EditSession but the data I am touching have a bunch of foreign Key ...
4
votes
2answers
3k views

How do I change the targeted .NET 4.0 Framework to version 3.5 in an existing VS 2010 EXPRESS project?

I am upgrading from ArcGIS desktop 10.0 to 10.1 and I have a bunch of addins developed in VS 2008 Express using ArcObjects 10.0. I would like to upgrade everything to 10.1 using VS 2010 Express. I ...
3
votes
0answers
1k views

Error opening feature class from SDE (which can be opened in another application)

We're using ArcGis 10.1 with ArcSDE 9.3.1 on Oracle 10g. I've got 2 layers that cannot be opened or modified with ArcCatalog or ArcMap (but they show up in the list. Everything worked just fine ...
1
vote
1answer
218 views

ArcGIS10 VBA requires library references

I just upgraded from ArcGIS 9.2 to 10.0, and I'm trying to create some tools using VBA. It doesn't recognize any of the ArcObjects Classes, Interfaces, or Constants unless the reference includes its ...
5
votes
1answer
433 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 ...
1
vote
3answers
765 views

Displaying .gdb content(Feature classes) in winidows forms

I am having a .gdb file(World.gdb). I want to display or i want to see the content of this gdb file in winForms programmatically(C#). How can i do it? I dont want to view via ArcCatalog. Please help ...
2
votes
1answer
134 views

Getting Error while exporting

I am making an addin to create subsets and export them to a new workspace. I have stepped through my program and getting error at this particular line while running the addin: ...
2
votes
1answer
155 views

Need to convert from ISpatialReference to SpatialReference

I am attempting to write a method in C# that will accept as input, an ESRI.ArcGIS.Geometry.ISpatialReference object and convert it to an ESRI.ArcGIS.Client.Geometry.SpatialReference object. I need ...
2
votes
1answer
179 views

How Select only specific feature from selected features of more than one layer

I selected features using select feature tool in a map. I want to fetch only specified features among all selected features of different layers. For example, I want to fetch only roads among all ...
7
votes
4answers
150 views

How do you programmatically read the coordinate display format in ArcMap?

I'm looking for a property (or properties) that will give me the display units and the formatting. I assume I need IMap.DistanceUnits but I can't find the formatting. Is this exposed? I am also ...
2
votes
1answer
271 views

in_memory input to geoprocessor tool not returning expected results

When the input to the following method is a feature class on disk the geoprocessor gives the expected results. However, when I pass in a feature class that is created via arcobjects to an in_memory ...
2
votes
1answer
196 views

How to save buffer created with ArcObjects to a database?

I have created a buffer as follows IMap map = axMapControl1.ActiveView.FocusMap; IFeatureSelection fSelection = map.get_Layer(0) as IFeatureSelection; ISelectionSet selSet = ...
2
votes
0answers
191 views

buffer using topological operator

IMap map = axMapControl1.ActiveView.FocusMap; IFeatureSelection fSelection = map.get_Layer(0) as IFeatureSelection; ISelectionSet selSet = fSelection.SelectionSet; ...
6
votes
3answers
1k views

How can you find ArcGIS version programatically?

Is there a way using ArcObjects.net to find out what version of ArcGIS is installed on a machine (i.e. 9.3., 10.0, 10.1)?
2
votes
1answer
105 views

Are there any open source distribution raster merging functions within JTS or GeoTools

I'm looking for something similar to the combine function from the ISelectionSet interface from ArcObject's SDK 10 .NET framework on a more scaled down level. Ergo, I don't plan on using that ...
2
votes
3answers
1k views

How to Access the Current Workspace Using an ArcObjects Add-in for ArcMap?

Accessing current workspace using an ArcObjects add-in for ArcMap (Table of Contents has layer groups). I am trying to retrieve the current WorkSpace using ArcObjects for an ArcMap add-in in C#. Any ...
-5
votes
1answer
437 views

VBA Dialog box! Code for Create Map command button after form is initiated [duplicate]

Possible Duplicate: Code for Connecting to Folder/File to open a mxd document! I tried to make the title as thorough as I could. I need some help with VBA code for my dialog box. I have ...
0
votes
1answer
33 views

List items are replaced with new reference when adding

Based on the query i am getting some features in pFeatureCursor. I am adding that features into a List(IFeature). When iam iterating the pFeatureCursor and adding the values into pFeatureList all ...
4
votes
2answers
295 views

How do I get the extent of a rotated data frame in map units from the Layout View?

I need to get the real extent of a rotated data frame in map units from the Layout View using ArcObjects. I've checked previous discussions on the subject: How do I obtain the envelope of a data ...
0
votes
1answer
191 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
40 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
2k 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
909 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
271 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 ...
8
votes
1answer
234 views

What's the ArcObjects equivalent to ArcMap's Flip button

In an ArcMap extension, I need to flip multiple lines from a selection. The ArcMap Flip button only allow to flip one feature at a time. What's the ArcObjects equibalent to the ArcMap's flip button? ...
-3
votes
1answer
84 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
574 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
191 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
1k 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
112 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
576 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
103 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
914 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", ...
1
vote
0answers
313 views

Algorithm to place the minimum of rectangles to cover a polygon

I'm trying to cover a polygon with the minimum set of rectangles like explained in the picture below, the used rectangles have the same size a*b (a != b) , the rectangle could be rotated by ...
4
votes
1answer
146 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
111 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
452 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
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 ...
2
votes
1answer
219 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
318 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
300 views

Is it possible to create a join between a feature class and a table created with an 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
92 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
439 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
177 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
299 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
264 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
107 views

Cannot use a 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(); ...