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)

4
votes
2answers
882 views

ArcObjects joins and non-persistent fields after joining to multiple tables

I have inherited a truly awful and very large ArcObjects project that was originally written in VB and then ported to C#. Apparently the source code I have been given is not the latest version and I ...
-1
votes
0answers
23 views

ArcObjects how open layer in new window? [on hold]

I have 2 layers. 1 layer - Buildings, 2 layer - transmission line inside the building. Is it possible to do so, that would be in the window layer object parameters Buildings, was watching button ...
4
votes
2answers
2k views

Merging two polylines with programming?

We are currently working on a project where we have to merge sections (polylines) to a route, but the big question is how to do this. We have currently tried adding those two as segmentcollections but ...
4
votes
3answers
6k views

How do I upload a Featureclass to a Geodatabase in C#?

I have a featureclass with Arcobjects that came from a Shapefile and I wish to import it into a geodatabase. I have the geodatabase connection, I just don't know how to load the feature class to a ...
0
votes
0answers
20 views

Authenticating to ArcGIS Online Server with ArcObjects / python

Below is working script that outputs a layer file from an arcgis Server feature service (AGOL or AGS) I am struggling to implement the authentication needed to access the secured services in AGOL. ...
2
votes
1answer
21 views

ArcMap custom extension registered but not added

I haven't found any info on this particular problem so let me try here. My job is to migrate a 9.3 desktop extention to 10.3, keeping the app in the original COM-based format (not converting it to an ...
1
vote
0answers
39 views

Change coordinate system to add buffer in meters

I have am trying to add functionality to allow users to find points that are within a buffer distance inside or outside the parameter of a polygon. The map is in IProjectedCoordinateSystem so to my ...
2
votes
1answer
424 views

Can I update the service on ArcGIS for 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 ...
1
vote
0answers
40 views

I want to cut polygons in a polygon layer.

I want to programmatically cut polygons already loaded in arcmap. For instance if originally I have 1 polygon feature and 1 row in attribute table. When I cut them, I should see 2 independent features ...
2
votes
0answers
26 views

ArcObjects Custom Tool for a VB App

We have an old VB6 app that uses the map, toolbar and toc controls. On the toolbar, we've added the custom menu so users can add other built-in tools or tools they've created. One of our customers ...
2
votes
1answer
347 views

Programmatically get Layer source properties DataType with ArcObjects?

I am trying to access the DataType property of a Layer in the TOC in ArcMap. The layer is added from a web service as an IMapServerRESTLayer. The Data Type property is listed with Layer -> ...
1
vote
1answer
618 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 ...
0
votes
1answer
195 views

cad to shapefile conversion

i have use arcgis10.1,arcobjects.net. i did following code ESRI.ArcGIS.Geoprocessor.Geoprocessor gp = new ESRI.ArcGIS.Geoprocessor.Geoprocessor(); gp.OverwriteOutput = true; ...
2
votes
2answers
321 views

Refreshing display for newly added labels with ArcObjects from Python?

I've added a shapefile to an MXD and Edited the symbolization of it with ArcObjects. Now I'm trying to edit the labeling with ArcObjects. I've successfully been able to edit the default class in the ...
0
votes
1answer
303 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 ...
5
votes
2answers
301 views

Build Network Dataset with python comtypes

I know this isn't possible in arcpy, so I thought I'd give it a stab using comtypes. I am trying to translate some of the VB.NET code to create a network dataset from the help docs: ...
2
votes
0answers
28 views

Add a map element with a frame border and background

I am trying to insert a north arrow and a legend into the map with a white background frame and a border with a 3pt gap. The code below partially works, but it changes the background colour of the ...
0
votes
1answer
231 views

Create a new BasicOverposterLayerProperties

ArcGIS 10.1 with VB.NET I have been trying to figure this out for days but can't seem to make the connection. For a layer I am trying to create a label. I create a new BasicOverposterLayerProperties ...
3
votes
1answer
209 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 ...
1
vote
1answer
201 views

ArcObjects 10.1 IDatabaseCompact lock file

I'm trying to automate one of task by creating code that will execute the IDatabaseCompact.Compact method to a GDB file. Everything seems to work fine but there is always a .lock file generated after ...
4
votes
0answers
37 views

How to prevent automatically redraw the graphic layers on ArcObjects?

After a Shape File that was read to IFeatureLayer converted to IGraphicElements, I'm trying to draw that on map (using Sublayer of ICompositeGraphicsLayer). Of course, I succeed to display it on map, ...
3
votes
0answers
28 views

Exporting ActiveView to Jpeg using ArcGIS 10.2.2 fails

I have some legacy VBA code that exports the activeview to a jpeg, which needs to be updated, so it can be used in ArcGIS Desktop 10.2.2. The application uses the following code Option Explicit ...
1
vote
1answer
184 views

Connect to remote Sqlserver using arcobject

I want to connect to a database assigned to a vps with an ip address.I used this string to connect to Database when it was on localhost. how I change it to connect to remote one? ...
2
votes
0answers
23 views

Get Z value from point in LAS Dataset using ArcObjects

