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)

4
votes
2answers
93 views

Given a collection of IPoints is there a quick way to get the extent that contains them?

I have a bunch of IPoints. I need an extent which contains all of them. Is there a quick way to do it? I had the idea of converting them to screen coordinates and then figuring it out manually but ...
7
votes
2answers
3k views

Modify raster layer display and symbology properties programmatically with arcpy or ArcObjects

I have over 1500 NITF files that I need to be able to modify the layer display and symbology of programmatically from within ArcMap. I need to set the properties outlined in red below: I've looked ...
1
vote
3answers
2k views

ArcMap Form/Button VB.NET MxDocument hook

---UPDATE--- see below I have a scaling raster tool that I'm attempting to migrate from ArcGIS 9.3.1 VBA to VB.NET (Visual Studio 2010). I have a BaseTool that is used to put two graphic points ...
5
votes
2answers
757 views

Identify features

I am new to arcgis.I am building a custom desktop GIS application using arcgis engine 9.3.1 .I want to make a custom identify tool and add it to toolbar control.Any example or code will be helpfull. ...
3
votes
1answer
675 views

Can ArcGIS Desktop 10 Add-in Use IronPython?

Coming from the same background as the original poster in this thread, I wonder if anyone has had any success creating an Arc10 Add-In using IronPython. I have been able to access ArcObjects via ...
1
vote
1answer
304 views

How do I control the ZOrder of annotation classes in a geodatabase annotation feature class?

Let's say I have an annotation feature class with three annotation classes--anno1, anno2, and anno3--and I want to have anno1 on top, anno2 in the middle, and anno3 on the bottom. Can I and where do ...
3
votes
1answer
2k views

How do I programmatically create non-feature-linked, simple line callout annotation and set the anchor point?

Vitals: ArcGIS-ArcView 10.0, Python 2.6.5, PythonWin, comtypes I'll start with my main questions: How, using ArcObjects, do I go about creating non-feature-linked geodatabase annotation features ...
1
vote
1answer
291 views

Getting Basic Information about ArcGIS Map Service With IGxDialog

I am having a helluva time trying to get some basic information (server URL) about an ArcGIS Map Service using the basic IGxDialog. So far, I am able to pop open the IGxDialog, and allow the user to ...
5
votes
4answers
357 views

Can I store an ArcObject inside a BLOB or XML field?

I'm having this crazy idea here...Is it possible to store an ESRI object inside a blob field inside a geodatabase? If not, perhaps a serialized XML representation? I'm thinking about storing ...
1
vote
1answer
552 views

Adding an AddIns.Button to an Add-In Menu

I know the title sounds unwieldy but as I am beginning convert an existing COM interface to Add-Ins, I am having trouble adding a button to a root menu. I have an AddIn.Button that is used both as a ...
5
votes
2answers
631 views

How to identify polylines with multiple end/starting points?

I'm looking for a way to programmatically identify polyline features which do not represent a 'simple' line from A to B but instead have several starting and/or end points. These are called complex ...
-1
votes
3answers
731 views

ArcObjects conform to .NET standards Error

So, I'm following the "Walkthrough: Migrating VB6 to VB.NET for ArcGIS 10" to convert my VB code to .NET (using Visual Studio 2010), and I'm running into this error, "NullReferenceException was ...
2
votes
1answer
637 views

Walkthrough: Add-In Command Bars root menu

I am wanting to create a new ArcMap Add-In project with just a custom root menu. According to the walkthrough, I can access the Add-In Command Bars (which has the Menu element) by adding a new item to ...
0
votes
1answer
590 views

ArcObjects: How to make non-feature-linked annotation features with a simple line callout that remains functional?

I would like to make simple line callout annotation that is not feature-linked but remains functional when it is manually moved, i.e. the anchor point remains on the feature while the text moves. I ...
0
votes
0answers
332 views

Adding a polygon in ArcGlobe via GraphicsContainer.AddElement

I'm trying to add some data to an ArcGlobe; however, it's not showing up and I'm wondering what the issue is. I am doing the following IGeometry geometry; Ipolygon polygon = myPolygon; ...
27
votes
4answers
3k views

Performance of ArcGISScripting and large spatial data sets

I am currently writing a python script using the arcgisscripting module to process a reasonably large data set (~10,000 records in total) normalised over a small number of tables, 8 in total. The ...
2
votes
2answers
549 views

