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
14 views

Counting number of layers selected in ArcMap TOC using ArcObjects?

Has anyone ever tried to get the number of layers that are selected in ArcMap? If I have a map document that has six layers and three of them are selected in the TOC, how does one count them using ...
0
votes
0answers
27 views

NGO library Removal

NGO library is not available anymore, thats where my question comes in, those objects at bottom in code section, mean nothing because there is no reference for them in arcobjects v10.. this is what ...
0
votes
0answers
13 views

How can I show the identify of a feature in ArcMap own identify window using ArcObjects API?

I would like to show the identify of a IFeatureLayer in ArcMap's Identify window. I had used IdentifyDialog to create a custom dialog to show the identify, but it seems that the ArcMap's identify ...
0
votes
2answers
19 views

Why does the AxMapControl no longer expand to fill the space when I press the Show/Hide Map Legend button?

I have a .NET application dependent on ArcGIS 9.3.1 which I am upgrading to ArcGIS 10.2. I have an AxMapControl sat in a panel in a Splitter on a tab. There is a legend which can be made to ...
1
vote
0answers
18 views

How do you symbolise a 32-bit raster in ArcObjects?

For rasters that are ABOVE 16-bit - you cannot apply a colormap - so what is happening when you symbolise in ArcMap a 32 bit raster, it's certainly possible. I'm trying to emulate this funcitonality ...
0
votes
0answers
17 views

ESRI internal process fails using data created by ESRI — suggestions?

We have a complex process where we compute the distance a boat will travel. We then take our waterway rasters, apply any blockages and delays to them, and create the FullCostArray to get the time it ...
-1
votes
0answers
53 views

ArcObjects Export Field with x y gives InvalidCastException?

I am try to export field and X Y but I get the following error. Is it possible for someone to help me with this? system.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' ...
1
vote
1answer
37 views

Creating Panning Buttons in C#

I am new to this and still trying to learn. I have a bunch of VBA code that I am trying to convert to C# and even the most basic things are hanging me up. Currently I am trying to build a button ...
1
vote
0answers
43 views

Measuring Angle of two Points from North in ArcGIS 10.3 C# SDK

What is the most reliable method to calculate angle of a line from north, defined by it’s from and to points? I used to use IMeasurementTool interface found in defense solutions namespace found in ...
0
votes
0answers
18 views

run the GP tool “create enterprise gdb” from ArcObjects

hello i work with arcobjects and c#.net , i try to create entreprise geodatabase in Postgresql using the following code using ESRI.ArcGIS.Geoprocessor; using ESRI.ArcGIS.DataManagementTools; public ...
2
votes
2answers
60 views

Export ArcGIS Metadata as a .pdf

I've been asked to automate the exporting of metadata from ESRI feature classes into .pdf files. We don't want the .xml files, rather a .pdf version of what you see in the Description panel in ...
6
votes
1answer
83 views

How to create ArcSDE Geodatabase in PostgreSQL without ArcGIS Desktop?

I am programming a small application using Arcobjects, and I need to create an ArcSDE geodatabase on PostgreSQL. In ArcSDE at 10.2 there is no Post Installation Wizard. How do I create a Geodatabase ...
0
votes
0answers
14 views

Adding a layer can sometimes load raster footprint!

Just trying to refine my ArcObjects code to add a layer into ArcMap based on passing the fully quailified (String) name of the layer - problem is, if it's a raster, it will load in the vector ...
2
votes
3answers
75 views

Workaround for AxMapControl painting issue (only problematic at certain screen resolutions)?

I have a .NET application dependent on ArcGIS 9.3.1 which I am upgrading to ArcGIS 10.2. I have an AxMapControl sat in a panel in a split container on a tab. The Dockstyle is set to Fill. Since ...
-1
votes
1answer
26 views

Partitioning Polygons layer to smaller partitions

I Have a huge polygon layer which contains many thousand polygons> i am going to operate an intersect loop for every point in the layer with near polygons. i use ITopologicalOperator op = ...
1
vote
2answers
80 views

Debugging 'module' object has no attribute 'SdeWorkspaceFactory'?

I am new to python, am debugging one of existing python code, where am facing an error "'module' object has no attribute 'SdeWorkspaceFactory". Earlier this code was working fine but suddenly does not ...
3
votes
0answers
39 views

What is the function of the ESRI.ArcGIS.AddIns.targets file?

