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)

4
votes
1answer
150 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
114 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
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
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
223 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
333 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
312 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
95 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
456 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
180 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
311 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
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. ...
4
votes
1answer
108 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(); ...
2
votes
1answer
260 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
657 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
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, ...
3
votes
1answer
328 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
501 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
141 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
243 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
69 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
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?
2
votes
1answer
284 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
119 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
272 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
515 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
675 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
102 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
61 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 ...
1
vote
1answer
212 views

Having trouble setting up Eclipse for ArcGIS 10.0 Java development

I'm trying to setup Eclipse for ArcGIS 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 same ...
1
vote
1answer
62 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
281 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
347 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 ...
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?
5
votes
1answer
372 views

Turn off field programmatically in ArcMap via VB.Net

I'm creating an addin button in Arcmap via VB.net that when clicked, runs the identify tool. But I want only selected fields to appear in the identify dialog. My idea is to hide the unnecessary fields ...
4
votes
1answer
164 views

How to use IDatabaseCompact.Compact() on an used IWorkspace, without permission denied

I am writting an ArcMap-AddIn with vb.net. I get an error when trying to compact my IWorkspace(mdb), the error is: COMException You tried to open a database, which was already opened by the ...
4
votes
2answers
712 views

How to find self-intersecting polylines using ArcObjects?

If I have a polyline, how do I figure out whether it is self-intersecting? I tried to use ITopologicalOperator.IsSimple Property, but it always returns true. Are there any ways of doing these kind ...
7
votes
2answers
486 views

How to export only some feature classes to xml using ArcObjects?

I need to export some of the feature classes to an xml file ("export xml workspace") quite often so I'd like to automate the process. I've found an example here how to export a feature dataset to an ...
3
votes
2answers
377 views

How to add point to a polyline?

I have a polyline, and i want to add point (vertex) on a specific distance, like two meters for example. How can i do that?
3
votes
1answer
222 views

C# Where to create GP service output files

How to get path of default scratch workspace(folder) using c#? I'm making REST GP tool, where you pass some input parameters, tool collects data, create csv files, and archive them. Then tool return ...
2
votes
1answer
124 views

How to make Plugin-DataSource Layers Editable in ArcMap(Arcobjects)

The .Net samples of the developer kit for ArcGis contains an example, that shows how a custom data source(Plugin Data Source) can be added as a layer in ArcMap. It is done by implementing interfaces ...
2
votes
1answer
153 views

How to unselect elements in PageLayoutControl (using C#)

I have a PagelayoutControl with the name: PageControl. And I added a text element into MapFrame (FocusMap) of the PagelayoutControl. If the text element and MapFrame are selected (by using the button ...
2
votes
1answer
228 views

ArcObjects bug in OID field duplication while duplicating feature class?

I have a shapefile with a column of type esriFieldTypeOID with the name FID and numbers from 0 to 5 (the first odd think is that ArcMap does not show a * next to the column name in the table view even ...
1
vote
0answers
256 views

Error when opening attribute table of a feature layer with a programmatically generated join

I'm creating a query table with IQueryDef and then using MemoryRelationshipClassFactory to create an inner join between a feature layer and the query table. Both the query table and the join are ...
2
votes
0answers
232 views

AxSymbologyControl via WindowsFormsHost in WPF (ArcMap Add In Project)

I need a way to offer the user a choice of color ramps for the ClassBreaksRenderer. I came across the AxSymbologyControl which was designed for WinForms. I tried also ESRIs (WinForms) example project ...
4
votes
1answer
424 views

ArcObjects IConflictsWindow3 not seeing version reconciliation conflicts

We are working on a reconcile and post add-in for one of our departments. I'm able to successfully complete the task if there are no conflicts or if I specify which version 'wins'. We would like to ...
5
votes
4answers
543 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) ...
0
votes
1answer
242 views

The remote server returned an error: NotFound

Our Sliverlight application (using V2.4) make a call to custom GP Toool which executes huge process which last for more than 10 min (avg), but before that client gets timed out. After going through ...