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)

2
votes
2answers
325 views

How to get radiobutton checked after pop-out window?

I am trying to migrate my program from ArcMap 10 VBA to ArcObjects VB.net add-in in Visual studio express 2008. I write a ArcGIS addin component tool to draw a geometry, perform a spatial query and ...
1
vote
1answer
76 views

On which TextBox event should I call ICompletionNotify.SetComplete?

I have a IToolControl derived control which contains a c# TextBox. In the IToolControl::OnSetFocus function documentation, it states that you need to call ICompletionNotify::SetComplete() when it's ...
4
votes
1answer
437 views

Programatically take screenshot of map extent in ArcMap 9.3

Is it possible to programatically capture a screenshot of the current map extent (the map area with any active displayed layers) in ArcMap with the ArcObjects .NET SDK?
3
votes
0answers
151 views

Is it possible to add a command to the ArcMap Find dialog context menu?

I think I already know the answer to this... which is "no", but I wrote this up so I'll ask anyways. Is it possible using ArcObjects to extend/customize the ArcMap Find tool/dialog by adding a ...
0
votes
1answer
115 views

Determine what value used in Editor.OnCreateFeature

How can I determine what Value-Layer (not the layer itself, but the different colors for different attributes) was used in ArcGIS CreateFeature Event, when I insert a new feature using the Editor?
1
vote
0answers
41 views

Did not find registered control [closed]

I am using ESRI Arc GIS with C#. I dragged 2 control licence and axMapControl. When I run the program following error occurs. Did not find a registered ActiveX Control in C:\Program Files (x86)\Arc ...
4
votes
2answers
873 views

How do I publish a custom .NET GP Tool as a GP Service on ArcGIS Server 10.1?

I have a GP Tool that I am able to publish as a GP service at 10.0. I recompiled the DLL for 10.1 and have followed the steps in the Deploying custom .NET and C++ tools page of the 10.1 help doc. ...
1
vote
1answer
499 views

Custom C# tool populate field combobox parameter from layer parameter

I'm creating a custom tool for arcmap toolbox where user select FeatureLayer in one combobox, and in next combobox user can select a field from selected FeatureLayer. FeatureLayer combobox fills ...
2
votes
2answers
287 views

IFeatureIndex2.Index Performance Issues ArcObjects

I have a large number of polygon features in a personal geodatabase featureclass. I would like to find the nearest polygon for several points inside an area of interest(the red area in figure). I ...
1
vote
0answers
123 views

How to show size/length of sketch while creating new feature?

While adding a new feature to a feature layer I like to show the size (area)/length of the sketch so that the user has a better feedback while placing the vertexes. So I hook up MapControl's ...
1
vote
0answers
153 views

Sending coordinates of features of any polygon featureclass to a table

I am trying to store x-coordinates and y-coordinates of a polygon feature in a table. But, i am getting an error message: Item not found in this collection. The code is like this: Do pFeature = ...
2
votes
2answers
366 views

How to deploy custom .dll commands in ArcMap 9.3.2?

In ArcMAp 9.3.2, I am trying to bring in an acreage calculator .dll buttom that I have used on previous versions. The .dll doesn't show up on the list of available custom addons. Is this a ...
3
votes
1answer
186 views

ArcObjects/VBA to python Network edge to junction lookup IEdgeFeature equivalent in arcpy

In an effort to migrate a script that transfers attributes from a geometric network to a feature class (on a given network edge segment, what are the up and downstream junctions?) I would like to ...
6
votes
1answer
176 views

How is IValidate.GetInvalidRules supposed to work?

we are currently trying to programmatically validate features against geodatabase-defined rules. This includes attribute rules as well as connectivity and relationship rules. We have consulted the ...
0
votes
0answers
168 views

How to get x and y coordinate values of an annotational featureclass

I am able to get the x and y coordinate values from point, polyline, polygon and multipoint type featureclasses. However, I am unable to export x and y coordinate values of an annotational ...
5
votes
2answers
1k views

Detect Table of Contents Changes in ArcMap using ArcObjects

What is the preferred and/or most efficient method for detecting a change in the table of contents in ArcMap using ArcObjects? My current implementation relies on a dictionary with the names and ...
0
votes
0answers
141 views

Can i assign a list or array to IRowBuffer Row without Row.set_Value()?