Using ArcObjects (C#) I am trying to build a tool that will extract the Z value from a point in a LAS Dataset when the user clicks on it (then use that value elsewhere). My intention was to use the ...
3
votes
4answers
1k views

Drawing selection custom selection box using ArcObjects?

I have some code that I'm using to selecting features in a certain extent. I already rigged the tool properly, so it selected the objects as needed, but I want to draw interactively the selection box ...
15
votes
1answer
735 views

Understanding why ArcPy Cost Path Analysis tool faster than ArcObjects? [closed]

Although I use python to create geoprocessing scripts/services, I was under the impression that using ArcObjects to do the equivalent operation(s) will have better performance. I've posted ArcGIS ...
1
vote
1answer
298 views

Eclipse export as runnable jar file error

I am building a destop application , which takes user input for personal geodatabase and finds feature class in it . It works fine till i run it in eclipse , but when i export it as a runnable jar ...
2
votes
0answers
22 views

Creating a Legend with arcpy and comtypes

I am relatively new working with python and arcobjects. Under normal limitations I know that you cannot create a Legend or any arcobject with arcpy.mapping. Is there a generic example of creating a ...
2
votes
2answers
412 views

Create FeatureClass in Personal Geodatabase and store data

I have to create a new featureClass in my existing personal GeoDatabase. And save some polylines into this featureClass. How can i do it? I need c# code to do this. Edit: I have a problem during ...
0
votes
1answer
214 views

Code to get featureclass name from existing topology

I am creating and validating topology through vb.net and arcobject code.Things are running fine as I am able to add rule and validate it . Problem is when once the program is run and topology is ...
-1
votes
0answers
28 views

How to standardize raster layer in one scale to a range of 0-1

I'm trying to write a vb.net code in order to do a standardization for raster layers (raster scale from 0-1) by using Raster Calculator. How can I connect vb.net with raster calculator within ArcMap? ...
2
votes
0answers
33 views

Is it possible to create an ArcGIS library?

Can I create my own ArcGIS library that contains commonly used features inside my own functions/methods? I would like to make a dll that can be reference in my projects for using common features such ...
0
votes
1answer
29 views

How to read a tile package file(.tpk) in ArcObject C#?

I should read and show some tile package file using ArcObject C# 10.x. However, I failed to find how to read an tile package file on My Application using ArcObject C#. So, please tell me about ...
2
votes
1answer
24 views

The type 'ESRI.ArcGIS.Display.RgbColorClass' has no constructors defined

Trying to create a simple line symbol. But getting an error: "The type 'ESRI.ArcGIS.Display.RgbColorClass' has no constructors defined" public override void OnClick() { IDocument pdoc = ...
0
votes
1answer
560 views

Debugging InvalidCastException was unhandled by user code error from ArcObjects DataStat?

I have some code that adds a bunch of group layers into ArcMap based on a table within ArcMap. The code works fine in VBA, however in VS 2010 I get an error on the "pEnumVar = pDataStat.UniqueValues" ...
1
vote
3answers
2k views

Objects in this class cannot be updated outside an edit session

HI i am trying to update my feature class with some new parameters using IEditWorkSpace, Following is my code --- IWorkspaceFactory workspaceFactory = new AccessWorkspaceFactory(); IWorkspace ...
0
votes
1answer
469 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
13 views

Getting trouble with prefix clause for an ArcObjects Java query filter

I'm using ArcObjects/Java for ArcGIS 10.2.2 and I'm trying to get unique values of a field for a feature class. Here's my current code: List<String> values = new ArrayList<String>(); ...
2
votes
1answer
20 views

ArcGIS server extension: Marshal.ReleaseComObject() or not?

The ServerSimpleImageServiceRESTSOE example uses Marshal.ReleaseComObject(). The other examples seem to not use this. When should I use Marshal.ReleaseComObject()? As I understand if I am not using ...
1
vote
0answers
29 views

Validation on save in arcobject

I want to validate all the features that have been changed since last save. Currently I'm trying to do this in an ESRI.ArcGIS.Desktop.AddIns.Extension. My sde database is not versioned. public class ...
1
vote
1answer
206 views

Scripting creation of cogo polylines including curves

Is it possible to create polyline features from cogo type text files? I have some files that have survey type coordinates in them and they contain straight line segments as well as curves (defined by ...
1
vote
1answer
524 views

Join and Calculate vb.net

Im trying to join an excel table to a shapefile and then calculating those fields using vb.net. The code I have written has no errors, but won't work when I try it in ArcGIS 10.1 and I'm out of ideas. ...
3
votes
1answer
43 views

ArcObjects in ArcMap 10.2.2 UpdateCursor refer to a calculated field value in the same Cursor

Is it safe to calculate a field value inside an update cursor and refer back to this calculated value to change another field value of the same row? I think some code will actually explain my ...
2
votes
1answer
53 views

Determine if Point is in feature class attribute table

I'm working with ArcObjects, C# and ArcMap. I have an attribute table that has several rows of data including a "shape" field that holds a point geometry. I also have a random point. How can I iterate ...
0
votes
1answer
583 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(); ...
1
vote
2answers
43 views

Changing layout background from red to blue through button add-in with C# and ArcObjects?

I am working on Arc Objects using C# and I have to make a button add in, such that if I click button one time then layout background color changes to red and then if I click again then button add in ...
3
votes
2answers
47 views

Which interface controls 'Place overlapping labels' for a feature layer?

I need to turn on the option to 'Place overlapping labels' for a feature layer via ArcObjects. In the ArcMap UI it is located here: I can get to most of the labeling options from the ...
2
votes
3answers
170 views

Releasing features from a recycling feature cursor

I have a recycling feature cursor that is used to fetch a single row. Is it my responsibility to release that returned feature, or will it be cleaned up by the cursor as it would be if I consumed the ...
0
votes
2answers
47 views

Is the ArcObjects SDK for .NET available with an ArcGIS for Home Use or free trial license?

I currently have a 6 month free trial of ArcGIS Desktop 10.1 that I got online with an authorization number from an Esri Press book and I've read that ArcObjects is bundled with the Desktop license ...
0
votes
1answer
47 views

Python-ArcObjects mxDocument Stand Alone

if I need to work with classes MxDocument with the MapDocument that I have selected to work , for example style gallery, How can I instantiate ? InitStandalone() pMapDoc = ...