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
2answers
1k views

How do you update the ArcMap 10 Statusbar from an AddIn?

I'm using this statement in an add in to update the first pane of the ArcMap statusbar: ArcMap.Application.StatusBar.set_Message(0, message); When the method is called, no exceptions are raised. In ...
1
vote
2answers
433 views

DrawPolyLine not drawing completely on the right layer

I zoom into a map, then do a screenDisp.DrawPolyline(polyline); Now the line is in the correct place, but the map that is the background of the polyline object is actually the initial map and not the ...
1
vote
3answers
924 views

Drawing selection custom selection box - ArcObjects

I have some code that I'm using to selecting features in a certain extent. I already rigged the tool properly, so it selected the objects as needed, but I want to draw interactively the selection box ...
1
vote
1answer
312 views

Requirements for BaseCustomLayer in ArcScene?

What must be implemented/included to add a layer deriving from BaseCustomLayer to ArcScene? I have had success adding a BaseCustomLayer to ArcMap by implementing Draw, AreaOfInterest, Cached, ...
1
vote
2answers
197 views

IFieldChecker problem

I'm having some problems using IfieldChecker. I have this following code, which I'm trying to test permitted/not permitted fields, according to my workspace public IEnumerable<IFieldError> ...
1
vote
2answers
520 views

ArcObjects table views or sqlite3 in Python?

Given a larger csv (1000+ points) with attributes, I need to do both attrbute and spatial queries on the data. Would it be faster to read the points into an xy feature class, and do the spatial and ...
1
vote
1answer
40 views

ESRI License Initialize & Binding Failure

Despite following guidance about how to first bind, then initialize a licence for a standalone WinForm uses some arcobjects, I still get the "80040111 ClassFactory cannot supply requested class" error ...
1
vote
1answer
26 views

Set available orientation to toobar in ArcMap using ArcObjects

We are creating a very huge extension for ArcMap and in the process, we have created a lot of new custom toolbars. These toolbars contains both buttons and custom controls. These custom controls can ...
1
vote
1answer
40 views

How to make a freehand polyline option from drawing toolbar enabled throughout in arcmap

Following code selects freehand polyline as default draw tool on first go: final ICommandBars commandBars = app.getDocument().getCommandBars(); final UID windowId = new UID(); ...
1
vote
1answer
124 views

How to create point feature from longitude/latitude coordinates using ArcObjects and VB.net?

i Want to add a point feature to my feature class. an i want to enter the coordinates manually. here is what i am trying to do pworkspaceedit = pFeatureWorkspace ...
1
vote
1answer
57 views

How to add new menu item to ArcCatalog using ArcObjects?

I'm trying to a add a new menu drop down to the ArcCatalog menu bar. I tried to use the built in ArcGIS base menu template in Visual Studios 2010 but no luck. I also tried to manually add the dll ...
1
vote
1answer
44 views

.net Geoprocessing Tool Grid Control

Does anyone know if grid control used within the batch mode of ArcToolbox available via ArcObjects (see image 1)? I have used the IGPValueTable control (as used in the Union tool, image 2), however, ...
1
vote
1answer
29 views

JSAPI help with query returning results from feature layers with a specified named column

I have a workflow that results in generating a report for certain features with a column name. Goal is to return only results from feature layers in my map service which have a specified column name. ...
1
vote
2answers
61 views

Conversion of raster to polygon

Using C# and ArcObjects, what is the recommended way to convert a raster file into a polygon. I need this for calling the Near tool so that I can move a station which may be inland to the nearest ...
1
vote
1answer
53 views

How to get Name of IRaster object using ArcObjects?

I have an IRaster object as output from a function. I need to be able to get the name of that raster. Is there a way that I can do that? I know that I can't mask an IRaster as an IRasterDataset. If I ...
1
vote
1answer
82 views

Geoprocessor Execute HRESULT COM Error

Recently, I started having problems with my C# projects running ArcGIS10.1 geoprocessing tools. My tools point to custom scripts in project toolboxes. The code in question has run without issue in the ...
1
vote
1answer
87 views

