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
0answers
104 views

ArcObjects: AfterItemDraw only fires for layers in the root of TOC

As I mentioned at the end of this answer the IActiveViewEvents.AfterItemDraw event (even with IViewManager.VerboseEvents enabled) only seems to fire for layers in the root of ArcMap's table of ...
2
votes
1answer
594 views

How to modify a LYR file using ArcObjects?

I'm creating an Add-in for ArcCatalog using C# that modifies the datasources of layers in a MXD and .LYR files by themselves. I have gotten the MXD code to work but I'm lost with how to modify a .LYR ...
3
votes
1answer
828 views

IFeature.set_Shape The coordinates or measures are out of bounds

I'm trying to add a point to my map, but something with the way I used shp2sde create caused me to have a incorrect spatial extent or something. So I'm getting "out of bounds" error. How do I go ...
2
votes
1answer
331 views

How to use multiple graphics layers in ArcEngine?

My organization is working on an ArcEngine application that displays a GPS cursor for the user's current position. We are using custom-made GPS code since ESRI's is buggy in ArcGIS 10. Whenever the ...
2
votes
1answer
2k views

Creating a featureclass in memory and adding to the map error

I have the code below, which is supposed to create a new featureclass in memory then add the FC to the map, but I get a Automation error when I use the createfeatureclass method Set pFC = ...
1
vote
0answers
206 views

Deploying Custom dll Commands etc in ArcGIS 10

Having followed the tutorial for deploying custom commands etc at the following link: How to deploy a custom component using a setup project It's a little different to how things were at version 9. ...
2
votes
1answer
835 views

ArcObjects: Setting image of a command button to a partially transparent bitmap

In an ArcMap 10 add-in, I am attempting to create a toggle button of sorts whose image changes based on the button's state. This answer describes how to set an add-in button's image programmatically ...
2
votes
1answer
382 views

Shapes of this entity type not allowed in this layer when CreateFeature() is called

I have the following code that calls on a remote geodatabase server. Everything is connected and working, but when I try to add a point and use featureclass.CreateFeature();, it shuts down. At first ...
3
votes
1answer
340 views

ArcObjects 9.2 SDK: How to intersect two SelectionSets (in-memory pointers) and return a FeatureClass?

[Update] Since posting this question, I've come to the conclusion I'm not fighting flaws in the BasicGeoprocessor object, but more likely having issues with poor object lifecycle management on my ...
1
vote
1answer
305 views

IMapServerObjects.get_Map says object is null reference.

