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)

0
votes
0answers
25 views

working with switch cases C#

I have two polygon layers in ArcMap which are on top of each other. The user selects a record in the first layer (either by using the Select tool or through the attribute table) and I show the ALPS_ID ...
-1
votes
0answers
18 views

Import dataset from ArcSDE to local folder using ArcObjects?

Am new for ArcObjects. I need to copy the listed Data set from ArcSDE server to local Encrypted folder.
-1
votes
1answer
69 views

Populating a combobox with names of fields in a feature class

I have to dynamically populate a ComboBox in an add-in tool for ArcObjects using C# with the names of the fields containing text data in the feature class. I know I have to obtain the names from the ...
-1
votes
1answer
36 views

How to create a relationship class between a feature layer and a standalone table

I need to create a join between a shapefile and a table that have been added to the map, the issue seems to be with the memRelFact.Open("Table-Layer", (IObjectClass)fromTable, ...
0
votes
1answer
18 views

polygon neighbors

Could you please tell me how to check in ArcObjects same feature overlapping other feature like (Building OID 10 and Another building OID 11) i tried to like below code but i am not going to for other ...
1
vote
1answer
50 views

Deleting a standalone table from the TOC— C# ArcObjects

I'm looking to delete a standalone table that has been added to the arcmap document from an access database. I only want to delete it from the TOC, not from the file and I can't seem to get it to ...
0
votes
3answers
74 views

How to remove a feature class or table from the TOC? C#

This seems like a really simple process or snippet of code but the only thing I can find is the ClearLayers() method to clear all of the layers from the TOC. Basically what I want to achieve is to ...
1
vote
1answer
29 views

How to display radius while adding element in ArcObject?

I want to display the radius of drawing circle when user adds this figure on the map. User clicks on the icon. Then user begins drawing circle (I process the MouseDown event) IGeometry geom = ...
1
vote
2answers
118 views

Export Page Layout to PDF using ESRI add-in with vb.net

Note: This message is cross-posted on geonet (https://geonet.esri.com/thread/127249) I have been trying to convert a vba script to vb.net but I have hit a roadblock and I'm hoping someone can help me ...
2
votes
1answer
30 views

How to determine if a raster layer covers a polygon layer?

I have a raster and a polygon layer. In my application I always want the raster layer to cover all the polygon layer. How can that be determined? Is it possible to find out from boundary extent of ...
2
votes
1answer
79 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
60 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
12 views

How to create Raster from 2d double array

How i can create a Raster file (tiff image) using a 2D double array : double[][] pixels i tried to start from a raster data set using the function which i found in the arcgis java help system. but ...
0
votes
0answers
16 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
0answers
27 views

doesn't save edits in attributes in feature templates

This is a toolbar created to create mapunitpoly templates. Is there a reason that other values beside the defaults don't save? Also I have a problem when editing that some of the templates get deleted ...
0
votes
1answer
49 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
10 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
10 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
13 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
39 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
54 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
22 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
33 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
1answer
28 views

Featureclasses with attachments: objects cannot be updated outside edit session

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
1answer
32 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
26 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
21 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
0answers
15 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
43 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
38 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
39 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
22 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
21 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
18 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
1answer
61 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
75 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
100 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
28 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
74 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
103 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
15 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
86 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
33 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
149 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
63 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
65 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
26 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
69 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
34 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
45 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 ...