Tagged Questions

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)

3
votes
0answers
548 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
562 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
1k views

Accessing ArcGIS layers from separate thread using ArcGIS Engine?

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
497 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
455 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
546 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
273 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
1k 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
1k 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
411 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
297 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
801 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
499 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
829 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
213 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
415 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
663 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
1k 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
585 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
174 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
580 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
1k 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
262 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
1k 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
185 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
941 views

How to create a Personal Geodatabase

How can I create an Access (.mdb) file containing a personal geodatabase?
1
vote
1answer
493 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 ...
5
votes
2answers
1k views

How to filter Legend to show only visible features?

Is it possible to get the legend in a pagelayout to only show patches/swatches for features fall within the visible extent of the Map? The solution needs to work on FeatureLayers and ArcGIS Server ...
0
votes
2answers
409 views

GDB file and USA Base Map.mxd not in the same directory ArcObjects

I am trying to open a address locator in ArcObjects by following this tutorial: ...
1
vote
2answers
931 views

Where can I get UnitedStates.gdb file

I am doing this tutorial http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_geocode_a_single_address/00010000038r000000/ but it requires the following file: ...
3
votes
0answers
2k views

How to set margin on PageLayout in ArcGIS Engine?

When we create a PageLayout from the A4 Landscape template and print the layout on a pinter with A4 Landscape paper we get four pages instead of one. We are using the IPage.PageToPrinterMapping = ...
8
votes
3answers
8k views

How to create a button in Arcmap 10 to run a Python program?

I have a script that I want to run within ArcMap when a button in a toolbar is clicked, and so far I have only been able to make the script into a script tool. I need it to run as a command, not as a ...
6
votes
1answer
471 views

How to get table Name from IObjectClass

I'm using IRelationshipClass.DestinationClass to get an IObjectClass. From here, I want to be able to get the table name, but can only access the AliasName. Any ideas? UPDATE Aughhh, after ...
0
votes
1answer
133 views

BaseCustomLayer draw is not hit

I create an object derived from BaseCustomLayer which draws a polyline. I call Map.addLayer(myBaseCustomLayer) and the function public override void Draw(esriDrawPhase drawPhase, IDisplay Display, ...
1
vote
1answer
100 views

What's the difference between dynamicDisplay and Display?

The overriden function is public override void DrawDynamicLayer(esriDynamicDrawPhase DynamicDrawPhase, IDisplay Display, IDynamicDisplay dynamicDisplay) What's the difference between dynamicDisplay ...
0
votes
1answer
282 views

Cannot run the Arc samples

When I try to compile I get Error 1 Cannot register assembly "C:\Users\Patrick\Desktop\DynamicBiking\CSharp\bin\Debug\DynamicBiking.dll" - access denied. Please make sure you're running the ...
1
vote
2answers
1k views

“Item not found in this collection” when trying to set the Shape on IFeatureBuffer

I'm working on code to open a 3rd party data file and convert it into a collection of features in a custom layer based on FeatureLayer. I have had no issue importing the data itself (nodal data for ...
1
vote
1answer
515 views

Why doesn't my Custom Layer Draw?

I have a Customer layer which inherits BaseCustomLayer. I add it to my MapControl via addLayer. But the function "public override void Draw(esriDrawPhase drawPhase, IDisplay Display, ITrackCancel ...
1
vote
2answers
449 views

DrawPolyLine not drawing completely on the right layer

I zoom into a map, then do a screenDisp.DrawPolyline(polyline); Now the line is in the correct place, but the map that is the background of the polyline object is actually the initial map and not the ...
1
vote
2answers
1k views

unique value symbolize layers from a lookup table

I need to create a large number of Arcmap layer files (v9.3 or 10), perhaps a hundred, from lookup tables. I don't have to set the symbol patch itself, that can be random, but I do need the value and ...
10
votes
2answers
2k views

Issues with geoprocessing with .NET

There are some nice features in ArcToolbox we can use, but for some reason, this is NOT working properly. It doesn't even throw me an error. My software is running inside ArcMap, so no need to ...