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
1answer
351 views

How can I pass a WorkspaceName to another thread for opening?

My winforms app gets an IWorkspaceName from an IDatasetName via the GxObject selected in a GxDialog. I want to pass it across to a worker thread for opening. I know how to write multithreaded ...
12
votes
6answers
3k views

ArcObjects Resources

What are the best books/web sites for C# development with ArcObjects? The ArcGIS Resource Center is very helpful, but I am trying to find sources with more examples. Thanks
5
votes
1answer
618 views

Why is SymbologyControl missing symbols in XP?

I'm using the the code form SymbolForm.vb in this sample: Change layer rendering using the SymbologyControl It's working great on my developer machine with Windows 7, 64bit. But when I deploy the ...
2
votes
1answer
289 views

Lock overlay on Custom Geoprocessing Tools

How do you get rid of the "lock" icon overlay on a custom geoprocessing tool in ArcToolbox? This seems to appear even with the ESRI Sample Projects.
7
votes
1answer
925 views

How do I get the current Undo and Redo item in ArcMap Operation Stack?

I just posted this on ESRI forum and found this link so I am trying it here too: Research ArcGIS Resource Center document - How to work with the operation stack: ...
2
votes
2answers
256 views

Toolbox tool - IGPParameterEdit3 to browse for file

I'm trying to implement a custom Toolbox tool in ArcGIS, and am trying to setup a custom GPParameter that will take a file type with a specific extension. I know that DEFileType is available and will ...
2
votes
2answers
554 views

.NET console application running super slow all of the sudden

I have a standalone .NET console application that (through ArcObjects) processes DWG files, extract coordinates, and pushes them to SQL Server. It's smoking fast and can process a DWG in a matter of ...
5
votes
3answers
2k views

How to create floating-only window in ArcMap?

I'm looking for a way to create a floating window in ArcMap. To give an example just look at the window of the Identify tool. Floating means that it stays in front of the map document at all times ...
3
votes
1answer
143 views

What should I pass to ILayerFactory.Create for a WMSLayerFactory?

I was expecting ILayerFactory.CanCreate to return true for an IWMSLayerDescription. I recursively traverse all the descriptions in a WMS connection but CanCreate always returns false.
2
votes
1answer
2k views

With Geographic Coordinate systems, why does my spatial query select all features from a feature layer?

Background: Add-In for ArcGIS 10 Desktop via ArcObjects for .NET The below code returns ALL features for the layer when the map is specified with any Geographic Coordinate System. However, the below ...
5
votes
6answers
1k views

Access Violation in ArcObject Multi-threaded Application

I think I have figured it out. The most probable cause of exception in Multithreaded application may be: When both threads trying to open same featureclass it breaks: coz one of the thread is ...
1
vote
2answers
1k views

How do you update the ArcMap 10 Statusbar from an AddIn?

I'm using this statement in an add in to update the first pane of the ArcMap statusbar: ArcMap.Application.StatusBar.set_Message(0, message); When the method is called, no exceptions are raised. In ...
2
votes
1answer
799 views

How to let user only rearrange layers in a group layer?

We have a stand-alone application were we let the users add local shape and raster layers. We would like to add functionality so that the user can rearrange the added layers within a specific group ...
4
votes
1answer
186 views

Multiple layer line selection based on multiple layer point, then calculate the length of lines

I need to measure water network from a source to multiple meters. Source point is connected to water main line, then water main line is connected to service line, service line is connected to meters. ...
3
votes
0answers
493 views

How to return FeatureLayer from gp service(using custom function tool) (.NET)?

My basic problem is that I have a custom function tool HLZCalulation that I created. It takes in a string to a file gdb , opens it, does some calculations, and then returns a featurelayer with the ...
2
votes
1answer
1k views

How to show attributes of a new feature in Attribute table area when using IEditor3 and IEditTemplate, ArcGIS 10

ArcObjects SDK for .NET and ArcGIS 10 Desktop Quick snippet to set the stage: IEditor3 editor.StartOperation(); IFeature newFeature; // fill out newFeature.Shape, etc. newFeature.Store(); ...
2
votes
2answers
499 views

What issues exist with using log4net as a logging framework for ArcGIS Desktop?

