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

VBA 6.0, Code to change 3 comboboxes upon selection of each! Called Selection Change!

I am trying to write code to have 3 comboboxes change upon selection of each. For Example: In combobox 1 they choose Urban which populates combobox 2 with 2010 and 2011 which then populates combobox 3 with houston, austin and so on. I am trying to…
Michelle Couden
1
vote
1 answer

Return feature.shape from server by using WCF and ArcGIS Silverlight API

I am using arcgis silverlight api I all i need to do is to get geometry from feature by objectid to zoom to it getFeature(objectid); so i used WCF service to get the geometry but I found error that say Type 'System.__ComObject' cannot be…
1
vote
0 answers

How to create Schematic Attribute (ArcObject .Net api)

I am writing an ArcCatalog(10.1) Addin(C#) for creating a schematic diagram template and Element Classes. Now I need to create some attributes such as OriginNode and ExtrimityNode for Link class, Constant and another field Attribute for other…
1
vote
4 answers

How do you get a unique id for a layer or generate one in Arcmap?

Is there a way in arcobjects to get a unique id for a layer? If you do a search by layer name there could be possible duplicates. If there isn't a property is there a way to generate an id? I tried using the GetHash() but that didn't stay…
Donny V.
  • 22,248
  • 13
  • 65
  • 79
1
vote
1 answer

Programatic way to do linear referencing in ArcGIS

I am working on a custom ArcGIS Desktop tool project and I would like to implement an automated linear referencing feature in it. To make a long story short, I would like to display problematic segments along a route and show the severity by using a…
El Weon
  • 385
  • 1
  • 3
  • 12
1
vote
1 answer

Unhandled exception - just in time debugging

I have an application (extension) that works fine on Windows XP platform. When I run this application on Windows 7 it throws this error. I am not sure what is causing this. I was thinking that it could be due to the fact that .net framework is not…
jay
  • 131
  • 10
0
votes
1 answer

How to edit my attribute table in ArcGIS with VBA

before I start you should know that I am a bloody newcomer when it comes down to coding. I am sitting on some university tasks regarding VBA and ArcGIS: My next task is to create a code snippet that enables the user to edit values (rows) in the…
Timothy Dalton
  • 1,290
  • 2
  • 17
  • 24
0
votes
3 answers

FromPoint does not intersect it's own IPolyline5

I have a Polyline and a Point FeatureClass. I create a point feature on the Point layer for both the FromPoint and the ToPoint of the IPolyline5 similar to below: IFeature pointFeature1 = pointFeatureClass.CreateFeature (); pointFeature1.Shape =…
Jacques Bosch
  • 2,165
  • 3
  • 25
  • 36
0
votes
3 answers

Is there a way to get graphic text to scale in ArcMap?

I'm using this code to create text in ArcMap. But I can't seem to get it to scale like annotation text when you zoom in. Does anyone know how to do this? //'First setup a color. We'll use RGB red IRgbColor pRGBcolor = new…
Donny V.
  • 22,248
  • 13
  • 65
  • 79
0
votes
1 answer

Dynamic Proxy : wrapping constructors

I'm taking a stab at creating a Active Record implementation (I know about Castle's initiative, and it's very good) for another type of data provider (ESRIs geodatabases, using ESRIs .NET libraries) and I'm reaching something interesting. I have a…
George Silva
  • 3,454
  • 10
  • 39
  • 64
0
votes
0 answers

No layers in the exported image of the MXD project using C#

I have created a console application to export the active view of an MXD document using C# ArcObjects. The app works, but for some reason the exported image is missing all the layers in the map and legend. I checked, all layers are enabled, the…
shadow031
  • 1
  • 1
0
votes
0 answers

Clip a raster data using rectangle defined by clicked posision and buffer in ArcObjects

Clip a raster data with rectangle using ArcObjects. The rectangle is defined by clicked posision and fixed length and width. I have written the code so far, but I get an error. Could someone please tell me how to do this? protected…
momo
  • 1
0
votes
0 answers

Automate upgrade of C# ESRI ArcObjects code to higher version

We need to update/upgrade existing C# code to the latest version of ArcObjects library. How to automate upgrade of C# ESRI ArcObjects code to higher version?
mik1971
  • 89
  • 8
0
votes
1 answer

implementing interfaces during VB to VB.NET class migration

I'm migrating the CenterSnap.cls from its vb version to vb.NET and I'm confused about the following 2 errors after I import the vb6 project to VS 2008. Err 1 Imports System.Runtime.InteropServices Imports…
artwork21
  • 330
  • 12
  • 29
0
votes
1 answer

How can I configure Editor Tracking in ArcObjects 10.3 for .net for a table programmatically?

I use ArcObjects for .net for ArcGis 10.3. I didn't find any interface to configure editor tracking for a table of GDB database. How can I configure Editor Tracking for a table programmatically? I found interface IDEEditorTracking but I didn't find…
uvgen
  • 1
  • 3