Questions tagged [arcobjects]

ArcObjects is a development environment for ArcGIS applications by ESRI.

Overview

ArcObjects is a set of COM-based APIs from ESRI Inc. that are used in several of their products, ArcGIS Desktop, ArcGIS Engine and ArcGIS Server.

The APIs can be used several developer platforms including .Net (VB.Net/C#...), Java, C++.

Tag usage

For non-development questions, see GIS Stack Exchange

196 questions
0
votes
1 answer

Update field in feature class in arcObjects

I have layer (feature class) in ArcGIS. The data is on Oracle 11g. I try to update a field in a row but when I do feature.store I get an error Class is not licensed for use (Exception from HRESULT: 0x80040112) Attached code : private void…
0
votes
1 answer

Arcobjects union method

I get an AutomatedException error when trying to run the union tool with the geoprocessor of arcobjects and don´t know how to solve this. This is my code: GeoProcessor geoProcessor = null; try { geoProcessor = new GeoProcessor(); …
David
  • 1
  • 1
0
votes
1 answer

C# Arcobjects: Insert Excel object into the pagelayout

I'm looking for direction on how to add an excel sheet into the pagelayout of an mxd; much like the function that is available through the arcmap interface. I'm using C# arcobjects (10.5) and am loaing the MXD in to memory. At that time I'm adding…
Omnia9
  • 1,563
  • 4
  • 14
  • 39
0
votes
2 answers

ArcGIS Convert IGeometryCollection to IEnumGeometry

I have a group of polylines mistakenly created with a geometry for each vertex pair. Typically they have thousands of geometries. I would like to merge the geometries (note: NOT merge features) in each feature into one geometry. To do this I am…
John M
  • 53
  • 7
0
votes
1 answer

Arcobjects: set measures based on the polyline length

I am currently linear referencing a set of roads. Using IMSegmatation2.SetMsAsDistance2 works fine for single-part polylines but for multi-part polylines I want to set the M values as the length along the polyline to the point, not the shortest…
John M
  • 53
  • 7
0
votes
0 answers

ArcObjects: Setting symbol levels doesn't seem to apply unless switched to advanced view

Using the information provided on http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/d/00010000035w000000.htm I've been able to set map levels on my ISymbol objects, but unsure if it's working how I expect. If I'm not in…
Mike
  • 1
  • 5
0
votes
1 answer

ArcObjects: How to enable associating levels to masked layers?

In the advanced drawing options for Layers there is a checkbox 'Enable to associate levels to masked layers'. I'm trying to figure out how to enable this via ArcObjects. I can cast an IMap or IGroupLayer to ILevelMasking to retrieve the levels as a…
Mike
  • 1
  • 5
0
votes
2 answers

"COM object that has been separated from its underlying RCW cannot be used" error related to vb.net form event

I'm hooking an arcobjects map event to a vb.net form to listen for map selection changes. This all works fine but users are reporting this error occassionally when opening the form. I can't see any pattern to reproduce the error and it seems to be…
Courlu
  • 106
  • 2
  • 8
0
votes
0 answers

AccessViolationException [ArcEngine]

I am currently developing using ArcObects 10.2.1 and I've encountered this tricky exception: AccessViolationException was encountered Attempted to read or write protected memory. This is often an indication that other memory is…
0
votes
1 answer

How do I add a scale bar or north arrow directly on the map control?

I've already looked into SurroundFrames and MapSurrounds, but this appears to be for cases in which you want to add these elements to a printed page. I, on the other hand, am using the MapControl within a live application, and I would like these…
KRFournier
  • 155
  • 2
  • 9
0
votes
1 answer

Changing the order of multipart Geometries

I have a group of Multipart Polyline Geometries which have measures. I am trying to re-order the geometries to better follow the traffic flow. I am using a GeometryBridge to add the re-orderd segments to an ISegmentCollection. The problem is that…
John M
  • 53
  • 7
0
votes
1 answer

Execute Pick Point from Windows Form in ArcGIS

I have a windows form which is launched with an ESRI AddIn button (ArcGIS 10.2 and Windows 7). On my form I have a button to pick a point from the Map. I have added an ESRI BaseTool class to the project, which has an OnMouseDown event. The problem…
John M
  • 53
  • 7
0
votes
0 answers

HRESULT E_FAIL Error while Calling ArcObjects Custom Model Tool

I have created a custom model tool in ArcMap 10.2.2. If we run this tool on ArcMap, we noticed that the tool is working fine. where as if we call the same in Arc Objects under Geo-processing tool, it is throwing an error as shown below Error…
0
votes
1 answer

IGeometryCollection of Polylines returns Paths

I have an file of points which are to be converted to a set of polylines. Some of the lines are multipart and I want to convert them to singlepart. The points are processed and the polylines added to an Interim featureclass (for backup purposes).…
John M
  • 53
  • 7
0
votes
3 answers

Trying to save null value with arcObjects

I'm trying to save a null in an integer column with arcObjects but it always save 0 when the value is null. Can anyone explain me what is happening? I am developing in C#. I tried to assign DBNull.Value to my variable but I can't because it's an…
tornic
  • 747
  • 6
  • 15