Is it possible to assign a list or array to IRowBuffer Row? I have something like the following: I have a fields (list) with values and i have to fill a Row with that values. public void ...
5
votes
1answer
807 views

Refresh Currently Open ArcMap Attribute Table using ArcObjects

I have written an ArcMap Addin (ArcMap 10.0) that allows a user to perform a join between an in-memory table and a feature class (feature layer) added to the TOC. I want the attribute table of the ...
7
votes
1answer
2k views

Creating ArcGIS add-ins for both 10.0 and 10.1

Has anyone tried to deploy the ArcMap add-in for both ArcGIS 10.0 and ArcGIS 10.1? There is a target version parameter in the add-in config XML file that needs to be specified. After upgrading the ...
2
votes
0answers
260 views

How can I free esriControls.ControlsSelectTool? Or is it leaking memory?

In my application I have isues with unfreed memory. After several tries I broke down the problem to a simplified WPF project. It opens a simple System.Windows.Window with a Button, which starts the ...
1
vote
1answer
249 views

Arcobjects in Python, inherit from Abstract Class

As for question, I am trying to adjust Grid Map labels via Arcobjects with Python. For now I do have: from comtypes.client import CreateObject, GetModule import arcpy def CType(obj, interface): ...
1
vote
1answer
3k views

How do I start to debug COM error “HRESULT E_FAIL” for TableToGeodatabase geoprocessing tool?

I've got some code that creates a table using OLEDB connections to an access table. I want to convert this table to a Geodatabase table, so I ask a question How do I convert an access table to a ...
1
vote
1answer
307 views

Dealing with overlapping grid (and graticule) labels using ArcGIS Desktop?

I do have 3 grids made by Grids menu in data frame properties. I do need them to display in certain layout and also to behave accordingly to couple of rules (overlapping issues), so I can automate my ...
2
votes
1answer
567 views

How to change symbol and legend of a feature class in ArcMap?

I want to change the symbol of features and legend programmatically. When I use this code Dim pSymbolSelector As ISymbolSelector Set pSymbolSelector = New SymbolSelector Dim pMarker As ...
6
votes
2answers
693 views

IFeatureClass.Search throws error “0x80041599 The number of points is less than required for feature”

I am creating a buffered geometry around a point feature in order to search for other nearby features. I use the TopologicalOperator to create my buffered geometry. I am attempting to search a feature ...
3
votes
2answers
612 views

Using ArcObjects, how to convert an Access table into a proper geodatabase table?

I have inherited an ArcGIS application that creates a number of access database tables. I'd like to use ArcObjects to convert them to proper geodatabase tables, which I understand to mean simply ...
2
votes
3answers
593 views

How to change Map Scale programmaticaly in C# WinForm Project

I have created form with axMapControl and comboBox with values of possible scales (e.g. 1:1 000 000, 1: 500 000, etc). How can I change current map scale programmaticaly by using value from ...
3
votes
2answers
526 views

What is the relationship between SDSFIE and C/JMTK?

C/JMTK = Commercial Joint Mapping Toolkit = http://www.cjmtk.com/ SDSFIE = Spatial Data Standard for Facilities, Infrastructure & Environment = http://www.sdsfie.org I've been working on a ...
6
votes
2answers
1k views

How to find all ICommandItem instances of a custom button command in an ArcMap add-in?

I have an ArcMap 10.0 add-in in which I have a button that the user can place (using the Customize dialog in ArcMap) on any toolbar including user-created toolbars as well as standard ones or even 3rd ...
3
votes
1answer
576 views

Is it possible to create a new ArcGIS toolbar with new tools using Python?

