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)

8
votes
2answers
643 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
659 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
134 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
463 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
677 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
168 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
719 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. ...
2
votes
2answers
368 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
865 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
304 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
95 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
295 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
150 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
884 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
160 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
207 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
54 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
3answers
134 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
132 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
483 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
299 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
146 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
226 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
63 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
718 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
2answers
970 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
118 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
348 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
241 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
764 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 ...
2
votes
1answer
408 views

Write string to status bar that doesn't go away

I'm attempting to write the number of items matching a given query to the statusbar. when i debug through the code, i am able to step through and see the message hit the statusbar, but then it ...
1
vote
0answers
66 views

code for finding gaps between polygon parcels

i am trying to write code for finding gaps between polygons, the idea is to convert polygons to polylines and checking the attribute table, each selected segment that shows two records in the tables ...
1
vote
3answers
430 views

ArcCatalog 10.1 tree doesn't refresh after adding new custom IGxObject at runtime

I am using ArcObjects 10.1 (.NET) to customize ArcCatalog: adding new nodes in catalog tree like in the Esri's example. But when I add new child node to already expanded parent, it doesn't show up in ...
2
votes
1answer
531 views

Can I use an Update cursor with a versioned feature class which has attachments in ArcObjects .NET

I have a problem with my code (C# ArcObjects 10.1). We are trying to update and insert 10 - 15 rows at a time into a feature class hosted in ArcSDE 10.1 on SQL Server 2008 R2. We have a feature class ...
1
vote
0answers
78 views

Create Configurable Extension in ArcGIS Desktop

I am creating a configurable extension for ArcGIS desktop 10.1 I am not using Add-on , so please don't suggest add-on. How can I disable some toolbars and commands, when the extension is disabled? I ...
6
votes
1answer
534 views

Annotation features containing both GraphicElement and TextElement objects not drawing in ArcGIS Server map service?

I am building annotation features with Python/comtypes/ArcObjects. The annotation works great in ArcMap (10.1), but it is does not draw when published to a map service in ArcGIS Server. Each piece ...
2
votes
1answer
224 views

Reading Attributes from Attributed Relationship Class ArcObjects

I have an M-N relationship class with attributes. I am listening to the IRelationshipClassEvents.OnCreate Event event to see if any new relations are created. How can I read these attributes from an ...
0
votes
0answers
164 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 ...
3
votes
1answer
179 views

How to add image base tool control to a drop-down list in ArcGIS 9.3.1

I have to retrograde an ESRI add-in application from ArcGIS 10.1 to ArcGIS 9.3.1. My challenge is how in the drop down list can I add base tool control( will be shown as icons inside the drop down ...
2
votes
1answer
288 views

How to save raster results of IExtractionOp?

I'm using IExtractionOp to clip a raster by polygon: IExtractionOp operation = (IExtractionOp)(new RasterExtractionOp()); IRasterBandCollection rasterBandCollection = ...
1
vote
0answers
69 views

Joining a In_memory table with an SDE table

I have a in memory table that gets created, and want to join it to a table from SDE. I have tried the following code. Private Sub JoinTables(sdetable As ITable, inMemoryTable As ITable, joinField As ...
8
votes
0answers
253 views

ArcObjects running in Addin slower?

I have created a class library which does some geoprocessing. The addin calls a class that is an async process. I have ensured the thread is STA and the arcobjects are thread safe (ie. not passed from ...
4
votes
1answer
184 views

Is it possible to share temporary (InMemoryWorkspace) FeatureClass between Threads?

I'm trying to run some operations (functions) in seperate threads so that the UI is not blocked. One of this operation is the generation of a feature class copy from an existing feature class into a ...
1
vote
0answers
296 views

Picture fill symbol fails with a polygon graphic

The following code snippet successfully draws a graphic polygon and fills it with the specified picture fill symbol. When the x values for all of the points are made negative and a repeat call to the ...
8
votes
2answers
260 views

How to efficiently (programmatically) determine whether two datasets have / don't have identical content?

Given: a geodatabase A that contains 100 datasets named a1 .. a100 a geodatabase B that contains 100 datasets named b1 .. b100 I want to programmatically (*) determine for each dataset pair (ai, ...
0
votes
1answer
227 views

Using ESRI.ArcGIS.Display.ITemplate to draw cutom lines?

I am using ESRI.ArcGIS.Display.ITemplate to draw custom lines such as dot/dash lines on a map control. Then, I used below codes ESRI.ArcGIS.Display.ITemplate templateCls = new ...
2
votes
0answers
863 views

How to copy a feature class within the same GDB

I'm trying to copy/clone a feature class within the same file gdb using C#. I've figured out that this won't work with IDataset or IFeatureDataset. So far I only found IGeoDBDataTransfer.Transfer but ...
1
vote
1answer
475 views

How to get the nearest line to a feature?

I have features on map, and i want to get the nearest poly-line to each one. How to write spatial query to get the nearest one. I tried to use ISpatialFilter but i couldn't reach anything.
6
votes
1answer
375 views

Is ArcFM or ArcMap leaking memory when switching between page templates?

Can anyone else reproduce the memory leak described below? Any insight into what may be causing the leak is appreciated. I have custom code that swaps between landscape and portrait templates and ...
2
votes
1answer
243 views

Obtaining map service url from within Server Object Extension (.NET)?

I'm having trouble figuring out how to obtain the full url to the map service a Server Object Extension is running on top of. I bascially want: IMapServer4 mapServer = ...