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)

0
votes
0answers
199 views

How to get the top left and lower right coordinates of polygon in ArcObjects?

First of all, draw the rectangle ESRI.ArcGIS.Display.IScreenDisplay screenDisplay = Map1.ActiveView.ScreenDisplay; screenDisplay.StartDrawing(screenDisplay.hDC, (System.Int16) ...
0
votes
0answers
124 views

Add Layer into existing GroupLayer in map c#

I can't add Layer into existing GroupLayer in map. I'm trying this code below, but it does not work! I need code looks like this: public void AddLayer(AxMapControl mapControl, ILayer pLayer) { ...
0
votes
0answers
48 views

How to enable and disable IcommandItem of ArcObjects?

I have Commandbutton1 and Commandbutton2 in commandbar. Commandbutton1 is disabled on some condition. I want to enable Commandbutton1 on click of Commandbutton12. How do I do this?
0
votes
0answers
122 views

How to create a raster dataset from a known decimal extent?

I have an input raster pInputRaster. I want to create a new raster dataset called pOutputRasterDS that is the same width, height and cellsize as my input raster dataset (I'm not worried about ...
0
votes
0answers
131 views

Initializing Network dataset workspace extension VB.NET problem

I have an add in tool that is basically compiling routes of people travelling to work. It is a large tool ( a lot of code) and it worked a month ago. When I came back to use it yesterday it suddenly ...
0
votes
0answers
70 views

Dateline wrap issue in ArcObjects / ArcGIS Engine

I am having issues manually creating a polygon that crosses the dateline (long=180). My x coordinate goes from 178, 179, 180, -179, -178, etc. Anyway, can anyone give me some guidance? I am using ...
0
votes
1answer
126 views

ArcGIS Custom Toolbox crashes ArcMap 10.0

I have prepared Custom ArcToolBox using ArcObjects in java. It was working fine before though was giving NullPointerException but this something java related error and that is fine. Later I have ...
0
votes
1answer
160 views

How to use ArcObjects to limit classes visible in legend?

Is there a method use ArcObjects for .NET to manipulate the "Only show classes that are visible in the current map extent" option for legend items? The GUI for this functionality is accessible via ...
0
votes
0answers
88 views

Floating Point UniqueValueRenderer

I am trying to build a unique value renderer using ArcObjects .NET. All the samples that I have seen use the attribute table to build the UniqueValueRenderer. However, my raster does not have an ...
0
votes
1answer
42 views

How do I draw an EllipticArc (or any other Segment) in a Dynamic Layer?

I am trying to draw an EllipticArc (or any other Segment for that matter) in my Dynamic Layer using the ArcObjects C++ API. For something that seems like it should be straightforward, I am having a ...
0
votes
2answers
285 views

How to move an endpoint of a polyline feature to specific coordinates

What looked like a simple task has kept me busy for a while now. I would like to snap the endpoint of a polyline feature to a known point of which I know the coordinates. My first try was the ...
0
votes
0answers
136 views

How to fill selected feature(s) with transparent red fill using ArcGIS Server 10?

I'm writing a Server Object Extension (SOE) for ArcGIS Server 10, and I'd like to change the symbology of features selected from my feature layer such that the features are shaded with a transparent ...
0
votes
0answers
110 views

How to create sector figure in ArcObject?

How to create sector in ArcObject 10.1? Now I draw one point, two lines, two arks. But I think it is not good. It is differents objects. I need one object. Well. Now I drawing: IElementCollection ...
0
votes
0answers
263 views

Can I display google map in arcgis desktop application without violating the license?

I have desktop application on C# 4.0 based on ArcObjects. What controls do I need use to display google map? Is it real?
0
votes
2answers
361 views

Get selected features on ArcMap in arcMap Addin (eclipse)

I am building a custom arcMap Addin button which onclick event tells info about selected features. Following is my java class --- public class Break extends Button { /** * Called when the button ...
0
votes
1answer
1k views

FeatureClass to IFeatureLayer

I am trying to covert my feature class to feature layer so that i can pass "IQueryByLayer" over my feature class. Till now i have my feature class --- FeatureClass className = new FeatureClass(cc); ...
0
votes
0answers
99 views

How to get The character spacing from a ITextElement arcgis engine 9.3 C#

i have a problem.I can set character spacing to a IElement as ITexElement like : TextSymbolClass pTextSymbol = new TextSymbolClass(); pTextSymbol.CharacterSpacing = 10 ; //etc ...
0
votes
0answers
184 views

Export From PGDB to ArcSde Using C#

I need help exporting a personal geodatabase Feature Class to an ArcSDE geodatabase using C# ArcObjects with ArcGIS 9.3. I just want to replicate the tool Feature Class to Feature Class ...
0
votes
0answers
49 views

How to check a polyline is self intersecting [duplicate]

How to check weather a single polyline is self intersecting to itself. using arcobject C#
0
votes
0answers
21 views

ArcToolBox input layer and SDE default database connection [duplicate]

I asked this question before, and got no answer, so I am asking again. I have this scenario happening. Inside ArcGIS desktop (arcmap), the user select ArcToolbox and select any tool When the user ...
0
votes
0answers
243 views

Getting Subtypes of feature Classes using arc Object Java

I am developing a tool to demonstrate subtypes of feature classes in a geodatabase. My code works until printing feature classes. Can anybody assist me by providing a right way to print subtypes of ...
0
votes
1answer
134 views

Is snapping working when changing from NAD83(decimal degree) to NAD83 Zone UTM 11N(meters)?

I've used the following ESRI snippet to Convert the display extents in Pixels (at the current map scale) and then return out the map units. public System.Double ...
0
votes
2answers
462 views

Object does not exist in the namespace “http://schemas.esri.com/arcgis/client/2009”

I am trying to move all of my GIS code over the Visual Studio 2012. I have added the following references: C#: using ESRI.ArcGIS.Client; using ESRI.ArcGIS.Client.Geometry; using ...
0
votes
1answer
596 views

Problem inserting new features to file geodatabase feature class using ArcObjects 10 SDK

I'm trying to add new feature to file GDB feature class and keep getting this error: Objects in this class cannot be updated outside an edit session. Feature class has attachments enabled (exists ...
0
votes
0answers
125 views

ESRI AddFeatures call on rest endpoint with attributes

I can add a line feature via the rest endpoint with my hand crafted call from C#. However, if i add any attributes to the call it will fail and say unable to perform operation. All of the fields in ...
0
votes
0answers
454 views

How to convert Graphic Layer to Feature Layer in ArcGIS 10.1

In general Graphics can be converted into Features manually from Drawing Toolbar option convert Graphics to Feature. My requirement here is i want to convert through code using ArcObjects and C#. One ...
0
votes
0answers
108 views

Migrating code to 10.1 and recycled search

I am migrating 9.3 Desktop extension to 10.1 I am getting this bug when I am trying to update a row in the geodatabase "Cannot call Store on a recycled row while editing" And seems the reason is, I ...
0
votes
0answers
38 views

esri ArcObjects slow performance accessing features [duplicate]

I have to create my own control like Attributes Table using C#. My version of attributes table is very slow, for ex. for 300.000 rows in table and 140 fields it takes about 1 minute! esri Cursors are ...
0
votes
1answer
105 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?
0
votes
0answers
163 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 ...
0
votes
0answers
133 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 ...
0
votes
0answers
115 views

Run time error for GP objects

I have a code with toolbars which I tried to run it in another PC but it failed. I get a run time error "Method Addtoolbox of object I GDispatch failed". The line that the code stacks is the last one ...
0
votes
0answers
71 views

Why is IQueryGeometry crashing when ITextSymbol:Text contains more then one AMPERSAND (&) symbol?

I have a bit of an issue with my addin which converts annotations (text) to polygons. To do this I use the ITextSymbol obtained from the Annotation Feature which is then implemented by the ...
0
votes
0answers
128 views

Do any geodatabase schema and data migration libraries for .NET exist?

I'm performing code refactoring and database normalization in my project and looking for any .NET library for geodatabase schema and data migrations. Does any solution exist for ArcObjects? During ...
0
votes
1answer
235 views

find out those points which are intersecting each other using spatial filter in C# arcobjects [duplicate]

Possible Duplicate: Determine overlapping points using a spatial filter in ArcObject I have a point layer having thousands of point, now what i have to do using Spatial filter i have to ...
0
votes
0answers
445 views

How to solve a Run-time error 91?

I have a function which a part shown below. The problem is that I get a Run-time error 91 (object variable or with variable not set) and the debug highlights the last line of the code ( Set ...
0
votes
0answers
152 views

How to make sure OnSketchFinished always works?

In my VBA application i have a listener setup that listens for OnSketchFinished, when the polygon is created a messagebox appears and then a userform. My problem is that the listener will work 90% of ...
0
votes
1answer
306 views

ArcGIS 10 IGPFunction2 and IGPFunctionFactory Implementation

I'm creating a custom ArcToolbox tool in C# .NET in ArcGIS 10 SP2. Though I seem to be having two issues which maybe related: Firstly, my tool is run as a background task i.e. the GP dialog does not ...
0
votes
1answer
280 views

Getting ExecutionEngineException when using GetCount in loop

I've created a small ArcObjects app that searches for all matching files in a directory tree and returns the matched files with the number of rows in each file. When performing this loop on a small ...
0
votes
1answer
314 views

IUniqueValueRenderer with three fields

I have found some ArcObjects code to get unique values on one field for a IUniqueValueRenderer but I can't conceptually wrap my head around how to do that with 3 fields. Would this be .Net code or is ...
0
votes
1answer
277 views

ArcObjects: esriSRGeoTransformation enum for WGS_1984_Major_Auxiliary_Sphere_To_WGS_1984

There is geoTransformation named: WGS_1984_Major_Auxiliary_Sphere_To_WGS_1984 I know it exists because I can access it with Projection Tool in ArcToolbox. But for the life of me I cannot find it ...
0
votes
2answers
463 views

Why would programmatically setting the extent of a map on Page_PreRender be really slow?

We are using the ArcGIS 10 web adf with C# in a web application. We just recently upgraded everything from 9.3 to 10 and moved all the hosted stuff over to a new (more powerful) server. Still on the ...
0
votes
1answer
393 views

arcgis server 10, vb.net, IMathOp problem

i am using arcgis server 10 and visual studio with vb.net to build web mapping application. inside my code i have the following line: Dim RasterCal As ESRI.ArcGIS.SpatialAnalyst.IMathOp = _ New ...
0
votes
0answers
234 views

ArcObjects - Select fields to Layout

I´ve a project wich I need to do the following task: there is several points with coordinates (X,Y) in the correspondent table. I select, manually, a few points and i want to, trought Arcobjects, send ...
0
votes
1answer
608 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
336 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; ...
0
votes
0answers
190 views

how to write Topology Graph Edges geometry to polyline feature class

i have created topologygraph of a polygon feature . and iwant individual ids of polylines i want to write Topology Graph Edges geometry to new polyline feature class any samples OR documentation ...
0
votes
0answers
383 views

IronPython + ArcObjects

Is it possible to access ArcObjects with IronPython?
0
votes
1answer
120 views

ArcGIS desktop extension and prevent attribute editing

I am building an ArcGIS extension on desktop 10.1 (not add-in, but old extension). I built some forms to edit some feature class, where I implement business rules. I want to force the user to edit the ...
-1
votes
1answer
534 views

Reconcile and post versions through C#?

I want to know if we can post the versions based on events through coding. How we do batch reconcile and post through c# code? Is it possible for automatic replication also?