What is the correct approach to handle mouse events for a tool that is called by a button?

I have a dockable window with a 2 buttons that call 2 different tools (Draw Marker and Select Features), What i want to happen is when the user clicks on the relevant button on the dockable window and ...
1
vote
1answer
129 views

Why does Exporting Document to JPEG using ArcObjects in Layout View result in bad picture quality?

I want to export the Active View with ArcObjects to JPEG. All Layers in the Document are raster layers (GeoTiff). I use this code which works quite well when in Data View, but when I perform the same ...
1
vote
1answer
60 views

CreateRasterCatalog on the fly using ArcObject 10 .NET SDK

My debugger crashes without showing any error. It crashes not even catches exception on the line: rasterWorkspace.CreateRasterCatalog(catalogName, fields, "Shape", "Raster", "defaults"); Code ...
1
vote
1answer
113 views

Why does my ITopologicalOperator Intersect result have incorrect area?

I have used ITopologicalOperator for getting common Area of two polygons but the result is not correct. May anyone please tell me how to get the common area of two features. //Make Topological ...
1
vote
1answer
34 views

IElement, extract Element from GroupElement nested in GroupElement

As per title. I am trying to extract Element from nested GroupElement. I can not find any code sample for that. Please refer to one or point me in to right direction, how to do that. It sounds ...
1
vote
1answer
21 views

Assign a Value to a Customized Toolbar Item

I have developed a main toolbar that uses windows forms and arcobjects to write to sde databases. I am trying to extend the functionality of the toolbar to point to two different databases dependent ...
1
vote
1answer
149 views

Debug target is missing - how to set in VS 2010 Express?

I updated ArcGIS from 10.1 to 10.2 and recompiled all Addins with ArcObjects 10.2. I am having an issue with 1 addin that accesses a custom tool in a toolbox and want to debug the project. However, ...
1
vote
1answer
81 views

Getting compilation error on esriLicenseProductCode.esriLicenseProductCodeArcView

I am getting compilation error on esriLicenseProductCode.esriLicenseProductCodeArcView I have installed Arcgis 10.1 and authorized ArcEditor. I am not able to authorized ArcView. I have not ...
1
vote
1answer
153 views

How to add a new data frame to an MXD using C#

Does anyone have code in C# to add a new data frame (map) to an MXD? I have an MXD created in ArcMap 10.1 that has an existing data frame. I need to programmatically add a new data frame and ...
1
vote
1answer
107 views

“The Fields collection did not contain an expected geometry field” (ArcGIS 10)

I am writing a fairly simple application to build simple polylines. I got most of the application working for the most part, but this part is just baffling me to no end and there is nothing I can ...
1
vote
1answer
66 views

Error when using ServerStyleGalleryClass (Arcobject)?

First, I used: IStyleGallery styleGallery = new StyleGalleryClass(); I can run my program without error (on my computer). But this require using ESRI.ArcGIS.Framework (need install Arcgis Desktop). ...
1
vote
1answer
89 views

Create Feature and store to different FGDB

Create Feature and store to different FGDB I'm creating a feature and I want to store it to a specific geodatabase. At the moment I'm using feature.Store() but it's not storing it to where I want. How ...
1
vote
1answer
202 views

How do I convert a GPFeatureRecordSetLayer Feature Set to a Feature Class?

I have C# code to run a geoprocessing package that produces an output which is stored in a GPFeatureRecordSetLayer. Right now I have code that displays the result on the GUI when the job is complete . ...
1
vote
1answer
134 views

How to use the IRelationalOperator interface to check if a point feature within a polygon feature?

I use the following code to check if a point feature is within a polygon feature pFeaBlock is a polygon feature and Fea is a point feature int blockID = -1; IFeatureCursor pBlockCursor = ...
1
vote
1answer
62 views

How to add a raster to ArcMap if file name is unknown?