From a script tool using ArcPy, can I store a point object in a BLOB field and retrieve that point later?

I am trying to write an ArcPy script tool that will store a point object in a BLOB field that I have created. I don't know if that is even possible. If it is, how do I do it, and how can I then ...
6
votes
2answers
743 views

Problems when trying to Undo edit operations in ArcGIS

I'm trying to programatically stop/abort/undo an edit operation inside a ArcSDE environment. My environment is currently Oracle, ArcSDE 9.3.1 and in our custom code (I inherited a large ugly portion ...
1
vote
1answer
299 views

Can I listen to the ICommandBar or ICommand OnClick event?

I have an ArcMap extension and I'm listening to the IEditEvents. When the OnChangeFeature, OnCreateFeature or OnDeleteFeature event is called, I want to know if it came from the "merge(Editor_Merge)" ...
1
vote
3answers
2k views

Running EsriRegAsm on Windows 7 without running as Administrator?

Even though I'm logged in as a user with admin privs, Windows 7 still won't let me register with EsriRegAsm.exe. I need to explicitly run as Administrator. Is there some way to configure a machine ...
1
vote
1answer
403 views

How to collect the graphics element drawn on a graphics layer?

The graphics element may consist of point, circles, polygon, free hand line drawing or marker symbols. I m using arcobjects.
0
votes
2answers
237 views

Can i change the color/font of map tool tip through arc objects for desktop application?

I want to have custom format of tooltip of features on axmapcontrol.
3
votes
1answer
263 views

Force ArcCatalog to refresh TreeView and View after programmatically creating a table

I'm programmatically creating a table in a geodatabase and am trying to force ArcCatalog to refresh the display to show the new table. I've tried the following which does not work: Dim gxApp As ...
4
votes
4answers
1k views

Exploring ArcObjects through C# or VB from Python background

While I understand that this may be off topic to an extent, I am in a bit of a bind and could use some help directing my thought process and research. I have little programming background aside ...
4
votes
2answers
1k views

Get Database Table Name From Layer Name in ArcObjects

I am using ArcObjects v10.0 with a SQL Server 2008 database. Given the name of a Layer, is there a way for me to extract the corresponding name of the database table that represents that Layer? The ...
3
votes
1answer
679 views

Deploying Projects ESRI.ArcGIS.ADF vs ESRI.ArcGIS.ADF.Local

I have a project which implements BaseTool and BaseToolbar. For those of you who don't know already, the name of the dll containing these base classes has changed from ESRI.ArcGIS.ADF to ...
3
votes
2answers
200 views

How can I implement Persistance in a Layer Extension?

Last time I checked, arcgis doesn't honor IPersistVariant in layer extensions. Rather advanced code has been provided here showing how to implement IPersistStream. Is there something simpler?
1
vote
1answer
272 views

How to work with locators in ArcGIS 10.0

I wrote my locator class which grab features from my web service. I picked it up in the ArcMap and now I can perform a search in the geocoding toolbar. The suprise for me is the way results of ...
3
votes
1answer
254 views

IFeatureClassWrite and ITableWrite doubt

