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

How to add barriers and flag to geometric network through code

I'm developing an ArcMap add-in that will run a trace against a water main that the user has selected using the selection tool. The geometric network is already defined and I can run the trace by ...
0
votes
0answers
11 views

creation of fixed size dockable window

,I created dockable window by using addins and specified size as height="150" width="250" by using initialplacement tag in esri config as 'InitialPlacement height="150" width="250" state="unpinned" ...
0
votes
0answers
14 views

how to fix the size of dockable window using arcobjects

I created a dockable window with the following attributes buts spanning across and taking the same height of table of contents (TOC) ,but its height should be 345 only which is not ...
0
votes
1answer
10 views

polygon vertex to vertex distance calculation in arcobjects

I have polygon with multipart (donuts) I want to calculate vertex to vertex distance. I tried to get outer ring vertex to vertex distance and it is working. Could you please tell me how to get inner ...
0
votes
0answers
42 views

Draw a rectangle with the constant depth arcobjects C#?

I want to DRAW a rectangle on a map in which length of rectangle can vary but depth of the rectangle should be equal to 900 meters. EDITED: User will just draw the length, and it should automatically ...
1
vote
1answer
28 views

how to create custom items or commands for a context menu

I have read and searched the web for an answer, but nothing is working. so I need someone's help please. I have an extension that implements I command, I have the method OnContextMenu(x,y) which ...
1
vote
0answers
26 views
+100

IWorkspaceEdit2Proxy equivalent in ArcGis Javascript api

Is there any equivalent for IWorkspaceEdit2Proxy in JS ArcGis API ? I've gone through the whole JS API documentation and haven't seen anything that would help to implement grouping edit operations. I ...
1
vote
2answers
25 views

how to export perimeter of a drawline tool to textbox arcobjects?

I had a custom drawing tool which is available in samples of arcGIS 10.1 Sdk for .Net. When we draw a line or any perimeter on the map, and right click on the line and go to properties, it display a ...
0
votes
0answers
14 views

Create FileGDB using Geoprocessor on ArcGIS 10.3 ArcObject

Exact same code working fine with 10.0. But, 10.3 usual Esri "Error HRESULT E_FAIL has been returned from a call to a COM component". Geoprocessor geoprocessor = new Geoprocessor(); ...
0
votes
1answer
33 views

In Arcobjects, what is the difference between feature.shape and feature.ShapeCopy?

What is the difference between Feature.shape and Feature.ShapeCopy in ArcObjects. I am using Feature.shape could you please tell me difference?
1
vote
1answer
13 views

Catch the VisibilityChanged event for TopologyLayer

I can set up a handler to catch the VisibilityChanged event of every map layer returned by: pEnumLayer As IEnumLayer = My.ArcMap.Document.ActiveView.FocusMap.Layers(Nothing, False) Then with each ...
3
votes
0answers
59 views
+50

Memory issue inserting a large dataset in GDB with ArcObjects

I am using the ArcObjects API for Java to load a very large dataset in a File Geodatabase in one feature class. The whole dataset I have to load is composed of 200 datasets of 30k polygons, and I ...
1
vote
1answer
28 views

ArcObjects/Python: Add JPG to layout

I am attempting (and failing) to add an image to a map layout using ArcObjects via Python comtypes. I do need to run this outside of ArcMap (i.e. not in the ArcMap Python window). The basic idea is: ...
0
votes
0answers
18 views

Questions on raster math using ArcObjects

BACKGROUND INFORMATION: I'm using the 10.2 .NET API and what we are doing is this: I have a boat moving on the water at a cruising speed of 30 nm/hr. (and we don't care about currents affecting the ...
0
votes
0answers
18 views

Feature Rotation Exception

I am getting an error when I try to change the value of a feature's Rotation Value. I have a schematic feature that I would like to rotate by changing the field's ROTATION value, but everytime I try ...
0
votes
0answers
25 views

How to get changed spatial reference of any layer in ArcMap using ArcObjects?

I have several layers in arcmap. I can access these layer's spatial references too. But if user changed one of spatial reference properties(eg. name, central_meridian etc.)of any layer, then how can I ...
1
vote
1answer
33 views

How to know spatial references of two layers are same?

I have two layers . Now I want to say that the spatial references of these layers are same or not .. I am using .Net technologies in arcmap. I have successfully got spatial reference information ...
0
votes
1answer
38 views

How to add graphics to map at lowest level?

I am able to create graphics and add them to the map, but they are getting added as the top-most layer. The labels (if active) of another layer get hidden due to this. I want to know how to add ...
1
vote
2answers
96 views

How to identify, spatial references of two layers are same?

I have two layers. Polygon layer Polyline layer Now I want to check if spatial references of these two layers are same. How can I achieve this ?? In spatial reference there are many property ...
2
votes
0answers
42 views

Understanding lifecycle of .NET geoprocessing tools on ArcGIS for Server?

I've done a number of .NET geoprocessing tools for ArcGIS 10.1 that get published as geoprocessing services on ArcGIS Server. Lately we've seen behavior that makes me question something I thought I ...
1
vote
2answers
68 views

Using .NET Runtime SDK or .NET ArcObjects?

I want to build a desktop GIS application with following features in it: It can be able to read all the attributes of any digitized map It can be able to draw polygon or line With the help of that ...
0
votes
1answer
13 views

ArcObjects Anno Classes

In ArcCatalog, getting the properties on an Annotation Feature Class exposes an Annotation Classes tab and within that is a list of the names of the associated annotation classes. Assume an MXD with ...
0
votes
2answers
39 views

How do I programmatically access a feature's symbol property in a schematic layer?

I am building a simple app that changes the size of the symbol of the selected feature. Is this possible? Here is a simple case for a selected feature: public void onClick(){ IFeature spliceClosure ...
0
votes
0answers
18 views

Map Control Didn't Show Editing Result

I have created an application with data from SDE Geodatabase (Oracle). I've registered it as version without tick on the option to move edits to base. Anyway, in my application there is a part where ...
0
votes
0answers
34 views

SDE + arcgis engine 10.3 start editing error

i built simple application using ArcGIS engine 10.3 to edit sde layers in oracle database. but when i do click start edit button, error occured : "Unspecified error (Exception from HRESULT: 0x80004005 ...
-2
votes
0answers
20 views

how to update a field of a feature class in a stand alone vb.net application

I want to update a field in a feature class out the arcgis environment in a vb.net stand alone application ( how to use arcobjects through vb.net to update attributes ) just a sample code please. many ...
1
vote
1answer
22 views

ArcMap, Editor and Geodatabase API edit session question

Say a feature class from a File GDB is added to ArcMap and an editing session on it is in progress. What happens if an add-in launched from the same ArcMap session tries to start an edit session using ...
0
votes
0answers
32 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
1answer
86 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
61 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
21 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
66 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
83 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
30 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
139 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
34 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
86 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
70 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
24 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
21 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
67 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
18 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
14 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
17 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
44 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
63 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
24 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
35 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
32 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
37 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 ...