I have written a number of fairly-simple python functions using arcpy which help a user significantly when performing a certain workflow using various tools (both ArcGIS toolbox tools and external ...
3
votes
2answers
1k views

Adding ArcMap standard toolbar to the form in C# .NET WinForms project

I have Windows Forms project with ArcObjects framework. I have already added axMapControl1 to the form. The question is How can I add a standard toolbar to the form and link it with axMapControl1 ? ...
6
votes
1answer
390 views

Algorithm to fill the gaps adjacent to parcels

I would like to find a way to fill the gaps between the road and its surrounding parcels, like described in picture below: I have different parcels like A and B , i want to fill the gaps by adding ...
1
vote
1answer
98 views

Is there anything obviously wrong with this hit test code?

I want to know if the IPoint of the mouse position is hitting an IPolyline, I wrote this code, and was optimistic that it would work, but it always returns false. IPolyline poly1 = pc1 as ...
3
votes
2answers
2k views

Find intersection points of two polyline features

I'm currently working with street intersections trying to find point(or points) where 2 given streets intersect(!disjoin). Streets are all Polyline features, and I have to work with 2 features at ...
5
votes
3answers
5k views

Remove lock on feature class

When i try to delete a feature class , after or during the use of an Arcgis engine app which uses the same feature class i got an error concerning the lock , so i can't get ride of this lock until i ...
2
votes
1answer
1k views

Building a Polygon from an array of points in Arcobjects and C#

I have seen this code in Arcpy which is used to create a Polygon from a string of Points(X , Y).Can you please let me know how I can us something like this which can generate polygon from an array of ...
3
votes
1answer
100 views

Where are Esri LasDatasetBuilder examples?

Does anyone know of any working examples leveraging the new ESRI ArcGIS 10.1 Lidar classes i.e LasDataSet or LasBuilder class? I've looked around on ...
2
votes
2answers
776 views

How to get all OIDs from a table?

I have table which i need to get all the OID's from it. I tried this code : List<int> OIDList = new List<int>(); IQueryFilter queryFilter = new QueryFilterClass(); queryFilter.SubFields = ...
0
votes
1answer
398 views

Shapefile Arribute Table to Datagridview

Can you please let me know how to display a shapefile attribute table in C# DataGridView? Thanks
1
vote
1answer
493 views

ArcObjects 10.1

just updated to 10.1 and I'm having issues moving from 10.1. I get the errors with my ADF reference when trying to create custom tool bars examples: 'BaseToolbar' is ambiguous in the namespace ...
2
votes
2answers
411 views

Why does get_datasets not return all the datasets in the database?

I have code that gets all the Feature Datasets in a database in order to loop through them and find the one I want. This code returns 2 datasets of 24 in an SDE 9.2 database, but 3 datasets of 24 in a ...
6
votes
2answers
2k views

ArcObjects: How to insert data into a table?

I have a table in ArcCatalog named WorkOrderAss. This table contains 3 columns: (OBJECTID, FeatureName, Name). I want to insert data to this table from the code behind in C#. Any help would be ...
2
votes
2answers
362 views

Adding a new field to table in ArcCatalog

I have a command button in ArcMap, this command button working to add a new field to a specific table in ArcCatalog. e.g. i have a table contains many fields like ObjectID , FeatureName, ... i want ...
2
votes
1answer
481 views

Using IBufferConstruction to create single and multiple buffers (VBA and ArcObjects)

I need a bit of help with using the iBufferContruction interface, my overall goal is that the user clicks on the map, a graphic is created and then buffered,at multiple distances and then stored in a ...
2
votes
1answer
260 views

Direct DBMS sql queries and ArcSDE geodatabase

i want to make updates from Arcobjects on several tables stored on a ArcSDE 10.1 versionned geodatabase based on Postgresql 9.0.5 , none of these update require spatial data , and making these updates ...
2
votes
0answers
311 views

ArcObjects : How to change layers connection properties without losing joins

I'm using arcObjects 9.2.6 java librairies to change connection/path properties within a java prog. This prog aims to change path and connection properties for all layers of an mxd file. It works well ...
1
vote
1answer
1k views

How do I add TIFF files to one layer/raster catalog?

We have several TIFF images (already tagged with position information) we want to load as a single layer into the map. It's the first time I dig into this raster/topology thing, but at least I managed ...
3
votes
1answer
326 views

Alternatives to IPersistVariant in ArcMap add-in's?

I have migrated an classic COM ArcMap Extension of mine to an add-in. I have tried the new persistence approach of add-in's but I cannot serialize my custom objects through the XMLSerializer. I get ...
1
vote
0answers
176 views

ArcObjects: Scale text not changing map units from miles to feet [closed]

I am adding scale text to a page layout. The code works, but the map units on the text scale still appear as miles and not feet as coded. Here is the code snippet to add scale text.... ...
2
votes
1answer
104 views

What are the implications of changing the AutoCommitInterval on file geodatabase inserts?

All, I was wondering if anyone has any advice or "tales from the dark side" about changing the AutoCommitInterval property of the ITransactionsOptions interface? It's the sort of thing I generally ...