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

How to convert an XY Event Layer to a Shapefile?

The question is as follows: Using C# code, convert the XYEvent layer to a shapefile. Add the created shapefile to the map. I can NOT find out how to do this for the life of me. Any help/links would be ...
1
vote
1answer
108 views

Why is my context menu not showing

I am trying to create and show a context menu for arcmap desktop 10.2. I have followed the steps in the link provided by esri, which explains that I must override OnContextMenu. I am not sure if I am ...
0
votes
0answers
39 views

Create RasterDataSet from 2d array

How i can create RasterDataset using a 2D double array : double[][] pixels OR float[][] i tried tow ways using IRasterDataset 1- IPixelBlock outBlock = outRawPixel.createPixelBlock(pnt); ...
0
votes
0answers
33 views

Remove a property page from Layer Property Sheet

I need to remove definition query tab of the Feature Layer or Table property page. Is it possible to do this with arcobjects at all? Here is what I am trying to do: UID uid_comCategory = new ...
0
votes
1answer
141 views

Getting map using C# code in ArcMap?

I have been programming in C# a small code for:1) create a polyline Featureclass in a GDB, 2)put that in the map view (ArcMap 10.2) and finally 3) edit that feature using a button or tool... Well I ...
1
vote
1answer
50 views

Trouble compiling ArcObjects Server Object Extension project into .SOE file

I'm writing a Server Object Extension(SOE) in Visual Studio 2012 using C# in Windows 7. I'm using the REST Template that comes packaged with ArcObjects 10.2. I'm able to build the program without ...
0
votes
0answers
36 views

Error when subdivide subbasins using GeoHMS (ArcGIS 10.1)

When using the 'Subbasin Divide' tool on the GeoHMS toolbar, I get the following an error about COM exceptions (see image). The tool does allow me to click the button, drop a point, and then draws ...
0
votes
0answers
42 views

ProjToCell and CellToProj method of DotSpatial in ArcGIS C# SDK

In DotSpatial there are two methods which are vary helpful to me. 1. Coordinate IRaster.CellToProj(row, column); //here Coordinate is left-top corner of the cell 2. RcIndex IRaster.ProjToCell(x,y); ...
1
vote
1answer
73 views

How to change data source of table using arcobjects

Cross post from: https://geonet.esri.com/thread/125010 Does anyone know how to change the data source of a table using arcobjects? I know it can be done with arcpy, but I'm using C#. I've managed to ...
2
votes
0answers
128 views

Visual Studio not creating “.esriAddIn” file

I have an addin that I've been maintaining with Visual Studio 2010 Express for quite some time with no issues. Recently my computer was replaced and Studio 2012 Express was installed. Since that time ...
2
votes
1answer
34 views

Getting FeatureTemplate dialog form ArcObjects?

Is it possible to access the "Select Feature Template" dialog as shown in the below screenshot through ArcObjects? We can access this dialog when using the Editor -> Copy Parallel tool.
2
votes
1answer
59 views

Is it possible that ArcObjectsed ITable.Search hits default table version but cursor iterates over the edited current version of the table?

I'm very new to ArcObjects and working on an ArcMap addin. I'm having some trouble with understanding the results I'm receiving from my queryFilter. It seems doing a ITable.Search(queryFilter, true) ...
0
votes
2answers
110 views

Featureclasses with attachments: objects cannot be updated outside edit session [duplicate]

I am writing an ArcMap add-in using C# with Visual Studio 2010 and ArcGIS 10.1. I want to add features to a featureclass in an Enterprise Geodatabase (ArcGIS Server 10.1 on SQL Server). This is my ...
0
votes
0answers
49 views

select by location in vba

I got two Layers (Point and polygons) in my Application and want to write a vb macro, where point layer is cities layer and polygon layer is state's layer, I want to know that how many cities are ...
2
votes
0answers
43 views

Algorithm to put label of bounds (bounds layer) inside of polygons (polygon layer)

I hope to put labels of bounds inside of the polygon in intersection with like you can see in the picture below I checked multiple solution as a topology or maplex but it doesn't give relation ship ...
0
votes
0answers
29 views

Abort certain edit events

ArcMap 9.3.1 w/ ArcFM. Using C#. The goal is to be able to prevent certain edits based on specified biz rules. One option might seem to be looking at all operation edits in BeforeStopEditing and ...
0
votes
1answer
35 views

COM Exception when setting the DisplayField property

I have a C# .NET application referencing ArcGIS Engine 10.2. The last line of this fragment of code causes a COM Exception: gridLayer = new FeatureLayerClass(); gridLayer.FeatureClass = ...
3
votes
1answer
129 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
42 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
61 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
41 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
24 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
55 views

ConverRasterToPolygon failed with exception ERROR 010328 Syntax error at or near symbol?

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 ...
0
votes
1answer
83 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
2answers
142 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
283 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
84 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
173 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
151 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
20 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
4answers
140 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. 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
60 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
529 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 ...
4
votes
0answers
207 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
108 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
46 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
112 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
67 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
89 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
47 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
7 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 ...
2
votes
1answer
127 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
24 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. ...
0
votes
1answer
48 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
90 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
103 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
31 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
1answer
162 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
75 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
115 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 ...