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
180 views

ArcObjects 10/10.1 Get rid of Invalid layer symbol in TOC

I've written an add-in (VS2010, C#) that finds specific invalid feature layers in ArcMap and fixes them. After the layer is fixed, the red invalid symbol still appears in the TOC. An ...
1
vote
0answers
190 views

How to get hold of the Activated Event for the ArcMap window?

I am using ArcObjects 9.3 .NET. In my ArcMap dockable window, I have a single element host hosting a WPF user control (That's the only means of using WPF for ArcMap extensions as far as I know). ...
2
votes
1answer
83 views

How to extend a custom NASolver in ArcGIS Server 10.1?

The past year we developed a custom NASolver with C# , it works fine and that job has finished. Now we are planning to use it from ArcGIS Server. The problem is that we have no information for that. ...
2
votes
2answers
339 views

How to convert existing lines to polygons with Arcobjects, preferably in C#?

Does anyone know how to convert existing line geometry to polygons with arcobjects as it works with the geoprocessing tool "feature to polygon"?
0
votes
1answer
217 views

Rendering layer in ArcMap using ArcObjects and Python?

I succesfully wrote a script to render a Uniquevaluerenderer in a layer in ArcMAP using symbols from 4 parameters (values) read from the attribute table of the layer. I used ArcObjects and VBA, but ...
2
votes
1answer
83 views

Trouble storing an IMap with ArcObjects 10 and IPersistStream

I'm storing a reference to an IMap in a custom object (which is stored by a custom extension) so that it can listen to map events. When I save the custom object using IPersistStream and then reload ...
1
vote
0answers
103 views

InsertFeature on a versioned layer [vba]

I am writing an application that takes data from an Excel Spreadsheet and loads it into an ArcSDE feature class. The Feature class is editable within ArcMap, but I am having trouble inserting a ...
3
votes
1answer
138 views

How to display point features w.r.t field values of a polygon file in arcobjects?

I have a point & polygon shapefile. Point file has a field namely, Type: atm,hospital,school etc... Polygon file has a field Zone: Zn1, Zn2, Zn3. There will be two combo boxes which will populate ...
3
votes
2answers
262 views

How to use shortcuts in dockable windows?

I have developed a custom dockable window with textboxes, comboboxes and buttons for use in ArcMap. After the user clicks on a button in the dockable window a function is invoked. How can I invoke the ...
0
votes
1answer
185 views

How to set Symbology On Create Feature Window using arcobjects?

programmatically I set the custom symbology for the layers. When i started the edit session programmatically, the create feature window did not show the respective symbology assigned to feature. pl ...
2
votes
1answer
170 views

Arcgis 10.0 desktop: how to clear All transformations from map

I have a custom extension which adds some custom transformations to the map. When turned off, the extension is supposed to remove all the added transformations. However, when calling ...
1
vote
2answers
147 views

cast from IFeatureClass to ISchemaLock

I'm programming with the ARCGIS Java SDK, in Eclipse. I need to cast an IFeatureClass to an ISchemalock. This cast is supposed to be allowed. There is an example of this cast in: ...
1
vote
1answer
141 views

What is the preferable value for setting tolerance for selecting a feature

I know it's really a basic question. But I am really confused about this. For selecting a point feature by mouse click, we need to set a tolerance value to create the envelope. And here is the problem ...
1
vote
0answers
140 views

add an INDEX to an IFeatureClass with ARCGIS Java sdk

I want to add an index to a feature class. To do so, I used the very short and complete example given there: ...
3
votes
1answer
361 views

Set unique values to different groups programmatically

I have a polyline feature layer. After doing some computation, I update a field of that layer and want to set unique color for different value of that field. We can do this from symbology using unique ...
1
vote
1answer
363 views

How to create dynamic sub-menu in ArcMap?

I created a static menu contains 3 static items like in this link create menus, I want to add a sub-menu and get the menu's items from database like in this image: I already did the left part with ...
2
votes
0answers
226 views

Geodesic distance between two polygons in ArcGIS

Does the IGeometryServer2 interface work in desktop applications? My solution is an Add-in for ArcGIS 10. I'm currently passing it two valid polygon features that are in a projected coordinate system. ...
1
vote
1answer
261 views

Problem in splitting and removing Polyline

I am stuck at a problem for weeks, Please Help!!! I am making program in C# Here is what I need to do --- I have two polylines that are intersecting with each other at some points. I want to delete ...
2
votes
1answer
135 views

How to write table blob field to file using ArcObjects?

I have a table with blob field and some others as well. I am trying to read blob field and save it to file using IBlobStream, and the thing compiles. The problem comes up in run-time, when calling ...
2
votes
2answers
760 views

ComException -2147467259 Arcgis 10 VB.net +Geoprocessing

I have a problem when i execute GeoProcessing in ArcEngine 10 with VB.net i had create the toolbox : Models.tbx and Model Process : disolveRoute with 2 parameters My Function is : Sub ...
8
votes
2answers
514 views

What are mystery green lines in Layout View produced during ArcObjects script execution?

Could any of ArcObjects guru tell me, what are these green lines on my Page Layout and what to do, or not to do, so they do not appear? See image attached. I do used ArcObjects from Python. My script ...
3
votes
1answer
526 views

Pivot a polyline at vertex or distance using ArcObjects C#

I hope you can help me with that one. I'm using ArcObjects with C# trying to rotate only one part of a polyline at a vertex or distance along the polyline. The polyline is zAware and has values at ...
1
vote
0answers
96 views

ArcGIS Add-In Project to Standard Library Project

I have been developing an ArcGIS 10 Add-In tool, but requirements changed halfway through development. Fortunately, this isn't changing any of the code, but I just need to be able to compile the ...
3
votes
1answer
271 views

Is it possible to undo and redo outside edit session in ArcObjects?

I would like to know if it is possible to undo and redo changes outside of an edit session? If yes, how can I do it in ArcObjects using .NET? I am working on an ArcSDE 10.1 versioned geodatabase?
4
votes
1answer
473 views

How to set focus on ArcMap map window using arcobjects and c#.net

I have developed a custom dockable window with textboxes, comboboxes and a button for use in ArcMap. After the user clicks on the button in the dockable window a function is invoked. After the ...
3
votes
2answers
162 views

Populating fields in a Matrix format

I am trying to develop an accuracy assessment tool using ArcObjects. As an output I would like to show a matrix with the fields such as road ,land,water etc. I just want to know how can I fetch ...
4
votes
1answer
495 views

Can custom map tiles be properly rendered via ArcObjects within my ArcGIS 10.1 Desktop AddIn?

Within ArcObjects for ArcGIS 10.1, we are attempting to render pre-generated map tiles as a basemap (group) layer. The tiles themselves are of the typical web mercator aux. spherical tiling scheme. ...
1
vote
1answer
222 views

How to set min and max value for stretchType: esriRasterStretch_PercentMinimumMaximum

How can I set the min and max values for the stretch type "Percent Clip" in arcobjects? It's possible to set the Stretch type: rasterStretch.StretchType = ...
4
votes
5answers
609 views

Intersection of two lines tool

Is there any way to make intersection of two lines tool with extending lines option, so the result would be a point. the hardest part is when the lines have to be extended to intersect. the tool will ...
2
votes
2answers
229 views

Using ArcGIS Server SOE to listen for edit events

Bit of a conceptual issue I have a situation where I need to add business logic to newly created features in a feature service. When new features are created I need to preform overlays and assign an ...
2
votes
0answers
70 views

ArcObjects: Does an IEnumElement that was returned from IGroupElement3.Elements() maintain the z-order of the GroupElement?

I want to read graphics elements (TextElements and RectangleElements) from a GroupElement object (IGroupElement3) and put them into another in the same order as they were added to the original. The ...
1
vote
0answers
201 views

Quering a ArcSDE featureclass attribute table after joining

I am trying to query a ArcSDE Feature Class after joining using Iqueryfilter I have two SDE feature classes. 1) Subdivisions : which has details of subdivision and districts (parent) 2) ...
1
vote
0answers
118 views

