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)

5
votes
2answers
428 views

ArcObjects Class Extension - core events not being fired by an editing tool

I think I've just hit a major limitation with how ArcMap (10) deals with class extensions on a Feature Class but I would first like to make sure I'm not missing something or seeing a bug. I have a ...
2
votes
0answers
115 views

geodatabase/workspace content viewer control [closed]

I'm in the process of developing a windows form (desktop) app that will have the ability to display content from user-provided personal geodatabases (.mbd files). I want to create a custom control ...
2
votes
0answers
118 views

ArcMap crashes on TabbedFeatureInspector sample

The TabbedFeatureInspector, (VB.NET), sample crashes ArcMap when I do the following: Open ArcMap. Open map document with feature class with class extension loaded. Select a feature. Start an edit ...
1
vote
0answers
66 views

Strange Behavior for TOCControl PopupMenu

The sample "TOCControlContextMenu" demonstrates how to display a context menu from the AxTOCControl. When I run this sample and right-click on the TOC control the context menu pops up and remains ...
1
vote
0answers
295 views

Add print/export button to axToolbarControl [closed]

I have a map that's being rendered inside a custom application, and now I need to add to the ESRI.ArcGIS.AxToolbarControl an export (to PNG) button and a print button, but honestly don't know how. ...
7
votes
1answer
803 views

