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

How to unselect elements in PageLayoutControl (using C#)

I have a PagelayoutControl with the name: PageControl. And I added a text element into MapFrame (FocusMap) of the PagelayoutControl. If the text element and MapFrame are selected (by using the button "...
2
votes
1answer
295 views

Error in Symbol Selector Sample for ArcGIS Engine?

I am stuck at running this ArcGIS Engine Sample code, when I get: COM EXCEPTION WAS UNHANDLED BY THE USER I'm looking for any working example of Symbol Selector. I'm working on XP SP3, ArcGIS ...
2
votes
4answers
1k views

Why does ITopologicalOperator2 .ConstructUnion produce a somehow invalid polygon?

I try to add a single buffer around the shape of the selected features. So I step through each selected feature and add it's shape to a GeometryBag. With ITopologicalOperator2.ConstructUnion I create ...
2
votes
2answers
665 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 ...
2
votes
2answers
784 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
219 views

Ghosting and Map Functionality Loss in Map View C# Arcobjects

I'm writing a C# add-in and trying to implement a piece where a user can add points to a graphics layer on the map view. The points are drawing, however the map pane has serious ghosting issues and I ...
2
votes
1answer
514 views

Arcgis IPolygon(System.__comObject) and ILine2 (Esri.Arcgis.LineClass) intersection

Currently i am developing a Server Object Extension. On my project i am creating a new line class with LineClass myLine = new LineClass(); and getting a polygon from client as JsonObject than ...
2
votes
1answer
421 views

Query against FeatureClass for layer using ArcObjects?

This is some code that I am using to try to get a working IFeatureLayer from a subset of data from a database table. The fourth line containing "fcWkspc.OpenFeatureQuery" throws and error complaining ...
2
votes
2answers
1k views

Converting multipart polygon to singlepart in ArcObjects with C#? [duplicate]

I have a multipart feature and I need to convert it to a singlepart feature. Couldn't find any code sample. I wonder if i could get some help from you? I'm working with ArcGIS 10 and c#.
2
votes
2answers
1k views

ArcObjects Runtime Binding 10.0

I installed the ArcOjbects SDK (if I remember correctly) and in visual studio I have referenced the needed assemblies. Namely ESRI.ArcGIS.Geoprocessor. When in stepping through in debug mode I hit ...
2
votes
1answer
3k views

Creating a featureclass in memory and adding to the map error

I have the code below, which is supposed to create a new featureclass in memory then add the FC to the map, but I get a Automation error when I use the createfeatureclass method Set pFC = pFeatWS....
2
votes
1answer
289 views

How to use ITransform2D on dimension features (arcobjects)

I am trying to move a dimension feature inside a personal geodatabase using ArcObjects VBA. I was able to move other types of features using similar code as shown below. However it is not working for ...
2
votes
2answers
1k views

Adding Button as Icon and Text to toolbar in ArcMap

How do you add a BaseCommand to a custom BaseToolbar as an icon and text. This is not an Add-In, it's the old way of doing buttons and toolbars even though it's version 10 of ArcMap. Cheers
2
votes
1answer
236 views

ArcMap 10 Commands

Is there an updated ArcMap Commands site for version 10? If so, where are they located? I could not find it here: ArcObjects SDK 10 Microsoft .NET Framework Thanks
2
votes
1answer
1k views

Convert Features to Graphics

I want to convert selected features to graphics and keep the featuere symbology. I was thinking I could just call the UID command below, however it seems to not be working? Dim pUID As New UID ...
2
votes
2answers
602 views

Getting map document name/path from published map service using ArcPy/ArcObjects?

I have several map services published to ArcGIS Server 10.0 SP2 and I have layer metadata files exported to HTML that I want to link to the layers in the map service. Currently the metadata HTML ...
2
votes
2answers
106 views

Bringing Feature Selection To Top using ArcObjects?

I'm using IFeatureSelection.SelectFeatures() to select parcel polygons in my parcel layer. It works fine until I create a ClassBreaksRenderer to apply a color ramp based on a field in the feature. ...
2
votes
1answer
321 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 ...
2
votes
1answer
277 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 ...
2
votes
2answers
152 views

Shrinking a line to fit within a raster surface?

I have a single polyline feature that extends beyond my raster surface. I would like to shrink this line so that the end-points are within the last pixel at the edges of the raster. I have tried ...
2
votes
1answer
230 views

How to display IGeometry?

I've done an intersection with the ITopologicalOperator6 interface, and I now have an IGeometry with the result. How to draw this in a graphics layer on the map? I want to see what was intersected (...
2
votes
1answer
176 views

Arcobjects - Make new folder

Does anybody know how to create a new folder with arcobjects? This is what I want to do: insert a text in a TextBox and, when I run the aplication, it will create a folder with the name wroten in the ...
2
votes
1answer
507 views

convert SDE table to polygon feature class with Arcobjects

I figure there's a few ways to convert a table to polygon feature class, but what's the fatest and cleanest way to do it? My table has lat, long, azimuth, and beam width and based on all this info I ...
2
votes
1answer
731 views

Drawing in ArcGIS Engine?

I am trying to port over a large amount of code for drawing lines, bitmaps (with transparency), and text onto our map display. Originally it was done using Dynamic Display and IDynamicMap but that is ...
2
votes
1answer
838 views

Custom Application throws HRESULT if MXD/MXT has layers with data source missing?

This is in continuation to Getting ArcMap reference without launching application?. The idea of the application is to map layers (pointing currently to an unreachable server; server may be down, non-...
2
votes
2answers
1k views

Reference for IDockableWindow?

Kind of a newbie with ArcObjects .NET. Trying to open a dockable window with the following code: public class CAD_Test_01_button : ESRI.ArcGIS.Desktop.AddIns.Button { public CAD_Test_01_button() ...
2
votes
1answer
3k views

Programmatically adding custom GP tool to a toolbox

I'm having issues add a custom GP tool to my toolbox programmatically using c#. The tool gets added to my toolbox OK but then when I try to open it it fails adding a red cross to the tool and ...
2
votes
2answers
418 views

Throwing E_FAIL errors so edit operation is aborted

I need to abort an edit operation somewhere, determined by a certain condition. Heres the code I'm using: private const int E_FAIL = -2147467259; private void _Events_OnDeleteFeature(...
2
votes
1answer
917 views

Symbolizing layer with graduated colors using ArcObjects?

Can anyone 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"? I've used the interface "...
2
votes
1answer
476 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 ...
2
votes
1answer
2k 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 ...
2
votes
2answers
2k views

ArcMap TextSymbol in ArcObjects?

I'm looking to do the following. Create a point on a map at a given coordinate (x,y) and then display text at that point. Right now I can create a shape file but nothing is displayed on the map. ...
2
votes
2answers
444 views

Converting personal geodatabase feature class to coverage using ArcObjects? [closed]

how to convert personal geodatabase fatureclass to coverage using arcobjects with vba pls provide me any documentation or samples.
2
votes
1answer
360 views

Using custom dlls in multiple arcmap applications

I'll do my best to ask my question. I develop a number of COM-based libraries for use within custom arcmap dlls (using ArcGIS 9.3.1 SP2, .NET 2008 C#). These would include a custom arcobjects "helper" ...
2
votes
1answer
749 views

ArcGIS Visual Studio IDE Integration Framework?

i need to integrate arcgis 9.3 with visual studio c# 2008 express edition. i found the integration framework for 9.1 but no chance for 9.3 and i've seen a lot of questions on web about it. What ...
2
votes
2answers
552 views

Modifying existing edit tool to make new tool using ArcObjects?

I want to create versions of the edit tools that will add a parallel, offset segment each time I add a segment regularly. Is it possible to put a wrapper around the existing tools? Or otherwise add to ...
2
votes
3answers
2k views

Export a join table to arcmap

I have shape file (Point) and a table which I join using the following code. public ITable JoinLayer_Table(IFeatureLayer pFeatLayer, IStandaloneTable pStTable) { IDisplayTable ...
2
votes
1answer
326 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.
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 ...
2
votes
2answers
526 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
3answers
1k views

Using Spatial Analyst Geoprocessing functions in ArcObjects?

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
2answers
578 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 ...
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 ...
2
votes
1answer
46 views

Creating a Line at a Length and Angle in WGS84 - Arcobjects

I need to draw a line at desired length(around 10-20 Km length) and a user entered angle. The map/data uses WGS84 coordinate system. So the measurement is geodesic. Here are the methods that I tried. ...
2
votes
1answer
41 views

Access resolved/rendered dynamic text from ArcPy or ArcObjects?

Using ArcPy (or ArcObjects if essential), is there a way to retrieve the rendered text of a text element that includes Dynamic Text? The text property of the TextElement includes the Dynamic Text ...
2
votes
1answer
106 views

ITopologicalOperator::Simplify not removing self-overlaps

I maintain an application whose main job it is to take esri-ish things from users and turn them into sql spatial objects in our database (2008 R2). Below is an excerpt that may be useful: public ...
2
votes
1answer
67 views

Get the coordinates of the snapped and clicked point in ArcGIS Engine

I am developing an ArcGIS Engine program. I am using the code below to activate snapping to a layer programmatically. I want to get the coordinates of the snapped point (clicked point). I know I must ...
2
votes
1answer
40 views

Spatial relationships that do not match

All, I have 2 layers as shown below What I want to do is go through each feature (in pink) and do a spatial filter against the green layer. My current code is inMemFeatCur = inMemFeatClass....
2
votes
1answer
31 views

How to extract points off a polyline at certain distances using ArcObjects using VB.Net

I am trying to extract longitude and latitude of points from a polyline shapefile at certain intervals(10-50m). Using ArcGIS I was able to do using Densify followed by Feature Vertices to Points in ...
2
votes
2answers
107 views

How to make change to layer in ArcMap with python/ArcObjects?

In ArcMap 10.1 from the python window I am attempting to rotate a symbol for a point. After I run my code I can look at the symbol properties and the rotation expression is set on the symbol, however ...