I have a raster file for which I know the the workspace, but not the filename (it is a temporary file generated by operations from my program that randomizes its name on creation, i.e. "ras457"). I ...
1
vote
1answer
83 views

Arcobjects Multithreading in C++ - 'Aborted' when modifying Geometry

My project is required to be cross-platform, so I am using the C++ API for ArcObjects. My application creates a new thread which listens to a network socket broadcasting location information. I am ...
1
vote
1answer
74 views

ArcGIS extension track for arctoolbox

I am developing an ArcGIS extension with .NET and Desktop 10.1 The extension is creating an sde connection file on the fly and connect to the database When the user use any of the toolbox like (Select ...
1
vote
1answer
294 views

Loading an extension-related mxd in ArcMap by double clicking it

I am currently working in a company offering GIS solutions, and using ArcGIS tools on a daily basis. One of their main products is an ArcMap extension, which I am assigned on to correct some remaining ...
1
vote
1answer
112 views

ArcGIS crashes with no error number in Visual Studio

I've been developing Add-ins for a while with Visual Studio 2008 and ArcGIS 10. But in my new Add-in development process, I receive no error from Visual studio and ArcGIS crashes with error "Arcgis ...
1
vote
1answer
60 views

VB.Net Field Population Methods

Disclaimer: I am basically brand new to VB.NET and ArcObjects. I am computing some statistics as a component of a larger arcobject script. I write these components to an ITable. This ITable is ...
1
vote
1answer
94 views

HRESULT - IPersistStream.Save()

I have converted a VB6 project to C#, and there is one problem I cannot find documentation on. I am saving an IPropertySet to file by using IMemoryBlobStream and IPersistStream, as seen here: public ...
1
vote
1answer
195 views

ArcObjects IDataset.Copy causes program to crash

My implementation of IDataset.Copy continues to crash and I cannot figure out why. The program attempts to copy a shapefile from a temporary folder in one directory to a final folder in another ...
1
vote
1answer
245 views

How to create dynamic sub-menu in ArcMap?

I created a static menu contains 3 static items like in this link create menus, I want to add a sub-menu and get the menu's items from database like in this image: I already did the left part with ...
1
vote
1answer
423 views

ArcGIS 10.1 - c# custom geoprocessing function tool - how to populate a polyline output parameter?

I'm at 10.1SP1 with VS2010. In my tool's ParameterInfo property I create an output GPParameter object of IGPParameterEdit.DataType GPLineTypeClass. Then in the Execute() method I do work that ...
1
vote
1answer
304 views

Arcobjects initializing license error

I have ArcObjects .NET code that is running on a machine with ArcGIS for Server 10.1. The application worked on the dev server. But when I moved to Test server, I am not able to initialize the ...
1
vote
1answer
77 views

IGPFunction2.Execute() never triggers when using IEnumLayer.Next() when run in background

I got a strange issue in GP tool I don't really understand: In my IGPFunction2.UpdateMessages() method, I use the following code to traverse all layers: IEnumLayer enumLayer = ...
1
vote
1answer
453 views

How do I get Visual Studio to run EsriRegasm.exe as administrator?

When run Visual Studio 10 as administrator and build a project with this in my csproj: <Target Name="BeforeClean"> <Exec WorkingDirectory="$(CommonProgramFiles)\ArcGIS\bin" ...
1
vote
1answer
82 views

how to set workspace of Geoprocessor in .net?

I am migrating some code from VBA to C# for developing an addin. In VBA, the geoprocessor's workspace could easily be accessed by workspace property of Geoprocessor. But how to set the geoprocessor's ...
1
vote
3answers
429 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 ...
1
vote
2answers
680 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
1answer
228 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 ...
1
vote
1answer
207 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 ...
1
vote
1answer
153 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
178 views

ArcObjects 10.0: Adding Annotation Feature Class To Map

ArcObjects 10.0, SDE on MS Sql Server, Visual Studio 2010, C#.Net Using ArcObjects, I am able to add feature classes to the map with no problem. However, when adding an annotation feature class to ...