Distance Units of a Layer

I am developing an ArcGIS desktop addin. I am attempting to get the distance units (ft, mm, km, etc.) from a layer in my .mxd and display it on a windows form. How can I do this? I can access the ...
3
votes
4answers
525 views

ArcObjects C#: select intersecting polylines

My questions seems trivial but it is a real blocker for me. So please help!!! How can I, using ArcObjects with C#, select only those polylines in one layer that intersect with each other? It sounds ...
1
vote
0answers
131 views

How can I add data to a shp file attribute table from arcobjects?

I have a code that selects row data from a listview table in VB.net. I have declared that data as a variable and I can see it if I ask it to dispay a message box (see code below). Now I would like to ...
3
votes
1answer
161 views

Access attributes of a deleted IFeature in ArcObjects 10.1

I am migrating code for an ArcGIS extension from 9.3 to 10.1. The code is throwing an exception in one place. My duty is just to migrate it to 10.1, so I really don't like to do any modification more ...
3
votes
1answer
47 views

How do I implement a custom IFeatureDatasetExtension?

How can I implement IFeatureDatasetExtension and register it so that ArcGIS discovers and initializes it? In arcobjects, I see that Esri has a number of coclasses that implement ...
2
votes
2answers
80 views

How to create a turn restriction in ArcObjects