While updating some ArcObjects projects to ArcGIS 10, I realized that I don't have a comprehensive logging strategy. Sometimes it's log4net. Sometimes it's System Trace/Debug. Sometimes custom ...
3
votes
2answers
916 views

Accessing ArcGIS layers from seperate thread

I've got an ArcEngine application, referencing a MXD for it's data (and map display). I'm running a query against all layers, so can take quite some time. I would normally run the query in a ...
4
votes
1answer
2k views

How can I import layer symbology from another layer programmaticaly with ArcObjects & VBA?

I would like to be able to develop a procedure that runs through all layers in the TOC and if the layer (name) exists in a specific folder where I am storing layer files with complex symbology I would ...
2
votes
2answers
475 views

How to get schema locks in oracle spatial direct connect mode?

I have a geodatabase having relation classes, domains ,subtypes etc. When I am trying to open that featureclass in a multithreaded environment it often fails with error like "Attempting to read ...
2
votes
2answers
425 views

Edits in SDE not showing up in AGS GeoData Service

I've got an ArcGIS Server GeoData service against an SDE MSSql database. When changes are made to the source data, the edits don't appear to show up in the GeoData service. If I restart the ...
4
votes
1answer
1k views

How to create images from symbol in ArcObjects?

I'm trying to create images from symbols so that I can create a custom symbol dialog. Found this sample code on the ESRI forums and it workes great on almost all symbols. I'm having problems with a ...
4
votes
4answers
4k views

How do I remove Schema Locks from a File GeoDatabase in Java in ArcGis 9.3?

I have an application written in Java which uses ArcObjects 9.3. The application accesses a file GeoDatabase. The application produces output in the GeoDatabase that will be accessed by ArcMap. The ...
2
votes
1answer
491 views

Is there any way to perform spatial filter on multiple layers together?

I have a scenario where a featureclass[Child Version] is queried for some overlapping features on [SDE.DEFAULT] Version using ISpatialFilter, After getting few result, these features are looped and ...
1
vote
1answer
259 views

Speed up plug-in datasource in ArcObjects

Are there any tricks involved in getting plug-in data sources to run at higher speeds, similar to the built in types? I've noticed that a simple plugin-data source will run many times slower than the ...
7
votes
1answer
954 views

Multithreading with ArcObjects

I am getting some weird errors while trying to implement multithreading with ArcObjects. I am trying following things on per thread basis: 1) Open SDE Workspace 2) Open Feature class 3) Perform ...
2
votes
3answers
982 views

How do you use Spatial Analyst Geoprocessing functions in ArcObjects in ArcGIS 10?

I'm trying to run some geoprocessing functions in ArcObjects. Some of the tools I want to use are part of the spatial analyst extension. In 9.3.1 it was fairly straightforward to follow the ...
2
votes
1answer
385 views

What alternatives exist for EOBrowser.exe & LibraryLocator.exe for ArcGIS Desktop 10?

Original Question: Where are the EOBrowser.exe & LibraryLocator.exe tools in the ArcGIS Desktop 10 > Developer Kit? I went to use LibraryLocator.exe and couldn't find it now that I'm on ...
1
vote
1answer
1k views

How to work with .lyr files in ArcGIS Engine

I want to be able to load .lyr files created in ArcMap and ArcGIS Engine and save any updates in symbology in ArcGIS Engine back to the .lyr file. What APIs should I use the only method I found so ...
2
votes
1answer
279 views

Is it possible to open ModelBuilder SCREEN from .NET base command class?

I simply want to open the custom model's SCREEN (ModelBuilder) from .NET.
8
votes
2answers
1k views

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 ...
5
votes
2answers
2k views

How to catch when scale is changed in ArcGIS?

We want to update a combobox so that it always shows the correct scale. If the user zooms-in, out or resizes the control hosting the map. What is the best event or events to catch and use in ArcGIS to ...
4
votes
1answer
711 views

How to catch when layers visibility change in ArcGIS?

I'm trying to regenerate a Legend in a Pagelayout whenever the layers visibility are changed in the TocControl. What is the best way to catch when a layer visibility is changed?
2
votes
2answers
470 views

Big IRowBuffer problem

