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
0answers
328 views

The underlying connection was closed: The connection was closed unexpectedly, WCF and ESRI Objects

I am getting this error when using ESRI objects like Geometry, Envelope etc in a WCF service. I have a class that some properties (string, int, double) but when I add ESRI type as part of this class, ...
1
vote
0answers
233 views

Using custom contextMenu in Arcobjects(C# and ArcMap)

I added a new custom tree to TOC which looks like this: IObjectClass IFeature IFeature ... IObjectClass IRow ... made context menu using this sample ...
1
vote
0answers
50 views

code for finding gaps between polygon parcels

i am trying to write code for finding gaps between polygons, the idea is to convert polygons to polylines and checking the attribute table, each selected segment that shows two records in the tables ...
1
vote
0answers
70 views

Create Configurable Extension in ArcGIS Desktop

I am creating a configurable extension for ArcGIS desktop 10.1 I am not using Add-on , so please don't suggest add-on. How can I disable some toolbars and commands, when the extension is disabled? I ...
1
vote
0answers
61 views

Joining a In_memory table with an SDE table

I have a in memory table that gets created, and want to join it to a table from SDE. I have tried the following code. Private Sub JoinTables(sdetable As ITable, inMemoryTable As ITable, joinField As ...
1
vote
0answers
174 views

Picture fill symbol fails with a polygon graphic

The following code snippet successfully draws a graphic polygon and fills it with the specified picture fill symbol. When the x values for all of the points are made negative and a repeat call to the ...
1
vote
0answers
71 views

Can't find MapFrame of GraphicsContainer in PageLayoutControl (C#) ?

I am getting a problem: I added element (text, line) in a ActiveView.FocusMap of a PageLayoutControl, then all elements are showed in the MapFrame of PageLayoutControl.GraphicsContainer. If I don't ...
1
vote
0answers
38 views

Problem with deployment of GeoProcessors

I am developing an AddIn which requires lots of Geoprocessing but whenever I deploy any Geoprocessor, the ArcMap crashes and its always with the Geoprocessors only. All other commands are working fine ...
1
vote
0answers
117 views

Interpolate shape (3d analyst) problem

I am making a code on C# to interpolate z values of a line on a DEM. Below is the code that I've written. I have also tried step by step debugging, the program works fine till the Geoprocessor ...
1
vote
0answers
55 views

How do I prevent Arcmap from verifying SQL expressions when using a plugin dataset?

I've written a plugin workspace for ArcGIS. I'm able to compose a where clause containing syntax that my implementation of IPluginDatasetHelper understands, assign it to IQueryFilter.Whereclause, and ...
1
vote
0answers
57 views

What affects the kind of date (local vs. UTC vs unspecified) on JTXJobClass.StartedDate?

I am accessing the JTXJobClass.StartedDate for a JTX Job (with IJTXJob3). I am getting an unspecified DateTime.Kind value. The value appears to be UTC (iirc, WMX always stores UTC in the database ...
1
vote
0answers
138 views

ArcObjects ICommandBar is not refreshing

I am migrating a 9.3 based Desktop extension, to 10.1 The Extension, is building toolbars on the fly. It creates the toolbar, and add the commands to it. This is the snippets of the code that does ...
1
vote
0answers
277 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 ...
1
vote
0answers
227 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 ...
1
vote
0answers
191 views

Zooming MapControl (Arcgis) doesn't effect?

I am trying to use the Zoom commands (Zoom In, zoom out) for a MapControl. But it doesn't make "Text elements" bigger (larger) or smaller. Please see my image. I used the below function to add a ...
1
vote
0answers
58 views

Concurrent users using a DLL to access ArcObjects?

So currently I have some ASP.net code where users are updated GIS through a DLL file that uses ArcObjects to talk to the MapService and layer. My question is, will there be concurrent user issues? ...
1
vote
0answers
62 views

IMapControlEvents2.OnKeyDown not hit on Alt + key

I want to catch the Alt key plus an addionally hit key in the MapControl's OnKeyDown. I did already set MapControl's KeyIntercept to esriKeyIntercept.esriKeyInterceptAlt but the event handler doesn't ...
1
vote
0answers
121 views

How to show size/length of sketch while creating new feature?

While adding a new feature to a feature layer I like to show the size (area)/length of the sketch so that the user has a better feedback while placing the vertexes. So I hook up MapControl's ...
1
vote
0answers
147 views

Sending coordinates of features of any polygon featureclass to a table

I am trying to store x-coordinates and y-coordinates of a polygon feature in a table. But, i am getting an error message: Item not found in this collection. The code is like this: Do pFeature = ...
1
vote
0answers
82 views

Connect to Esri map service using c++ in stand alone desktop app

Can anyone tell me how to do this? Here is my code. The Open call returns E_INVALIDARG. IAGSServerConnectionFactoryPtr AGSConnectionFactory; ...
1
vote
0answers
286 views

C# ArcObjects RubberBand Tracking Cancel

I've written a function to create a polygon based on geometry collected from the IRubberBand interface as follows: ITrackCancel esc = new CancelTrackerClass(); esc.CancelOnKeyPress = true; ...
1
vote
0answers
70 views

How to protect my application ESRI FGDB data from authorized access using other applications?

I have ArcObjects app which uses file geodatabase for storing data and performing CRUD operations. This file geodatabase needs to be protected from reading data in other applications such as ArcMap, ...
1
vote
0answers
26 views

Editing MosaicDataset attributes

Good morning!, I'm trying to access and edit an MosaicDataset (I need to edit the MaxPS/MinPS fields) But I can't find a way to access them programmatically.. Doe's anyone know how can I edit these ...
1
vote
0answers
61 views

Get polygons inside a polygon

I have developed a tool in arcobjects on Visual studio 2010, the tool works fine but once installed my ArcMap drawing the map (refreshing) and printing slows down.. I have used ITopologicalOperator ...
1
vote
0answers
108 views

Why does IFeatureClass.Search fails with -2147215922 (FDO_E_SE_INVALID_NUM_PARTS)?

in a class extension, I'm trying to do search features inside a point feature class(part of a geometric network on an sql server sde database) and I get a -2147215922 (FDO_E_SE_INVALID_NUM_PARTS) ...
1
vote
0answers
101 views

Clear or Disable Cache in ArcObjects Globe Control

Is it possible to clear or disable the cache for individual layers on the AxGlobeControl? If so, how? I would like to be able to do this programatically through ArcObjects.
1
vote
0answers
74 views

Is there a way to reshape graphics in ArcEngine?

Our GIS-tool should allow the customer to reshape self drawn (polygon) graphic elements, like one can reshape features in edit mode with the Editor. Is it possible to reshape graphic elements? If ...
1
vote
0answers
206 views

Relative Path not working in ArcMap and ArcObjects

I'm using ArcMap 10.0 and Windows 7 64 bit. I'm trying to set a relative paths for my MXD file. My MXD is located c:\workspace\rastertest.mxd and the data is located at ...
1
vote
0answers
73 views

Mosaicking a selection from a raster catalog and returning the mosaicked raster

I have pretty much given up on trying to get help from ESRI forums so I thought I would try my luck with the good people here... Here is what I have (in C#)... I have an IFeatureCursor that is ...
1
vote
0answers
285 views

Open Network Dataset with ArcObjects SDK 10.0 .NET

I develop desktop standalone application and use this code to open Network Dataset, but it fails with HRESULT on datasetContainer3.get_DatasetByName(). public static ...
1
vote
0answers
153 views

Opening File GDB in Samba throws exception - but only in VS2010 debug mode

I'm accessing a file geodatabase through a mapped network drive pointing to a unix machine running Samba. When I start the app from within VS2010, I get a COM exception when I attempt to open the ...
1
vote
0answers
63 views

Viewing Tables in the AxTOControl using ArcObjects

SE, I was wondering if anyone out there has written a Table filter for the AxTOCControl in the ArcObjets Library. I've rolled my own Table view for now in C#, but would like to try and keep things ...
1
vote
0answers
105 views

ArcObjects: AfterItemDraw only fires for layers in the root of TOC

As I mentioned at the end of this answer the IActiveViewEvents.AfterItemDraw event (even with IViewManager.VerboseEvents enabled) only seems to fire for layers in the root of ArcMap's table of ...
1
vote
0answers
209 views

Deploying Custom dll Commands etc in ArcGIS 10

Having followed the tutorial for deploying custom commands etc at the following link: How to deploy a custom component using a setup project It's a little different to how things were at version 9. ...
1
vote
0answers
109 views

Selection Events in ArcObjects using Java

I am trying to have an ArcMap addin receive ISelectionEvents, but I can't figure out how to register the event handler. I'm using ArcObjects 10.0 for Java. I'm able to catch IDocumentEvents as ...
1
vote
0answers
110 views

ArcObjects - IGraphicsContainerEvents_ElementAddedEventHandler Unregisters After a Few Fires

I am using IGraphicsContainerEvents_ElementAddedEventHandler to do stuff with graphics added by users in an ArcMap session using the standard drawing toolbar. As the code snippet below shows, its a ...
1
vote
0answers
58 views

Guide for esriRasterOpCode

I'm building dynamic cartographic symbols to display inside ArcMap, but they are displaying "wrong". Is there a guide somewhere that will show what raster op code does? I mean, not only show, but ...
1
vote
0answers
164 views

How can I denote the values of reclassification using variables?

I used the following lines of code to classify a raster. However, my problem is how can I denote the old and new classification values in the last code line using variables? Then number of values ...
1
vote
0answers
205 views

How to find the features, which have an override on the offset field

I’m trying to write a code, which will find the features, which have an override on the offset field. It is very easy to find if a feature has any override, but to find if a feature has an override on ...
1
vote
0answers
59 views

How to get the nodes on the absolute boundary of a TIN with ArcObjects

I am trying to get only the nodes on the absolute boundary of a Tin. But GetNeighbor or LeftTriangle methods return edges whose nodes have NaN Z and very weird X-Y coordinates, so the row is inserted ...
1
vote
0answers
244 views

Extract by mask run time error in VBA

I have the following script language code shown below within a main code just to run the tool of spatial analyst "Extract by mask". Unfortunately, when I run it I get a Run Time Error. I checked file ...
1
vote
0answers
44 views

How does ISurface.Locate work?

could someone help me with this method of arcobjects? I don't know what the parameter "hint" means. Thanks. ISurface.Locate Method Returns the intersection of the query ray and the displayed feature. ...
1
vote
0answers
176 views

How to append geographic features into a .dgn file?

How can I export all the geographic features of a featureclass into .dgn (Microstation) file using C#/ArcObjects? I was able to create a new .dgn file and I want to export all the geographic features ...
1
vote
0answers
120 views

How can I interact with ArcObjects from a windows service?

How can I interact with ArcObjects from a windows service? It appears that I can't work with an AxMapControl object from a console or service, because it complains about the activeX state. How does ...
1
vote
0answers
181 views

Looking for Raster Renderer statistics in ArcObjects

I've got a plug-in for ArcMap that I have been working on. I have my own renderer seperate from ArcMap that I am using to display imagery. My goal is to sync up the display of this imagery with that ...
1
vote
0answers
127 views

What does SetHistogramData do?

I run the following code: IClassify classify = new NaturalBreaksClass(); ITableHistogram tableHistogram = new BasicTableHistogramClass(); IBasicHistogram basicHistogram = tableHistogram as ...
1
vote
0answers
251 views

UniqueValueRenderer and ClassBreaksRenderer configuration

So I can create one of these renderers based on parameters I let the user set. Some parameter combinations either create invalid conditions or no conditions at all - missing data, too many breaks or ...
1
vote
0answers
111 views

Annotation and Renderer Interaction

I have code that creates either a UniqueValueRenderer or a ClassBreaksRenderer and applies it. I also have code that uses AnnotateLayerProperties to set labels. When I create a renderer and then an ...
1
vote
0answers
58 views

Strange Behavior for TOCControl PopupMenu

The sample "TOCControlContextMenu" demonstrates how to display a context menu from the AxTOCControl. When I run this sample and right-click on the TOC control the context menu pops up and remains ...
1
vote
0answers
238 views

Problems with Multipatches

I have some polygonal features that have minimum and maximum z values. I'm trying to calculate the difference between a fixed extruded polygons and the sum of extruded related polygons. Here's how ...