I'm looking at these specific interfaces ITableWrite and IFeatureClassWrite. I have a need to store some features (mostly a custom log) and I can't having them triggering my editor events (OnCreate, ...
1
vote
1answer
103 views

Configure SoundEx in ArcEngine

Is there a way to configure SoundEx properties in ArcEngine? This query: "100 Fairvew Rd returns "100 Fairview Rd" But this query: "100 Farview Rd" returns no results Is there a way to make the ...
6
votes
1answer
1k views

ArcObjects C#: Create Random Points fails with ERROR 999999: Error executing function

I am having trouble running some ArcObjects C# code that calls create random points. I would not be doing this in ArcObjects, but I am suffering with the same issue using Arcpy as seen here: ...
4
votes
3answers
2k views

Delete a feature data set in SDE 10 programmatically

Is there a way to delete a feature data set and all of its feature classes programmatically either by using custom code or pre-existing command line tools? There is a tool provided by SDE called ...
2
votes
0answers
191 views

ArcGIS Desktop 10 - MyBase.UpdateBitmap()

I am changing one icon on my extension toggle toolbar in runtime using: MyBase.UpdateBitmap(New Bitmap(Me.GetType(), bitmapResourceName)) This works fine but I get a border/highlight around my ...
2
votes
1answer
536 views

How to launch a tool when my button has been pressed

I use ArcGIS 10.0 and ArcGIS .net SDK. I created AddIn project which contains Tool: <Tool id="AddSearchLocationPoint" class="AddSearchLocationPoint" category="Add-In Controls" ...
2
votes
2answers
589 views

how can i symbolyze a layer with graduated colors

can any one tell me how to use isimplerender interface to symbolize a polygon layer with graduated colors according to a value of a field such as "population" ...
2
votes
3answers
794 views

extract lat/long from screen when using British National Grid projection

Using ArcGIS 10, is it possible to click anywhere on the map (projected to British National Grid), but return the coordinates in WGS84 lat long? Alternatively, when will Streetview work with OS ...
6
votes
6answers
5k views

How do I activate a custom ITool from a form without having to add it to a toolbar? (ArcGIS 10 add-in development)

I'm working on an add-in for ArcMap 10.0 that adds a toolbar to ArcMap. One command (OpenModelessDialogCommand) button on that toolbar opens a modeless WinForms dialog, from which a tool (MyTool) can ...
3
votes
2answers
1k views

Finding fields in Feature

I have a program that has to loop throug a very large amount of features. I have created a wrapper for the feature. This made me think: How expensive is the Fields.FindField method? Would it be faster ...
1
vote
0answers
262 views

topology rules for structuring topology data to get line feature as topoparent in topology graph

i Created topology graph of a polygon feature and i copied geometry of topology edges into line feature class,and topology nodes into point feature class i created topology layer containing ...
2
votes
1answer
362 views

Using IDocumentEvents_Event from a .NET 4 assembly within ArcMap

Are there a known issues when working with events from .NET 4 COM assemblies within ArcMap? For example, when using IDocumentEvents_Event from a .NET 4 assembly in ArcObjects, the event appears to ...
5
votes
1answer
248 views

Stubbing IFeature for unittests

I am trying to stub an IFeature with RhinoMocks, but I am having so much trouble doing it. Does anyone have experience with it?
3
votes
2answers
851 views

Using Arc Objects to collapse a layer in the map TOC

I have the following snippit of code to perform this. However, it doesn't do anything to the layer in the TOC on the map that gets generated from this code. When the layer is created and the map ...
2
votes
1answer
1k views

IFeatureWorkspace.CreateFeatureClass() error

I am trying to read a csv file straight into a set of new feature classes within a new file geodatabase, but I am getting the following stack trace when it fails: Attempted to read or write ...
4
votes
1answer
757 views

Checkout Spatial Analyst extention, ArcObjects code

Update After investigating more closely the CODE 2 sample below (at the end of this post), it does check out spatial analyst (sa) extension, however it does not reflect it in the Tools>Extensions ...
5
votes
1answer
821 views

How to create adjacency matrix of topology graph of arc map for shortest path?

I have created a topology graph of a polygon feature and I want to find the individual FIDS of the lines of the polygon. I want to construct an adjacency matrix to create the shortest path. How can I ...
1
vote
1answer
460 views

Get geometry of a Line Callout

How can I extract the geometry of a line callout and the border of an annotation featureclass in ArcGIS desktop. I want to transfert those to a separate featureclass. I'm able to get the Anchor point ...
8
votes
1answer
2k views

Editing a shapefile in ESRI ArcMap (programmatically)?

Is this something that can be done? For instance if I created an overlay on a map and saved it as a shape file, I want to go and edit this (pre-existing file.) overlay...Either add points/remove ...
3
votes
1answer
524 views

save IGeometry to disk as a Layer file

How can I save an IGeometry to disk as a Layer file? ArcEngine 10, C#, VS2010 Edit 1: With Jason Scheirer 's suggestion I managed to convert a point into a shapefile - and I'll post the code here ...
1
vote
1answer
426 views

Getting ISpatialReference from ArcObject mapcontrol in VBA

I am working with ArcObjects and ESRI for the first time, and I am trying to do what is probably a simple task. I have a map control in VBA that is associated with a mxd. I have a table with XY ...
3
votes
1answer
583 views

Problem setting IActiveView extent

I'm having a problem when setting the IactivewViews extent. I have done it the same way on other places and it does work. In here, it just throws me a LoaderLockException. // OLD CODE ...