I have a small software that connects to a database (SQLServer) reads a few values and transfers them to a SDE Oracle instance (11g). The problem is: I have over half million records that I need to ...
5
votes
1answer
790 views

Are there any good resources on WFS support in ArcGIS?

Are there any good resources on WFS support in ArcGIS? The only documents I found so far are these: How_to_work_with_WFS_using_ArcGIS_Desktop and Consommer des services/données WFS dans ArcGIS 9.2 ...
3
votes
3answers
1k views

In a ESRI file geodatabase schema lock, what does the number after the username stand for?

I'm using the ISchemaLock interface to return schemalock info on featureclasses in a file geodatabase: // If schemalock count is >=2, then we have a problem, something else has a lock on the FC ...
1
vote
0answers
162 views

AddData tool stop working after Interoperability connection has been used?

Bug in ArcGIS Engine? Has anyone seen this behavior? We get an exception from our ArcGIS Engine test projects after we had been testing the Interoperability connection in ArcEditor. We had to enable ...
1
vote
3answers
2k views

How do I make an icon with some text to popup when I hover over it and for it not to be slow?

I would like to make an icon on the screen and have hover popup text. Ideally the text will be black with a white background. Right now my icon is a bitmap created like this GraphicTrackerClass ...
1
vote
1answer
399 views

Load only one state from a MXD file in arcobjects

Right now I load "StreetMap North America.mxd" from ESRI Data Maps 10 for use with arcobjects / arcengine 10 in Visual Studio with C#. Since it's slow I am looking for a way to turn off all data ...
2
votes
1answer
578 views

IElement added to IGraphicsContainer ignores zOrder

I display a balloon callout after casting a axMapControl.Map to a IActiveView and doing this: pGraphicsContainer = activeView as IGraphicsContainer; pGraphicsContainer.AddElement(pElement, zOrder); ...
6
votes
2answers
947 views

How to convert GML to features in ArcObjects?

How to convert GML to features and features to GML i ArcObjects? We are building an application where we want to communicate with a service with GML but natively in our stand-alone application we ...
1
vote
1answer
531 views

How to create a pop-up box if a condition is true in a table? (ArcMap 10)

I'm creating a script that will grab layout data from a table for the current Building Number of the current building my map series is on. It works fine, but I need it to pop up a window if multiple ...
1
vote
1answer
171 views

Find out if a point exists in an irregular shaped ILayer

Assuming I have an layer from a shape file which is not shaped like a rectangle how would I determine if a point lies within this layer?
1
vote
4answers
521 views

How to hide map to print only the legend on a PageLayout?

If I'm printing a Pagelayout, is there any API for hiding the MapFrame or stop it from getting draw on the printout? I would like to only print the Legend on the paper.
2
votes
1answer
933 views

What are the main steps when building a balloon callout using ArcObjects in arcengine 10 in VS2010 with C#

I'm looking for a good BalloonCallout example / tutorial / sample. edit: Using C# with ArcEngine 10 edit #2: What are the main steps when building a balloon callout using ArcObjects in arcengine ...
0
votes
2answers
250 views

Ensure BaseDynamicLayer is always the most visible layer

If I add a shape file to my map and then a dynamic custom layer inherited from a BaseDynamicLayer, then the shape file is lower on the viewing stack then my custom layer, and it displays correctly. ...
6
votes
2answers
951 views

Does anyone know a function to determine if a Point exists within a polygon?

Does anyone know a function to determine if a Point exists within a polygon? Edit: I'm using C# with ArcEngine10.
0
votes
3answers
184 views

Anyone have any ideas why this tiny code snippet throws a COM exception?

System.Object obj = Activator.CreateInstance(Type.GetTypeFromProgID("esriLocation.LocatorManager")); ILocatorManager2 locatorManager2 = obj as ILocatorManager2; ILocatorWorkspace locatorWorkspace = ...
3
votes
3answers
907 views

How to create a Personal Geodatabase

How can I create an Access (.mdb) file containing a personal geodatabase?
1
vote
1answer
436 views

Does anyone know how to get a feature class from a Map?

I have an axMapControl.Map, I am trying to get a featureClass. I want to use this feature class to call create a GeoProcessor IGeoProcessorResult result = GP.Execute(someFeatureClass, null) as ...