With arcpy, how do I detect relationship classes in a file GDB (or can't I)?

I would like to be able to detect relationship classes in a file GDB. Because users of my script might have only an ArcView level license, they would not be able to manipulate the schema of a feature ...
1
vote
0answers
259 views

Problems with Multipatches

I have some polygonal features that have minimum and maximum z values. I'm trying to calculate the difference between a fixed extruded polygons and the sum of extruded related polygons. Here's how ...
4
votes
1answer
636 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 ...
3
votes
1answer
1k views

Change Measure Tool units through ArcObjects

I'm activating the measure tool through code by using the ControlsMapMeasureToolClass. I want programmmatically to change the default length units of tool. How do do that?
7
votes
4answers
6k views

How to release the lock on a gdb?

I have problems to release my gdb in ArcGIS10. My tool works with an local gdb, but I failed to release it after the process. In Ag9.3 I can release it simply by Marshal.ReleaseComObject(workspace), ...
1
vote
1answer
111 views

Named ITable removal

I am dynamically creating a join between a GeoFeatureLayer and an external ITable derived from a SQL query and opened with OpenQueryClass(). It works. Now if I could only delete the Join!? But even ...
2
votes
1answer
280 views

What is the interface/property in ArcObjects that corresponds to a layer's dataSource property in arcpy?

I am trying to get the "Catalog Path" of a Feature Layer's data source in the table of contents of ArcMap using ArcObjects. This is very straightforward in arcpy but seemingly not so much in ...
6
votes
2answers
723 views

Alternatives to ArcGIS Extensions using ArcObjects?

I was wondering if there are any projects based around using ArcObjects and external libraries to create open source alternatives to extensions in ArcGIS. For example 3D Analyst, Spatial Analyst etc ...
1
vote
1answer
266 views

Dynamic defining of transformation type for ISpatialReferenceFactory.CreateGeoTransformation call

Suppose given a point (IPoint) in some coordinate system. Required to transform it to another coordinate system. If both of coordinate systems are predefined, we can use IGeometry2.ProjectEx with ...
3
votes
2answers
429 views

Using IRelQueryTable

I create a RelQueryTable like this to join a GeoFeatureLayer to an external table. Everything seems to work (no errors, I can look in the table and see the correct fields.) Silly question: what do I ...
1
vote
1answer
460 views

Creating JPEG images of geoprocessing output using ArcObjects?

I'm running batch processing on several datasets using a standalone EXE written in .NET. There are many output files for each dataset (>25 featureclasses/rasters). For every dataset I would like to ...
3
votes
0answers
359 views

Problem refreshing GroupLayers in ArcScene (ArcObjects 10 .NET SDK)

The functionality I am seeking is to add a FeatureLayer (containing some data from a file selected for import) inside of a GroupLayer collecting all of the data from that particular source. The logic ...
1
vote
0answers
82 views

Compound Key to Relationship

If tableField = "Process ID" and layerField = "PID" then this works: IRelationshipClass relationshipClass = memoryRelationshipFactory.Open( "Join", table as IObjectClass, tableField, ...
2
votes
1answer
1k views

Trying to instantiate geoprocessor with .Net vs 2010

Retrieving the COM class factory for component with CLSID {5374EC4C-1AA2-4829-A811-DE624ECEC23F} failed due to the following error: 80040111 ClassFactory cannot supply requested class (Exception from ...
6
votes
1answer
527 views

What is an IFeatureClassName?

I'm currently attempting to export a selected set of data from a feature class in a database to another database as a new feature class. I understand everything perfectly right up to the ...
3
votes
2answers
447 views

uniquely identify feature classes & compare them for equality

I want to implement EqualityComparer<T> for feature classes so that I can stuff them into a Dictionary or HashSet. For motivation, say that I am looping over many IFeature objects which belong ...
3
votes
2answers
706 views

How to get all features in current extent

I like to add text information to each feature in the shown map extent in my MapControl/PageLayoutControl. Adding the text is not a problem, but I couldn't find a way on how to get the features. Is ...
2
votes
1answer
414 views

How to use nested loops with cursors?

I use the following nested loops to read the first point feature of a dataset and the rest points in that dataset. Then read the second point feature of a dataset and the rest points in that dataset ...
3
votes
0answers
696 views

ArcObjects - IExportPDF2 and esriExportPDFLayerOptions Not Working as Expected

I have a small function that exports a map document to a pdf. The function works in the fact that it does export a pdf. However, regardless of what I set ...
3
votes
2answers
761 views

How to loop through an array of point features?

I have a set of point features and I wish to find the points that have common coordinates. Now I changed the code as shwon bewlo by using the IPoint and the compare method through a function. I have 2 ...
1
vote
2answers
196 views

How can I define the extent setting of environments programmatically in VBA?

I use the following line of code to define the extent setting of the environments GP.Extent = "144566.589424822 351191.130242809 145772.160224822 353810.742942809". However, I need to define it ...
6
votes
2answers
798 views

Is it permissible to update features after the feature cursor has been released?

In ArcObjects, is it permissible to modify and update a feature after the feature cursor (which was used to retrieve the feature) has been released? That is, do features in any way retain a link to ...
3
votes
2answers
345 views

IApplication reference with ArcObjects Class Extension

I have an ArcObjects (9.3) Class Extension which has an event handler for OnCreate so that feature properties can be manipulated / assigned when a feature is first created. Some of the functionality ...
4
votes
3answers
169 views

Navigating ArcObjects Object Model Diagrams (OMDs)?

How does everyone get round navigating the different Object Model Diagrams (OMDs)? I can work with single interfaces no problem, but when i have to use multiple interfaces I struggle to get my head ...
1
vote
0answers
815 views

Change the symbol for a single feature in ArcObjects?

Is it possible to change the symbol for a single feature in ArcObjects? If so how? I know it's possible to setup the map symbology for different field values of a feature class, but I'd like to ...
2
votes
2answers
174 views

Understand and use user provided file structure

I have at my disposal a folder with data provided to me by a person that knows nothing about GIS. I have the impression that its file structure was generated by some esri desktop product. I have only ...
0
votes
1answer
351 views

IUniqueValueRenderer with three fields

I have found some ArcObjects code to get unique values on one field for a IUniqueValueRenderer but I can't conceptually wrap my head around how to do that with 3 fields. Would this be .Net code or is ...
2
votes
2answers
2k views

How to find nearest line to point using ArcGIS Desktop (ArcObjects/Python)?

I am new to building custom ArcObjects, and am looking for a custom python script for arcgis version 10 that will loop through a point shapefile to find the nearest line segment of a line shapefile ...
5
votes
1answer
223 views

Reading an Existing Join

Confused again. I was finally able to run ArcCatalog and create a join in my map document (I will do the deed programmatically eventually) but I was interested in how a join looked once it was ...
2
votes
0answers
113 views

Change MADtedLayer renderer

This question is relative to a past question of mine at Rendering raster layer from DTED based on height color map (that remained unanswered), so if you believe that I should merge those two, let me ...
2
votes
3answers
385 views

List layers in directory .Net ArcObjects or plain .Net — C# preferably

Any code samples to list arcgis layer files from a directory so they can be looped over?
3
votes
1answer
370 views

CodeDom.Compiler fails in Arcmap add-in, but works from console app

The Test method in the code below succeeds in a console test app, but fails when I call it from within an Arcmap add-in, throwing a ReflectionTypeLoadException with a loader exception saying: ...
2
votes
1answer
219 views

Limit construction tools listed for an edit template to custom edit tool

Is it possible to limit the construction tools available for a specific feature class to a custom edit tool? I'm porting a 9.3 extension to 10, and would like to move tools off an old toolbar and ...
4
votes
1answer
1k views

How to run VB scripts in ArcGIS?

Some questions about VB scipts: Can I read and modify the code of a VB script? If the answer is yes, how can I do it? How can I run a VB script? Can I use it as a VBA code eg.using variables instead ...
2
votes
1answer
245 views

Link non-spatial SQL Server query to a Geodatabase?

Is it possible to build an object (of whatever kind) in ArcEngine code that links the geodatabase data with a non-spatial SQL Server query? How would you go about doing this?
2
votes
1answer
1k views

Create Thiessen Polygons (Analysis) by defining an external feature boundary

Although this issue has been addressed in this post some months ago: Thiessen Polygon delineation within a Feature, the appropriate answer has not been given. So, new ideas are welcome. My question ...
3
votes
1answer
3k views

How to Insert Feature into Feature Class (in Memory) ESRI

I'm looking for suggestions on how to insert a new feature instance into a feature class that is in memory -- assuming that I don't have access to the feature workspace. For example, the feature class ...
3
votes
1answer
427 views

Arcgis -> python -> ctypes -> c++ dll tool cancels itself, why?

Since optimizing my python-ctypes-dll based geoprocessing tool, it seems to cancel itself a lot. Followed by arcmap reporting a pure virtual function call (which is odd, because you'd think any such ...
2
votes
2answers
8k views

How to call a DLL file from VBA?

I have a DLL file that I have loaded and registered it in ArcGIS as a command icon. This icon launches a window where the user should do the following selections: an input file, a field name, select ...
3
votes
1answer
348 views

ArcObjects .NET: Get more info out of COM Exceptions - how to get description info from ErrorCode?

Ok, I can trap the COM exception and convert the ErrorCode to the proper enum, (e.g. esriGeometryError.E_GEOMETRY_WRONGTYPE). But is there a way to get the error description from the enum? For ...
3
votes
2answers
398 views

Where to buy training licenses for learning ArcObjects?

A client of mine wants me to do some work with C# and ArcObjects. However, I have no real experience with C# (or much ArcObjects except with Java to be honest). Rather than outsource the work, I ...
5
votes
1answer
953 views

ArcGIS 10 Add-ins - How to adjust the size of an add-in toolbar?

I've built an add-in toolbar with two buttons. Works great, but I'd like to make the toolbar a little wider so that the user can see it's full caption. Is there a property I can adjust in the ...
5
votes
0answers
139 views

How can I control what is passed to the OnCreate() method when a command or tool is initialized? [closed]

In an ArcEngine application can I control what is passed to the OnCreate() method when a command or tool is initialized? (I am using a synchronization object because I have both a map and a ...
2
votes
2answers
772 views

Creating layer from in-memory shape data using ArcObjects?

In my current project, a feature layer is created based on shape data generated after some complicated surface analysis procedure. The sequence right now is like [Surface Analysis Algorithm] -> ...
3
votes
1answer
3k views

How to determine if a mouse click falls within a polygon

I have a polygon drawn on top of a layer using the graphicsContainer of the current activeView, then I want to be able to show a custom context menu if the user right clicks INSIDE the polygon. So I ...