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

Editing Feature Class using ArcObjects

I have a problem with editing feature class using arc Objects.Indeed I am working on it for a while and cant find any solution into doing it..I asked a question before about how to connect to database ...
2
votes
0answers
42 views

ArcObjects Workspaces with spaces

I am programming with ArcObjects and trying to output a raster to a folder path that contains spaces. Before creating the raster I am trying to validate that the destination path is valid. The ...
2
votes
0answers
58 views

Adding a button from an add-in to a TOC context menu

I would like to add a button to a group layer context menu in the table of contents. The button is from an add-in that also contains an extension. Should be straight-forward enough. The extension ...
2
votes
0answers
119 views

How to add multiple shapefiles with VB.Net

I have created a toolbar add in for arc with a button that opens a form with 3 selections that are shapefiles, once the shapefile is selected I click the Add Layer button. Currently I can only get one ...
2
votes
0answers
38 views

Is it possible to preview a raster catalogs raster field in a Windows form?

What I want to achieve: The attribute table for an ArcGIS Raster Catalog contains a raster field. When a raster field cell is clicked with the mouse, a preview window displaying the raster associated ...
2
votes
0answers
332 views

GDAL: Geotransform - rotated rasters (and ArcGis)

I am working on a GDAL driver for a proprietary grid-format. In some cases, the grids are rotated in order to get smaller file sizes. In my GDAL geotransform array, I do the following (showing a ...
2
votes
0answers
160 views

Can I update the service on ArcGis Server programmatically?

There is Windows Service. This service adds user raster data to the Raster Dataset in sde database. The Raster Dataset registred on the ArcGis Server. This Raster Dataset also was publishing on ...
2
votes
0answers
232 views

Problem with multi-threading and geoprocessor tool in c#

What I am doing: I am trying to run a geoprocessor tool in a background thread other than UI thread. I am passing string path of arcObjects and creating that arcObject in my background thread. Then I ...
2
votes
0answers
484 views

How to wire ESRI.ArcGIS.Desktop.AddIns.Extension to a custom AddIn Button click event?

I am developing custom ArcMap toolbar with various AddIn tools, button and extension. I see the sample how to access the ActiveView events in the extension Initialize() method. private void ...
2
votes
0answers
66 views

ArcObjects: Custom GP tools: GPCompositeDataType and DataType

I got an issue with the parameter value's datatype returned when using composite type parameters. In my case, I create a composite of DEWorkspaceType and DEFeatureClassType: IGPCompositeDataType ...
2
votes
0answers
225 views

Geodesic distance between two polygons in ArcGIS

Does the IGeometryServer2 interface work in desktop applications? My solution is an Add-in for ArcGIS 10. I'm currently passing it two valid polygon features that are in a projected coordinate system. ...
2
votes
0answers
70 views

ArcObjects: Does an IEnumElement that was returned from IGroupElement3.Elements() maintain the z-order of the GroupElement?

I want to read graphics elements (TextElements and RectangleElements) from a GroupElement object (IGroupElement3) and put them into another in the same order as they were added to the original. The ...
2
votes
0answers
108 views

ESRI CreateGeometryFromWkbVariant creates CCW polygon

I am using ESRI GeometryEnvironmentClass that implements IGeometryFactory3 and I use the method CreateGeometryFromWkbVariant. For the same wkb, in ESRI 9.3.1 the returned polygon is oriented ...
2
votes
0answers
371 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, ...
2
votes
0answers
327 views

Can I use an Update cursor with a versioned feature class which has attachments in ArcObjects .NET

I have a problem with my code (C# ArcObjects 10.1). We are trying to update and insert 10 - 15 rows at a time into a feature class hosted in ArcSDE 10.1 on SQL Server 2008 R2. We have a feature class ...
2
votes
0answers
496 views

How to copy a feature class within the same GDB

I'm trying to copy/clone a feature class within the same file gdb using C#. I've figured out that this won't work with IDataset or IFeatureDataset. So far I only found IGeoDBDataTransfer.Transfer but ...
2
votes
0answers
178 views

Processing arcobjects cursor is taking long time

I am maintaining a code on arcobjects 10.1, and there is a bug happening. I have a code that is parsing through a cursor, and generate a where clause statement to run it on a second query. So the code ...
2
votes
0answers
137 views

How to identify custom lines in .Dgn file using DgnLib?

I am getting a problem, I can't identify custom lines in .Dgn file. As you know, in Microstation 7, we can assign the style value of lines from 0 to 7. But if lines are customed lines, they always ...
2
votes
0answers
1k views

How can I copy selected polygon features to a polyline feature class with ArcObjects?

I would like to copy selected polygon features to a polyline feature class. (Similar to how polygon features can be copied and pasted inside an edit session in ArcMap) Until recently I've been using ...
2
votes
0answers
53 views

ArcObjects custom GP tool: Multiple extensions using IGPFileDomain

I am using IGPFileDomain to make the user select between different file extensions, for example .type1, .type2, .type3. These are added using domain.AddType("type1") etc. The dialog box then lists ...
2
votes
0answers
184 views

buffer using topological operator

IMap map = axMapControl1.ActiveView.FocusMap; IFeatureSelection fSelection = map.get_Layer(0) as IFeatureSelection; ISelectionSet selSet = fSelection.SelectionSet; ...
2
votes
0answers
107 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 ...
2
votes
0answers
219 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 ...
2
votes
0answers
272 views

Creating a new map frame: Error HRESULT E_FAIL has been returned from a call to a COM component

I am trying to create a new map frame in the PageLayout Control. But I got the error: Error HRESULT E_FAIL has been returned from a call to a COM component at the method AddElement. Please see ...
2
votes
0answers
119 views

How to print two pagelayout on two sides at the same time ?

I am having a PageLayoutControl with name: PageControl1. I used below codes for printing it: public override void OnClick() { try { PrintDialog ...
2
votes
0answers
216 views

How to set the font size of ITextElement if only know Height of the text?

When I read text elements from a .dgn file. I only can get the "height", "length" attribute of the text (it doesn't have a "size" attribute) (example: total height = 0.9; total length = 8.6). I need ...
2
votes
0answers
76 views

Recommendations on universal projection API or algorithm for ArcObjects?

As asked on the esri forum here, we are trying to convert a geometry from any spatial reference to any other spatial reference. We have tried the default IGeometry.Project(target_spatial_reference) ...
2
votes
0answers
247 views

How can I free esriControls.ControlsSelectTool? Or is it leaking memory?

In my application I have isues with unfreed memory. After several tries I broke down the problem to a simplified WPF project. It opens a simple System.Windows.Window with a Button, which starts the ...
2
votes
0answers
285 views

ArcObjects : How to change layers connection properties without losing joins

I'm using arcObjects 9.2.6 java librairies to change connection/path properties within a java prog. This prog aims to change path and connection properties for all layers of an mxd file. It works well ...
2
votes
0answers
122 views

How to change tooltip of an esriControl?

Is there a way to change an esriControl's tooltip? I tried using the ICommand interface but the tooltip propertry is read-only. If I have to build a whole new ICommand and/or ITool is there anyway ...
2
votes
0answers
98 views

Is it possible to lock a single feature from editing in ArcObjects?

We're developing an ArcMap addin. Now we need a way to lock a feature from editing/deleting. Is this possible with ArcObjects or do we have to create our own implementation of locking? Example: User ...
2
votes
0answers
24 views

How to implement VisibleBoundsUpdatedEventHandler

I have an ArcObjects add-in button that adds attribute value info as a text graphic into a map document layout. Now, instead of using the add-in button click event, I would like the code to run on ...
2
votes
0answers
96 views

Running a web application within ArcMap

I'm interested in creating a component / plugin for ArcMap that works something like ArcGIS online. Ideally a small web app would boot up within a window in ArcMap which would be able to perform ...
2
votes
0answers
457 views

ArcObjects - Possible To Add Anything More Than Text To Balloon Callout?

With code I've scraped together from various posts on this site, I am able to display a simple balloon callout with text in a standard ArcMap session. Is it possible to add anything more than just ...
2
votes
0answers
260 views

Get Feature that was snapped to in New Snapping Environment

I asked this over at the ESRI forums but lack of activity over there made me post here as well. Does anyone know if there is a way to get the feature that something was just snapped to in the ...
2
votes
0answers
666 views

Make a Join Permanent

So I've been using a dynamic join (IRelQueryTable to attach a SQL query to a feature layer) but now I want to make a permanent (or semi-permanent) join. How do you go about doing this in ArcEngine ...
2
votes
0answers
96 views

How to solve a filename conflict problem?

I use a procedure to remove and delete a feature layer with a certain name. Then, using another procedure which is called during the run time of the program (as the remove and delete procedure as ...
2
votes
0answers
122 views

Proper disposal of layers

I have a group layer. Its purpose is to show feature layers over a base map. Those feature layers are logically grouped into categories and we provide the ability to add/remove whole categories ...
2
votes
0answers
206 views

ArcObjects .NET 9.3 upgrade to 10 breaks IRasterDataset.Copy(…) code

I have to upgrade an application from ArcObjects 9.3 (C# .NET) to 10. Unfortunately, there seems to be some incompatibility regarding the IRasterDataset.Copy method. The following code worked fine in ...
2
votes
0answers
111 views

ArcMap crashes on TabbedFeatureInspector sample

The TabbedFeatureInspector, (VB.NET), sample crashes ArcMap when I do the following: Open ArcMap. Open map document with feature class with class extension loaded. Select a feature. Start an edit ...
2
votes
0answers
105 views

Change MADtedLayer renderer

This question is relative to a past question of mine at Rendering raster layer from DTED based on height color map (that remained unanswered), so if you believe that I should merge those two, let me ...
2
votes
0answers
293 views

Create custom pixel block size in ArcGIS 10?

I'm using the new IRawBlocks in ArcGIS 10 from the adopted sample in ArcGIS 10 SDK help and I want to create a custom sized pixel block that feeds me a block of values column by column instead of a ...
2
votes
0answers
372 views

Rendering raster layer from DTED based on height color map

I have a raster layer that was create from DTED file (dt1 specifically), created by the following code: var rasterLayer = new RasterLayer(); rasterLayer.CreateFromFilePath(dtedFilePath); The dted ...
2
votes
0answers
548 views

Intersect two layers and get resulting features

I have X layers on a map and I need to intersect chosen layers (two per time) and color resulting features. I'm trying to get this code working // get first feature (index 0) ...
2
votes
0answers
299 views

ArcObjects: How to get a reference to layer in a java add in

I am trying to implement a java add-in version of this solution: unique value symbolize layers from a lookup table. At the same time I want to start coding in Java for the ArcGIS Desktop, so I am ...
2
votes
0answers
141 views

What is the best approach to interacting with map layers after a JTX Job Change event when a new MXD is loaded?

To further clarify, my question is pertaining to a WMX/JTX job activation from within ArcMap, not Workflow Manager. I have a JTXJobListener class where with a JobChanged method and that is ...
2
votes
0answers
119 views

NE Attribute editor not honouring custom selection

I have an application based on Network Engineer & ArcObjects. A part of the functionality requires users to draw a rectangle an select features. It should "add" to the current selection. I ...
2
votes
0answers
259 views

Where can I find the latest WMX (JTX) Object Model Diagrams for ArcGIS 10?

I'm looking for a version that includes ESRI.ArcGIS.JTXUI--I'm hoping someone knows of an updated and online version of C:\Program Files\WMX\Developer Kit\Diagrams\ObjectModel.pdf. For reference, ...
2
votes
0answers
191 views

ArcGIS Desktop 10 - MyBase.UpdateBitmap()

I am changing one icon on my extension toggle toolbar in runtime using: MyBase.UpdateBitmap(New Bitmap(Me.GetType(), bitmapResourceName)) This works fine but I get a border/highlight around my ...
2
votes
0answers
214 views

Process to gather raster cells under features

I need to gather individual raster cells underneath a feature in a featureclass as quickly as possible. It seems that most ArcObjects functions have problem with island polygons, multi-part polygons, ...