I am currently upgrading from 10.2 to 10.3 and as expected there are always some issues with recompiling addins and upgrading the the visual studio version. There is now a known issue for which ...
0
votes
0answers
56 views

How to find co-ordinates of two intersecting features (circle and polyline) in vb.net using arcobjects?

I am new to arcobjects and i want to find the co-ordinates of the intersection points of a circular arc and a polyline. Can somebody please help me with this. I've tried the following code but it is ...
0
votes
0answers
16 views

How to refresh the page layout and the data frame in an ArcObjects console application?

I made an ArcObjects/Java console application to open an MXD and export several maps to PDF. Every thing worked fine until I decided to convert a layer's labels to annotations in order to modify it. ...
2
votes
2answers
66 views

ArcObjects: ExportOperationClass causing error and not exporting

I'm trying to export each row in a shapefile, but I get an error I haven't seen before (see below). I feel like it might be the labyrinth of interfaces that I have to cast between that may be causing ...
1
vote
1answer
25 views

ArcMap Crashes when inserting new feature in multi-Threading add-in

I'm developing a ArcMap add-in that get dynamic feeds from the network and append the newly arrived data to a suitable featurelayer. I'm using InMemoryWorkspace, FeatureBuffer, FeatureCursor, Thread. ...
1
vote
1answer
33 views

How to properly initialize ArcMap data frame created with IMaps.Create method?

In a custom ArcMap command implemented in .NET C# I create a new data frame this way: // mxDocument is IMxDocument IMap newMap = mxDocument.Maps.Create(); // create new data frame newMap.Name = "I ...
0
votes
0answers
25 views

How to fill combobox with attrbute data

I am coding using vba in the visual basic editor given ny arcgis9.3, I have u user form,in user form there is a combobox and a commandbutton. I have also added four shape files.so i want to fill the ...
0
votes
0answers
5 views

Arcobjects Java event on featurelayer symbology change

I am working on an Java AddIn project for ArcMap. I need to find the event when user changes the symbology for a layer added in TOC. So far my best bet is to useIActiveViewEvents class on map, and ...
1
vote
1answer
75 views

How programatically activate data frame in ArcMap?

I want to: create new data frame, give it a name, activate it and then fill with layers, etc. in ArcMap .NET custom command. With this code I achieve 1. and 2., but don't know how to activate ...
0
votes
0answers
8 views

How to refresh layout view Oleframe with embedded XLSX in 10.2.1 using C#

I have a 9.3.1 mxd with 3 embedded xlsx files in the layout that I programatically refresh using oleframe.open. In 10.2.1, programatically refreshing of the xlsx docs in the ole frames is failing. ...
-1
votes
0answers
30 views

Show attribute table in listbox in ArcGIS VBA?

I am new to gis development please solve my query. I want to show the attribute table data in list box or gridview using VBA using ArcGIS 10.2 for Desktop.
0
votes
1answer
31 views

Using Intersect result

With the help of @Durga I have a working java code for the intersect: gp = new GeoProcessor(); gp.setOverwriteOutput(true); Intersect newintersect = new Intersect(); String in = "(" + ...
1
vote
1answer
33 views

Using Intersect tool Java

i am trying to pass polyline and polygon feature classes i am not sure how to pass the list of features to the Intersect object: i tried this method: ArrayList<Object> featuresList = new ...
0
votes
1answer
31 views

Reading Raster Data with ArcGIS tools in C#

I have a raster data layer as IRasterLayer and I am using C# SDK of ArcGIS. Here is the IRasterLayer. I want to access all the cells I want to edit cell values. After all i need how can i read the ...
0
votes
0answers
24 views

kml to FeatureClass

I'm new to ARC, and am trying to create a tool to fetch KML for sources and import to the central arcserver database. I see that there is a the kml to lyr tool, but it creates a personal sde. Is ...
0
votes
0answers
30 views

How to delete a feature class from a GDB using ArcObjects for Java?

I've seen this solution which may works in ArcObjects for VB/.Net: How to overwrite a shapefile or feature class using arcobjects When I try to convert it into Java, I get a ClassCastException on ...
0
votes
1answer
39 views

How to Convert ISelectionSet to ITable

I Have code ISelectionSet pSelectionSet; layer = AxMapControl1.get_Layer(0); pFeatSel = (IFeatureSelection)layer pSelectionSet = pFeatSel.SelectionSet; ITable table = pSelectionSet as ...
1
vote
1answer
52 views

