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

Is it possible to change the current map document from a geoprocessing tool

I'm writing a BaseGeoprocessingTool with the ArcObjects API and I need to open an Mxd then change the current document by this opened document. I managed to open the Mxd document: IMapDocument ...
0
votes
0answers
5 views

Make objects from GraphicsContainer transparent

I am changing arcobjects 10.1 project with a lot of legacy code. I need to make all objects transparent on the map. This objects (points, different sectors, polygons, etc) are persisted in ...
1
vote
0answers
10 views

C# geoprocessing tool output file

I'm trying to use file output parameter in arcobjects geoprocessing tool which will be used as rest service on ArcGis server 10.1 IGPParameterEdit3 outParam = new GPParameterClass(); ...
8
votes
2answers
252 views

How to efficiently (programmatically) determine whether two datasets have / don't have identical content?

Given: a geodatabase A that contains 100 datasets named a1 .. a100 a geodatabase B that contains 100 datasets named b1 .. b100 I want to programmatically (*) determine for each dataset pair (ai, ...
3
votes
0answers
132 views

Temporary File GDB-based scratch workspace is not deleted after it is released

I have created a temporary File GDB-based scratch workspace as follows: var factoryType = Type.GetTypeFromProgID("esriDataSourcesGDB.FileGDBScratchWorkspaceFactory"); var factory = ...
1
vote
0answers
12 views

Intellij IDEA equivalent of ArcGIS Eclipse plugin

I'm a beginner in Java and a geomatics student. I work with Intellij. I would like to work with ArcGIS, but without Eclipse. There is a good plugin on Eclipse ...
8
votes
1answer
910 views

Getting units from ISpatialReference of ArcObjects?

How do I get the units (meter/feet) from an ISpatialReference object in ArcObjects?
0
votes
0answers
3 views

ArcObjects-set custom property page as default property page of line?

i am drawing a graphic line using RubberBandClass. When i double click on the line, the default property page opens. Can i replace default property page to my custom property page.? so that whenever ...
9
votes
1answer
252 views

ArcObjects equivalent to ArcMap Flip button?

In an ArcMap extension, I need to flip multiple lines from a selection. The ArcMap Flip button only allows you to flip one feature at a time. What's the ArcObjects equivalent to ArcMap's Flip ...
2
votes
1answer
158 views

How do I export circles from ArcObjects to WKB?

I have a small circle in SDE which I'm trying to extract through ArcObjects into well-known-binary (for later import into other systems). Using the IWkb interface I can obtain the WKB, but it comes ...
5
votes
6answers
8k views

ArcObjects - Create and Draw a Transparent Polygon

I'm trying to create a transparent Polygon in ArcMap; however, it's never transparent. Here's the code I have. // Create polygon IPolygon polygon = new PolygonClass(); // create & add ...
2
votes
0answers
34 views

open custom property page on double click on the drawn line ArcObjects?

I am able to open a custom property page with the mouseup event of graphic line. but when I again double click the line, it obviously opens the default property page. which i dont want. I am using ...
0
votes
1answer
262 views

How to edit feature in sqlserver geodatabase

I am using arcmap 10.2.1 and arcobject 10.2.1,I just want to conncet to a geodatabase and edit,add,delete a feature from a feature class using arcobject,I tried to connect to database and it works ...
3
votes
1answer
194 views

Making thematic map for each column in table using ArcGIS Desktop?

I have a table with header like LocationId, Jan, Feb, Mar,.....Dec I would like to make a graduated symbol map for all the locationIDs for each month, and make an output as a jpg/pdf file. What is ...
1
vote
0answers
32 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 ...
0
votes
0answers
14 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 ...
2
votes
1answer
262 views

Overlapping Polygons in same feature class using Arcobjects

I have a polygon feature classs with millions of records, I need to find list of overlapping or intersecting polygons in the same feature class, and how to do it efficiently? I need a ESRI ...
1
vote
1answer
12 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
13 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
17 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 ...
1
vote
1answer
30 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 ...
0
votes
0answers
45 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 ...
0
votes
1answer
260 views

How to call a GP service from ArcObjects in .NET using ArcGIS Engine 10.2?

I published and successfully accessed a GP service in ArcMap 10.2, but I couldn't make it work in my .NET program using ArcObjects 10.2: IGeoProcessor gp = new GeoProcessorClass(); ...
0
votes
1answer
161 views

vb.net arcobjects enable customized context menu item only if a feature is selected

The solution may be very simple, but I haven't made it work. I want to enable a data view context menu item only if a feature (in polyline layer) is selected, all other places the item should in ...
1
vote
1answer
129 views

How to make a freehand polyline option from drawing toolbar enabled throughout in arcmap

Following code selects freehand polyline as default draw tool on first go: final ICommandBars commandBars = app.getDocument().getCommandBars(); final UID windowId = new UID(); ...
3
votes
1answer
228 views

How do you determine which dbclient connection property to use for an Oracle SQLWorkspace connection?

I have an Oracle11g database that I connect to via a SQL Workspace; however the actual dbclient string value that works differs depending on machine (and I'm guessing oracle client configuration). On ...
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 ...
3
votes
0answers
66 views

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 ...
9
votes
6answers
4k views

Is there an existing library for converting ArcGIS Features to Json?

Is there an existing library for converting ArcGIS IFeature types to and from Json/GeoJson?
1
vote
1answer
1k views

How to use default identify tool in ArcMap from C#?

I made a custom "Find" tool (winform) which is called after specific button pressed in an ArcMap toolbar. In this new "Find" form I need to use identify for one or more selected items in DataGridRow. ...
1
vote
0answers
19 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(); ...
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 ...
0
votes
1answer
34 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
29 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: ...
10
votes
4answers
554 views

Does SHAPE_Length take into account elevation values?

Does the Shape_Length attribute take into account the elevation? For instance, if I have 3 points: A, B, and C A.X = 10 A.Y = 10 A.Z = 10 B.X = 10 B.Y = 10 B.Z = 50 C.X = 0 C.Y = 0 C.Z = 10 Then I ...
1
vote
2answers
90 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 ...
4
votes
3answers
257 views

Add and remove tools from ArcMap toolbar via C# Button and ArcObjects?

OK I updated the draft with some of the suggestions but am still having some issues. I am trying to create a custom button in arcmap that when pressed will edit a toolbars content. Doing things like ...
5
votes
1answer
275 views

How should I publish an arcgis toolbox via arcobjects (c#)?

I've been able to create map and image services by creating, adding, and starting configurations through an IServerObjectAdmin interface to a version 10.0 (sp4) ArcGIS server. Now, I'm shifting my ...
0
votes
0answers
19 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
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 ...
9
votes
1answer
3k views

Editing shapefile in ArcMap programmatically?

Is this something that can be done? For instance if I created an overlay on a map and saved it as a shape file, I want to go and edit this (pre-existing file.) overlay...Either add points/remove ...
9
votes
1answer
880 views

Referring to NaN or ±∞ (special floating point values) in ArcMap definition queries?

I have by chance discovered how ArcMap displays special floating point values to the user. +∞ (positive infinity) is displayed as 1.#INF –∞ (negative infinity) would supposedly be displayed as ...
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 ...
2
votes
1answer
237 views

Can I update the service on ArcGis Server programmatically?

There is Windows Service. This service adds user raster data to the Raster Dataset in sde database. The Raster Dataset registred on the ArcGis Server. This Raster Dataset also was publishing on ...
4
votes
3answers
6k views

How to implement mouse down event when the user clicks on the map?

Newbie programming in C#.net. I have a very simple desktop application in in arcmap. I'm trying to get the coordinates when a user clicks a button on a toolbar and when click the map. The toolbar is ...
2
votes
0answers
43 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 ...
0
votes
1answer
117 views

Reading geospatial properties of ArcGIS web services using C#?

I need to display the Geospatial properties of ArcGIS web-services (like service name, service type, description, copyright, etc.) which are available in the "ArcGIS Services Directory", in my C# ...
0
votes
1answer
39 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
0answers
105 views

ESRI Error lookup COM Exceptions [duplicate]

How do I decipher these cryptic COMExceptions that ArcObjects are throwing? I got this exception System.Runtime.InteropServices.COMException: HResult: 0x8004151C and thats it, no more info no ...