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
1answer
790 views

Selecting object(s) by mouse using ArcGIS Engine?

I've got a standalone program using ArcGIS Engine, showing a map on the screen like this: AxMapControl _mapControl; AxToolbarControl _toolbarControl; // in constructor: _mapControl = new ...
2
votes
2answers
587 views

Different behavior of ArcObjects for different languages

I have the same code in C++ and C# for ArcMap. This code loads a document from disk and trying to get a picture for PictureSimbol object. But in case of C++ error occurs(HRESULT = E_UNEXPECTED ...
1
vote
0answers
23 views

LayerUILib.dll Error in ArcGIS 10.3

I am struggling to get rid of the below error, the program can't start because LayerUILib.dll is missing your computer. try reinstalling the program to fix this problem. Note: this error ...
2
votes
1answer
631 views

Running C# code from Python tool for ArcMap?

It appears that the only way to copy individual rows of data while preserving GlobalIDs in code is by using C# or VB.NET. I need to run the C# code from the above link within a python tool, and I am ...
2
votes
1answer
852 views

DTED/GeoTiff layer: Get elevation under mouse pointer

I have a simple desktop app with a map control. The map data that will be available to show will be either DTED files (Military Analyst's catalog / MADTEDLayer), or GeoTiffs (created by gdal). I want ...
2
votes
2answers
106 views

Bringing Feature Selection To Top using ArcObjects?

I'm using IFeatureSelection.SelectFeatures() to select parcel polygons in my parcel layer. It works fine until I create a ClassBreaksRenderer to apply a color ramp based on a field in the feature. ...
2
votes
1answer
812 views

Unable to create object class extension COM component?

I'm getting the error: Unable to create object class extension COM component in ArcMap 10.2 when trying to open feature classes from old geodatabases. I'm also getting "error repairing the ...
2
votes
1answer
42 views

Get the coordinates of the snapped and clicked point in ArcGIS Engine

I am developing an ArcGIS Engine program. I am using the code below to activate snapping to a layer programmatically. I want to get the coordinates of the snapped point (clicked point). I know I must ...
1
vote
1answer
35 views

Arcmap Addin 10.3.1: Cancel/control loading of addins, based on a condition

I'm creating Add-in for arcmpa in C# , for 10.3.1. These add-in are to help with client workflows for the business needs. I need to be able to control whether an add-in can load or not. (control of ...
2
votes
1answer
40 views

ArcMap Polyline Renders Incorrectly Unless Project Reloaded

I am trying to get a graphic polyline to render over top of an imported shape file. I'm using C# with ArcMap 10.2.2. The issue I'm having is that the first time the polyline is created, it merely ...
0
votes
0answers
39 views

Runtime error R6034 running a java/arcobjects program

I made several programs using ArcObjects for Java always getting this error at different times of execution: If this error occurs, we just have to click OK and the program continues without ...
1
vote
1answer
142 views

How to use Intersect tool in ArcObjects

I'm trying to use the Intersect tool in ArcObjects SDK Java with two feature classes. Here is my code: public void intersectTwoFeatureClasses(Object in1, Object in2, Object out) throws ...
0
votes
0answers
45 views

Deleting redundant vertex in polygon feature using arcmap 9.3 with VB.net?

I am using Arcgis 9.3. I have polygon feature file. In the file some of the features have a redundant vertex which I need to delete. I wrote a tool using vb.net for deleting such redundant vertex, but ...
2
votes
2answers
1k views

Converting multipart polygon to singlepart in ArcObjects with C#? [duplicate]

I have a multipart feature and I need to convert it to a singlepart feature. Couldn't find any code sample. I wonder if i could get some help from you? I'm working with ArcGIS 10 and c#.
2
votes
2answers
825 views

Topological relationship between two polygon feature layers in VBA and ArcObjects? [closed]

I have two polygon feature layers: one representing land parcels and one representing roads. Some land parcels (polygons) coincide with a part of a road (another polygon feature). How can I check ...
1
vote
3answers
155 views

How to get WorkspaceCategory for a given path

I need to determine the WorkspaceCategory string (IGxDialog.FinalLocation.WorkspaceCategory) for a given path. I need this to create appropriate WorkspaceFactory and finally be able to create multiple ...
2
votes
2answers
294 views

Toolbox tool - IGPParameterEdit3 to browse for file

I'm trying to implement a custom Toolbox tool in ArcGIS, and am trying to setup a custom GPParameter that will take a file type with a specific extension. I know that DEFileType is available and will ...
0
votes
1answer
18 views

Looping through features using SpatialRelDescription

I have a 2 layers I want to go through each red feature and test it against the blue layer(which will contain multiple features). The tests to carry out for each feature are: Wholly Outside Wholly ...
2
votes
0answers
57 views

Show a datagrid in a dockable window

I am trying to show a list as a datagrid full of strings in a dockable window. I can bind the list to the datagrid but I can't for the life of me get the datagrid to show in the dockable window. I ...
0
votes
1answer
43 views

Hardwire definition query on layers in mxd VB.net

I am creating a tool that applies definition query to certain layers of the mxd. The user clicks the button and it should hardwire the definition query into the layer. This is useful if there are many ...
2
votes
0answers
22 views

Mock geometry for spatial filtering

Does anyone know how to mock IGeometry (e.g. using NSubstitute)? I want to use it within an ISpatialFilter, however I always get an exception on the last line of the code beyond. COMException: The ...
2
votes
1answer
36 views

How do you start a Toolbox tool from ArcObjects?

I want to put a couple of toolbox Tools onto an AddIn toolbar. I tried to reference the ProgIDs in the toolbar section of the Config.esriaddinx, but that didn't work (only saw blank spaces where the ...
3
votes
2answers
200 views

Anyone built a custom GPFunction in ArcGIS10 and having closing issues? [closed]

I have a custom GP function in ArcGIS 10 written in C#. When the tool is run it takes ArcGIS about 5 minutes to close (as in the application closes but in Task manager ArcMap.exe and ArcSOCP.exe are ...
-4
votes
1answer
57 views

Ora: 01036 illegal variable name/number in ArcObjects [closed]

I want to write a feature to a featureclass and use bellow code.On StopingEditing() return error "Ora: 01036 illegal variable name/number ". What am i missing? IWorkspace ws = ...
3
votes
1answer
224 views

esriFramework.appRef is null?

Trying to use the following code with an ArcGlobe Control Type t = Type.GetTypeFromProgID("esriFramework.AppRef"); System.Object obj = Activator.CreateInstance(t); Howevewr, t is coming back as ...
3
votes
1answer
405 views

Creating custom Editor Object for ArcMap and tie it to custom tool?

I have some spatial enabled tables tables in SQL Server 2008 and add them to ArcMap using custom layers(or a a spatial enabled OLE DB provider) successfully,but as you know,the editor toolbar of ...
2
votes
1answer
43 views

Having trouble overwriting raster layers default property sheet

I need to Override the Property Sheet Dialog to display a custom property sheet that has a custom GUI built to analyse raster data based on transformed values. Alternatively, if I can access the ...
1
vote
5answers
975 views

Debugging ArcMap Add-In .Net 4.5 in Visual Studio 2013: Unable to start ArcMap.exe

I am developping an ArcMap 10.3 Add-In targeting .NET framework 4.5 on Visual Studio 2013. I used ESRI's wizard to build a simple button add-in and the projects debug properties are configured to ...
4
votes
1answer
433 views

Get the value/description from a domain or subtype for a given field's value?

I need to get a value from an IObject.Fields.Field using ArcObjects 10.x using the criteria listed below: If the field has a subtype associated with it, I need to get the subtype name/description ...
0
votes
1answer
43 views

arcobjects 10.3.1 c#: Loading Addins programmatically

I am writing addins in C#, and am trying to load an addin. I thought i had the solution, but it seems like the full code is not loaded. The button is added to my toolbar, and code seems to run, too ...
0
votes
1answer
297 views

Modifying “value” field of raster attribute table using ArcObjects? [closed]

Can I modify the values of the "Value" field of a raster attribute table using ArcObjects, and if yes how?
2
votes
1answer
41 views

Arcobjects Assign projection transformation to layer file in VB.net

I want to be able to transform a layer from WGS1984 to OSGB1936. I created a tool that extracts layers from several folders on our company network folders, using check boxes that user clicks. One of ...
2
votes
1answer
743 views

ArcGIS Visual Studio IDE Integration Framework?

i need to integrate arcgis 9.3 with visual studio c# 2008 express edition. i found the integration framework for 9.1 but no chance for 9.3 and i've seen a lot of questions on web about it. What ...
3
votes
1answer
560 views

Building WKB from geometry using ArcObjects?

I have some points in an array,stored by user click on the map in ArcMap,and I want to build a polyline and create a Well Known Binary sequence. I use IPointCollection interface to add this points to ...
5
votes
2answers
4k views

No constructor defined?

In my C# Console Application, Visual Studio 2010 highlights new FeatureClassNameClass() in my below line of code and states "ESRI.ArcGIS.Geodatabase.FeatureClassNameClass has No constructors defined" ...
1
vote
1answer
43 views

The type 'ESRI.ArcGIS.Geodatabase.WorkspaceClass' has no constructors defined

I am using a map application (ArcGIS Engine). I am trying to start an edit session and i want to use IWorkSpace interface in the WorkSpaceClass. but i am getting "The type ...
0
votes
1answer
35 views

TopoToRaster Tool Execute problem in ArcGIS

I am trying to execute TopoToRaster tool (ArcToolbox>3D Aanalyst Tool>Raster Interpolation>Topo To Raster) in arcGis 10.0 with .NET. Topo to Raster Input But get exceptions. My code is here : ...
3
votes
2answers
231 views

getsubcurve from multipart polyline using ArcObjects/ArcPy?

I have code which analyzes multipart polylines (roads) from the beginning towards the end. The algorithm "moves along" the road. My multipart polylines include circular junctions and branches so they ...
8
votes
1answer
161 views

In ArcMap, use python to disable “Scale map elements proportionally to changes in page size”

I am changing sources on MXDs in differents offices using ArcPy and ArcGIS 10.0. As observed here, the printer settings revert to the default printer when the instruction mxd.save() is sent. Losing ...
0
votes
0answers
16 views

How to add image to Globe using ArcObjects

I'm using ArcObjects 10.3 .NET. I need to programmatically add .jpg image to Globe. Image is not georeferenced, but I have four points for bounding polygon (not rectangle). What I need to do is ...
0
votes
1answer
266 views

Setting path to Variable to be able to open 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 ...
2
votes
1answer
32 views

Spatial relationships that do not match

All, I have 2 layers as shown below What I want to do is go through each feature (in pink) and do a spatial filter against the green layer. My current code is inMemFeatCur = ...
1
vote
2answers
1k views

ArcObjects - accessing layer data table from C#

I've spent all day yesterday trying to trace all errors but I'm just completely stuck now. Google isn't helpful either. I'm trying to create a small C# tool which opens a MXD file in background and ...
4
votes
1answer
531 views

Reading data from file geodatabase using OleDbConnection?

I'm able to connect to a file geodatabase using an OleDbDataAdapter and read the attribute table just fine - from within visual studio. However, when I put the code inside a windows service it ...
3
votes
1answer
324 views

Creating installer for ArcGIS toolbar with Visual Studio 2005?

I'm working on a small toolbar for ArcGIS 9.2, Windows XP, using Visual Studio .NET 2005. I followed Esri's instructions for creating an installer: ...
1
vote
2answers
2k views

how to create table and layer in c#

I have used Make XY Event Layer to Creates a new point feature layer based on x- and y-coordinates using python and it worked for me. Now as a need of my project i want to apply the same in c# using ...
1
vote
1answer
69 views

Area of Interest of focus map in ArcObjects. [closed]

I want to change the extent (area of interest of the view of the focus map) to the bounding box of the selected features. I use the code below ( I wrote lots of classes for my project and i'm using ...
3
votes
1answer
468 views

ArcGIS 10 Addin Code Doesn't Execute on Another Computer? [duplicate]

I've created an ArcGIS 10 Addin that consists of a toolbar containing one button and one tool. The button opens a form, and the tool is disabled until the user enters some information on the form. ...
3
votes
1answer
1k views

ArcGIS 10 Add-In Does not Work on Other computers

I developed a user form that allows user to edit feature attributes in visual basic 2008. vb.net. The add-in's that I built work great on my computer, but when I tried it on another, it crashes ...
99
votes
5answers
16k views

How do I access ArcObjects from Python?

I would like to be able to script some things that are not exposed via arcgisscripting or ArcPy. How do I access ArcObjects from Python?