arcmap editor attribute window fill value programmatically

In my map I have a layer named PARCEL, when create new feature on this layer, the attribute window will open automatically. There are 2 attributes in this layer: PARCEL_ID and SUB_ID. Since the ...
1
vote
2answers
55 views

How can I release the lock file on a DBF after removing its join to a FeatureLayer using ArcObjects?

I found another post with two different answers on how to remove the join between a feature layer and a standalone table, but neither method successfully removes the lock file ...
4
votes
0answers
63 views

Customizing Create Features window in ArcMap?

Can I customize Create Features window in ArcMap? (whether by using ArcMap capabilities or by writing ArcMap-Addin) I've read about Creating custom ArcMap TOC views, is there something similar for ...
0
votes
2answers
63 views

ArcMap keeps crashing whilst using simple C# .NET addin

I honestly have no clue what is causing this. I want to have a message appear that tells me which layers are selected or not. Here is my code: using System; using System.Collections.Generic; using ...
0
votes
1answer
52 views

Start Editing Return Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

I'm using IEngineEditor.StartEditing method to start an edit session on SDE Workspace. My workspace is having a right value because I have no problem to get a feature class using it. I'm not sure ...
0
votes
1answer
39 views

.net arcobjects draw polygon(rectangle) can not start at the preferred location

I am using the sample code (draw a polygon on the screen) provided by Esri but it seems I cannot start the drawing from a location I want, every time it starts at wherever the function(or tool) ...
1
vote
2answers
62 views

Which version of C# should I learn for ArcObjects with .NET?

I'm wanting to pick up ArcObjects and have decided on C# over VB as my language. I know that arcpy uses python version 2.7. If I had started learning python 3.2 to learn arcpy I'm sure I would have ...
1
vote
0answers
22 views

How can i draw sectors by lon/lat (for each record) in a table

I found a short code in the net (Sub CreatePie and Sub CalLine) that draw only for one point. I want to draw many point, so I make a table Temp.tab with 4 columns: Cellname, Lon, Lat, Azimuth I want ...
1
vote
1answer
22 views

Quick method to evaluate MXD project for dashed line

ArcMap export of a layout to Adobe Illustrator file converts all dashed-line symbology into dashes or dots that are not selectable as one object. How can I use ArcObjects .NET to access symbol ...
0
votes
0answers
21 views

INetworkBuild throwing exception of file read/write error?

I Have a code that executes well in winxp but recently i am working in win7 the earlier code runs well in win7 also but only the build network is throwing me an exception of file read /write error can ...
1
vote
1answer
25 views

Empty output with ArcGIS CopyFeatures

I am automating a process in .Net and calling the ArcGIS CopyFeatures geoprocessing tool multiple times. The source feature class is always in a file geodatabase and the result is always a new ...
0
votes
0answers
46 views

Searching for features added in an edit session with QueryFilter only works when using object id or no WhereClause

I'm getting strange behaviour reading added features from a feature class while within an edit session. The feature class is in a personal geodatabase and is open in the map control in an ArcEngine ...
0
votes
1answer
47 views

ArcObjects WPF Legend Toolkit Control doesn't show layers

I'm starting to develop GIS applications using ArcObjects for c# and WPF. I have to say: what a difficult disorganized and not well documented API, but that's another story. I'm trying to migrate a ...
0
votes
1answer
68 views

Track Map Events in ArcObjects Dockable-Window Addin

I'm building an Addin for ArcGIS 10.2 with c#. It is a dockable Window, that will host some controls for our custom export solution. I want to listen to Map-Move events of the main map ...
0
votes
2answers
119 views

Convert labels to Annotation addin crashes ArcMap

I am trying to write an ArcMap (10.3) Add-In in C# .NET that will convert labels to annotation. I have used a majority of the code from the relevant snippet on the ESRI resources website. When I run ...
2
votes
0answers
46 views

ArcMap - Export raster symbology to a raster function template programmatically

I would like to programmatically export symbology for a raster dataset as a raster function template xml file, as can be done by clicking the export button in the symbology tab of the layer properties ...
4
votes
1answer
116 views

Guidelines for using ArcObjects from Python

By far, How do I access ArcObjects from Python? is my most read and referenced Q&A on GIS Stack Exchange. In spite of that success, it's probably one of my weakest areas when it comes to actual ...