I am having difficulties creating turn restrictions in ArcObjects. I have found a way to Add a a network turn to restrictions through the INetworkForwardStarEx.AddTurnRestriction() interface. But how ...
2
votes
0answers
109 views

ESRI CreateGeometryFromWkbVariant creates CCW polygon

I am using ESRI GeometryEnvironmentClass that implements IGeometryFactory3 and I use the method CreateGeometryFromWkbVariant. For the same wkb, in ESRI 9.3.1 the returned polygon is oriented ...
2
votes
0answers
373 views

The underlying connection was closed: The connection was closed unexpectedly, WCF and ESRI Objects

I am getting this error when using ESRI objects like Geometry, Envelope etc in a WCF service. I have a class that some properties (string, int, double) but when I add ESRI type as part of this class, ...
3
votes
1answer
201 views

Arcobjects: DisplayTransformation.FromMapPoint() transforms wrong

I want to transform map coords into page coords in ArcObjects in Python. So I do, say: >>> pApp = NewObj(esriFrame.AppROT, esriFrame.IAppROT).Item(0) >>> pDoc = pApp.Document ...
2
votes
2answers
108 views

How to create `Workspace` without using `IWorkspaceFactory.Create`?

Can I create a Workspace without using IWorkspaceFactory.Create I am trying to create a Workspace without specifying it's parent directory, is that possible ?
2
votes
1answer
138 views

How to Mosaic DTED files (RasterDataset) using C#?

I use ArcGIS .NET SDK in C#. I'm able to load some DTED files in my ArcMap and show them in proper colors. What I want is to concat/merge/mosaic some DTED files. How can I do this? I want to mosaic ...
2
votes
1answer
61 views

ArcObjects: Equivalent/Similar object to old Avenue ObjectTag from ArcView 3.x?

I have annotation where a single annotation feature consists of one or more TextElements and RectangleElements grouped together in a GroupElement and then stored in the annotation feature. To edit ...
0
votes
2answers
466 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 ...
1
vote
1answer
609 views

Get the distance from a point on a polyline to polyline's from point

I have a polyline and a point on the polyline. I need to find the distance from the from point of the polyline to that point. ICurve.QueryPoint method does the opposite thing. It gives a point ...
4
votes
2answers
113 views

Querying lines that meet in endpoints to show result in clockwise order?

I have some polylines - roads. They meet in an intersection like on the picture: I want to find out which roads meets Road A - endpoint to endpoint - and i want to know the clockwise order of the ...
1
vote
0answers
252 views

Using custom contextMenu in Arcobjects(C# and ArcMap)

I added a new custom tree to TOC which looks like this: IObjectClass IFeature IFeature ... IObjectClass IRow ... made context menu using this sample ...
0
votes
1answer
170 views

Can't load Mxd file in MapControl?

I used below codes to save IMap into byte[] (to store in my database), but I can't load it again, are there anyone know what's wrong ? public byte[] SaveMap(AxPageLayoutControl pageLayOut) { ...
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 ...