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
1
vote
1 answer

How to make all corners of rectangle as orthogonal

I have developed an application in top of ArcGIS Desktop using Arcobjects C#.Net. Application will create a rectangle by connecting four known co-ordinates. I would need to adjust all four corners as orthogonal (90 degree). Is there any mathematical…
venkat
  • 347
  • 1
  • 4
  • 20
1
vote
1 answer

.NET implicit typing causes RuntimeBinder exception

I am working with an API called ArcObjects and .NET 4.5. I encountered the error 'object' does not contain a definition for 'AddValue' while using one of the objects on the API, but I think this may be a more general .NET issue than one with this…
danielm
  • 339
  • 1
  • 8
1
vote
1 answer

Python, comtypes and ArcObjects: Error creating AppROT object

I am experimenting with comtypes and ArcObjects under Python 2.6.5 and ArcGIS 10 SP1. I'm using the pure Python method to wrap the ArcObjects OLBs described in this answer, but getting an error in the comtypes.CoCreateInstance method. Here is the…
blah238
  • 1,796
  • 2
  • 18
  • 51
1
vote
1 answer

How do you remove a schema lock on a dbf file accessed using ArcObjects?

I am creating a custom geoprocessing tool for ArcGIS Desktop/Server. During the tool execution, I create a dbf file and access its contents using a cursor. The lock on this file remains after the tool has finished executing and can only be removed…
Michael Allan Jackson
  • 4,217
  • 3
  • 35
  • 45
1
vote
0 answers

“Interop type cannot be embedded” issue when exporting activeview to PNG file using Arcobject

This maybe a very silly question but it bothers me quite a while. When I tried to export Activeview of ArcMap to a PNG file using the "IExport" interface from Arcobjects C#. Visual Studio always pops out this error message:screenshot of the code…
TTTZ
  • 11
  • 1
1
vote
0 answers

Split polygon using offset distance method in ArcGIS using VB.NET/C#

I am developing the extension on ArcMap for custom mapping solution.I have the requirement for splitting the polygon on ArcMap using VB.NET or C#. The algorithm is something like below- Given as line on the polygon, the split operation should cut…
rughimire
  • 374
  • 1
  • 5
  • 16
1
vote
1 answer

Getting error when trying to build ArcObjects project in VS 2015

The install works correctly, you can create an Add-in project, but trying to build the project receives this error: The "ValidateAddInXMLTask" task failed unexpectedly. System.IO.FileNotFoundException: Could not load file or assembly…
Saarang Tiwari
  • 291
  • 2
  • 12
1
vote
1 answer

Can custom map tiles be consumed via ArcObjects within my ArcGIS 10 Desktop AddIn?

Can I programmatically consume and render custom map tiles in ArcMap via our ArcGIS 10 Desktop AddIn? The AddIn is built using the ArcObjects SDK for C#/.NET and ArcGIS 10. Pulling and rendering map tiles is NOT the AddIn's primary function. But…
Josh
  • 160
  • 7
1
vote
0 answers

How to determine in which esriTransformDirection we need to use in ArcObject IGeometry5 ProjectEx

I am working on a project in which i need to calculate the points form on CRS to another, but as we the source and target CRS are only determine on runtime. ISpatialReference source = GCS_North_American_1983 ISpatialReference target = UTM Zone 13…
Usman
  • 11
  • 2
1
vote
2 answers

Converting Lat / long to PointClass

IPoint pPoint = new ESRI.ArcGIS.Geometry.PointClass(); pPoint.PutCoords(-92.96000, 44.9227); //This should be near Minneapolis mapControl.CenterAt(pPoint); //mapControl is a AxMapControl When I run this code the point always ends up near Kansas.…
patrick
  • 16,091
  • 29
  • 100
  • 164
1
vote
0 answers

ArcGIS Desktop AddIns program can't get AxMapControl object

I've got a .NET program type powered by ArcGIS engine SDK version 10.1 which aims to select layers by circle. The IDE is Microsoft Visual Studio 2010. The program can be compiled but runs with wrong. Some code is showed below: using System; using…
1
vote
1 answer

ArcObjects 10.2 Error Under Debug Mode of Visual Studio 2010

I get stuck with this ArcObjects 10.2.2 debug problem. My environment Win7 64 bit ArcGIS Desktop (ArcInfo) 10.2.2.3553 Visual Studio 2010 Pro Problem My application use IMapDocument interface of ESRI.ArcGIS.Carto to open MXD document. If the…
jingking
  • 11
  • 3
1
vote
1 answer

How to add the ToPoint and FromPoint of a line on one layer to another layer / feature class

I have a roads layer. I need to ad a point to another, point layer where ever roads intersect. How can I add such points to the existing points layer. In hand I have the line layer, the line feature / To and From Points, and the points layer. I just…
Jacques Bosch
  • 2,165
  • 3
  • 25
  • 36
1
vote
0 answers

Conversion of points in one Projected Coordinate System to Another

How can I convert points from one projected coordinate system to another using ArcObjects in C#? //Coordinates in feet double feetLong = 2007816.711; double feetLat = 393153.895; //Coordinates in decimal degrees (Should be the resulting…
Surfinsanta
  • 43
  • 1
  • 7
1
vote
2 answers

How to get Geographic Coordinates of a Mouse Click using C# ArcObjects

I've got an ArcObjects C# tool (most of this code was found here on Stack Exchange) in ArcGIS that identifies map coordinates when a user clicks on a location within a map. Here's the code that I have used: public override void OnMouseDown(int…
Surfinsanta
  • 43
  • 1
  • 7
1 2
3
13 14