So I am trying to access a map layer, which I can connect to. try { agsconn.Connect(); Log.Write("Connected.", "myclass"); ...
2
votes
0answers
440 views

ArcObjects - Possible To Add Anything More Than Text To Balloon Callout?

With code I've scraped together from various posts on this site, I am able to display a simple balloon callout with text in a standard ArcMap session. Is it possible to add anything more than just ...
4
votes
2answers
443 views

ArcObjects: How to measure the draw time of a layer in ArcMap?

I'd like to quantitatively measure the display performance of mosaic datasets, image service layers, raster layers, feature layers, etc. in ArcMap 10. How can I measure the draw time of a particular ...
1
vote
1answer
128 views

ESRI ISurface.GetElevation is extremely slow compared to GlobalMapper

I'm using ISurface.GetElevation on a Raster to get the elevation for a specific lat/lon. I have to do this for a huge set of datapoints. Currently i'm testing with a dataset of 10.000 items which ...
1
vote
0answers
109 views

Selection Events in ArcObjects using Java

I am trying to have an ArcMap addin receive ISelectionEvents, but I can't figure out how to register the event handler. I'm using ArcObjects 10.0 for Java. I'm able to catch IDocumentEvents as ...
0
votes
1answer
305 views

Pros and Cons for developing GIS functionality in ArcGIS Web API (Silverlight) or ArcGIS for Desktop

I have an application coming together using the ArcGIS Server API for Silverlight. The app, currently, takes in two geometry points from the user and passes the geometry to an ArcGIS Elevation server ...
3
votes
2answers
575 views

DLL As Embedded Resource ArcMap Add-In? VB.NET

I tried using StackOverflow, but I don't think anyone can answer my question in context(ArcMap Addins). I am currently developing an add-in that needs to load a custom control DLL as a dependency. ...
2
votes
0answers
230 views

Get Feature that was snapped to in New Snapping Environment

I asked this over at the ESRI forums but lack of activity over there made me post here as well. Does anyone know if there is a way to get the feature that something was just snapped to in the ...
1
vote
0answers
107 views

ArcObjects - IGraphicsContainerEvents_ElementAddedEventHandler Unregisters After a Few Fires

I am using IGraphicsContainerEvents_ElementAddedEventHandler to do stuff with graphics added by users in an ArcMap session using the standard drawing toolbar. As the code snippet below shows, its a ...
8
votes
3answers
3k views

ArcObjects (ArcGIS for Desktop and C#): How to cast between the ArcMap COM UI and my custom .Net UserControl objects?

I'm creating a utility to run in ArcGIS for Desktop using ArcObjects (9.3.1 SDK) and C#.Net. My prototype involves a toolbar with two comboboxes and a tool. The first combo selects a layer in the TOC, ...
2
votes
1answer
195 views

How to use ITransform2D on dimension features (arcobjects)

I am trying to move a dimension feature inside a personal geodatabase using ArcObjects VBA. I was able to move other types of features using similar code as shown below. However it is not working for ...
3
votes
1answer
296 views

Viewing panoramic imagery in ArcGIS

Is there an ArcGIS extension or utility that will view 360 degree panoramic images? I've found utilities that are part of larger software packages for managing mobile scanning data, but all I'm after ...
7
votes
1answer
1k views

Add layer to open mxd using ArcObjects from outside the map document crashes ArcMap

I have an Access database (MS Access 2010) that allows users to enter a variety of land treatment information including associated points, lines, or polygons which users can select and the database ...
2
votes
0answers
622 views

Make a Join Permanent

So I've been using a dynamic join (IRelQueryTable to attach a SQL query to a feature layer) but now I want to make a permanent (or semi-permanent) join. How do you go about doing this in ArcEngine ...
1
vote
2answers
522 views

Geoprocessing fails in separate thread

I have a method that does a bunch of geoprocessing on some layers for my ArcMap extension. It creates a feature-to-point layer for one FeatureClass and another feature-to-point layer for another ...
0
votes
1answer
423 views

How to edit my attribute table 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 ...
4
votes
1answer
413 views

How to find the service pack level in ArcGIS Addin?

I can query the current version from RuntimeInfo.Version. But I would also like to know what service pack is also installed. Do I need to just check the registery key ...
4
votes
1answer
308 views

List all active extensions with ArcObjects

I am building an ArcGIS 10 Addin that dumps out as much debug information about a system that I can get. I am currently trying to query which extensions are active in the ArcMap session. The following ...
8
votes
2answers
857 views

C# version for ArcObjects 9.3

Can I use C# 4.0 with the target framework set to .NET 3.5 to develop an extension for ArcMap 9.3? Or does it have to be C# 3.0 or earlier?
4
votes
1answer
1k views

Cant edit this featureclass. Why?

I can successfully create this featureclass in the ArcGIS10 default geodatabase and add it to the project, but it can't be edited. I have tried to add a feature using ...
1
vote
2answers
327 views

use existing function in arcmap use VBA in Arcobjects

I have a UI tool button, I would like to get and use the existing function (select elements tool) in Arcmap when I activate this button, does anybody know that how to call the existing function using ...
1
vote
4answers
1k views

AxMapControl: How to set map extent in ArcObjects?

I have a stand-alone application written in C#. I want to be able to save and restore the current map view (extent) that the user sees. I assumed that it would be as simple as saving the active view's ...
2
votes
2answers
772 views

ArcMap - Strange Behavior When Trying To Wire IActiveViewEvents in IDockableWindow

I can't seem to wire up IActiveViewEvents for an IDockableWindow. I am using a straight out-of-the-box IDockableWindow which inherits BaseCommand. The snippet below shows what I have added to the ...
2
votes
3answers
576 views

How do I zoom to the overall extent of two (or more) selected features from two layers?

I am creating an application where the user picks a value from a combo box, the application then selects that feature and then selects the corresponding features from a second layer, (both selections ...
5
votes
1answer
152 views

How long should I hold onto (cache) references to IWorkspace, ITable, IFeatureClass?

After many months of programming with ArcObjects, I still feel somewhat unsure about two related issues: For some operations, workspaces and datasets must be explicitly opened before they can be ...
2
votes
0answers
232 views

how to buffer a raster cell using Visual Basic ArcObjects in ArcMap [closed]

I am new in visual basic, I have a question about creating a buffer zone based on a raster layer. I have a raster layer named "Value_Raster", I have a textbox in the userform, I also create a tool ...
2
votes
1answer
353 views

Are there known issues about UPPER, LOWER SQL functions in ArcGIS 10, file GDB?

Platform: ArcGIS 10 SP3, .NET I use: IQueryFilter queryFilter = new QueryFilterClass(); with ArcGIS .NET SDK and build a query... Does anybody had problems using UPPER(stringField) and ...
3
votes
0answers
451 views

Edit data using arcobjects by SOE Web Services on Arcgis Server 10.0

I trying to develop WebService which main purpose is enable editing data. My Web Service get as param information about records, tables etc. Code looks like below: IFeatureWorkspace ifw = null; ...
1
vote
2answers
154 views

Identity tool FID column name gets cut off

After my ArcMap extension executes the Identity tool, the resulting identity shapefile has FID columns for the "input features" FeatureClass and the "identity features" FeatureClass but the column ...
-2
votes
1answer
126 views

How can I access the AddShapefile method in HookHelper?

I'm new to ArcEngine and ArcObjects. I'd like to develop an extension for ArcMap where I have to use IHookHelper instead of AxMapControl. I am looking for the AddShapefile method, which is available ...
1
vote
0answers
157 views

Trouble programmatically publishing to SOM when SOC is on another machine [closed]

I wrote a desktop extension for ArcMap that allows a user to publish the map they've just created to an AGS 9.3.1 machine on another server. This works fine as long as the AGS machine acts as a SOM ...
1
vote
1answer
458 views

Converting distance between nautical miles and degrees

This is such a basic question that I'm kinda of embarassed. Here is the situation: We have a certain funcionality developed that: Will check for a tolerance value (this input is given by the user ...
6
votes
2answers
266 views

How do I query a string in Arcobjects that has a single quote in it?

I'm trying to query values using a cursor and loop for the process of removing diacritics. The problem I am running in to is that when I try to create a WhereClause like so... qf.WhereClause = ...
0
votes
1answer
666 views

how do i calculate polygon area with arcobjects?

i'd like to develope an application with arcengine that can calculate area of a polygon . i wrote the below code to select a polygon in combobox for (int i = 0; i < pmapcontrol2.LayerCount; ...
3
votes
1answer
726 views

Using annotation layer inside group layer without getting error adding element?

How do you get an annotation layer working inside a group layer? When I try, I get the error message "error adding element". I have a project that requires several annotation layer to be organised ...
2
votes
2answers
602 views

Adding Button as Icon and Text to toolbar in ArcMap

How do you add a BaseCommand to a custom BaseToolbar as an icon and text. This is not an Add-In, it's the old way of doing buttons and toolbars even though it's version 10 of ArcMap. Cheers
4
votes
1answer
320 views

ArcObjects: How to get the midpoint of a set of polylines?

How can I find the midpoint (along the curve) of a set of polylines using ArcObjects?
2
votes
1answer
168 views

ArcMap 10 Commands

Is there an updated ArcMap Commands site for version 10? If so, where are they located? I could not find it here: ArcObjects SDK 10 Microsoft .NET Framework Thanks
3
votes
1answer
390 views

How do I get the path of a layer file (.lyr)?

In C#, how do I get the path of a layer file? I can get the datasource and name of the layer but I need to get the path to the .lyr file. I want to record the path so my extension can copy and load ...
1
vote
1answer
1k views

How to get the “queried” value from attribute table and put it in a textbox?

I am new in VBA, I have a problem about querying an attribute table....: I have a table of a layer (wish.shp) with the fields: owner_ID, Value, Area. I made 3 textboxes in a userform, I input the ...
0
votes
1answer
305 views

Cannot run toolbox model from button

I have a button on my toolbar that when clicked, will run a particular model, I have copied the code from here ...