2
votes
1answer
14 views

Access CommandItems programmatically with ArcObjects in ArcGIS Engine application

I'd like to programmatically execute a command in my ArcGIS Engine application with ArcObjects. I know in Desktop I would do it like this: ESRI.ArcGIS.Framework.ICommandBars commandBars = ...
1
vote
2answers
84 views

Ring to Polygon

I want to get an exterior ring from a polygon. I need to itopologicaloperator.intersect a line with the polygon (exterior ring) to read attributes from the line. I have the original Polygon I can get ...
0
votes
1answer
36 views

ITableWindow2 does not show all records

I have to develop an extension in C# for ArcMap 10.2 and I need to show information from a datatable in an a table window. I can show the table without problems, but I have a problem I can´t resolve. ...
0
votes
1answer
32 views

Creating a program for batch snapping polylines and polygons

I currently work with large sums of lines data. I am editing them using different GIS software. I've realized that I can detect node problems in arcmap10.1. I would like to know if it's possible to ...
1
vote
2answers
64 views

Add to geoprocessing environments when creating ArcGIS .net Add-in

I would like to add a new environment to the Geoprocessor Environments from an ArcMap.net Add in. I try adding the env to the GPEnvironmentManager with the following code but when ArcMap opens and I ...
0
votes
0answers
47 views

How to get RasterToPolygon working

We have a process that is almost working except for this one call ... This is the one tool function that is requiring a FeatureClass and I found code that I thought would work. Unfortunately all I ...
1
vote
1answer
30 views

ArcGIS 10.1 make Form onTop with C#

I have a windows form which opens with my ICommand, referenses IApplication and does some staff with it( it is not relevent ). The problem is that I want it to be onTop within ArcMap, and minimized if ...
0
votes
1answer
56 views

Sort Grid binded to ArcDataBinding.TableWrapper in ArcObjects 10.1

I have a Datagridview which is binded to a ArcDataBinding.TableWrapper. So, I want it to be sorted when ColumnHeader is clicked. I tried to do the following on Click event: ...
0
votes
1answer
146 views

IFeatureLayer.Seach() throws exception HRESULT:0x80041538

My code as bellow give error HRESULT:0x80041538 whenever I use GROUP BY or ORDER BY postfix. Trying in Personal(.mdb) and MSSQL database datas - same result. What can be the reason. Asked similar ...
3
votes
2answers
59 views

How to programmatically Summarize an ITable?

Is there a way in ArcMap plugin to make Summarize-function like functionality programmatically? There is a feature layer, lets say Building, And it has fields like OID, FloorNumber, Color, Height ...
1
vote
0answers
23 views

IApplication.Shutdown rights problem

In ArcGIS 10.1 using Add-In, IApplication.Shutdown works fine on my PC, but when I install it on other computer it give error, something like "Not enough rights to close the application". The ...
0
votes
0answers
39 views

Change the Name,Tooltip of builtin Commands

When I change the name of a builtin command using the following code, I get the error, "this method cannot run on builtin commands". ICommandItem BuiltinCMD = ...
0
votes
1answer
91 views

Programmatically block Toolbar choosing in ArcMap 10.1

With an extension I can block ArcMap's Customize menu using following code line: ArcMap.Application.LockCustomization("password"); But, it makes no sense since by right-click on Toolbar docking ...
0
votes
0answers
88 views

ArcMap throws NullReferenceException for OnClick event of Add-In

I have this below code which is a toolbar button to open a dock able window in ArcMap 10.2 Desktop application and what happens is that I am able to install the toolbar button but when I a click that ...
0
votes
0answers
73 views

Feature To Polygon by Attribute

Hey everyone How are things? I am having a problem getting my head around an efficient way to create polygons from polylines using an attribute. I would like to get some pseudo code, suggestions as ...
0
votes
0answers
28 views

Button Driven Switch Version

Using ArcMap 10 & C#, I'm trying to switch the map to display a certain version of our SDE database when a custom button is selected and I'm having a heck of a time finding what I thought would be ...
0
votes
1answer
158 views

How to add features to geometry collection using .ShapeCopy

I'm having an issue with trying to complete the loop of adding the selected geometry to my geometry collection. The goal is finding streets that intersect the given streetname (then locating the ...
0
votes
0answers
19 views

Adding a layer to ArcMap

I have create "Draw polylines tool", but not know how to create spacial layer to store polylines only in this layer. It's possible locate polylines in own layer, I mean that this layer will be ...
2
votes
1answer
55 views

How to get a collection of georeferencing control points in an ArcMap document?

I have created control points (i.e. links) using ArcMap's Georeferencing toolbar. How can I programmatically retrieve a list of these points? I'm looking for something like an enum of the links you ...
0
votes
0answers
55 views

Command doesn't show up on ICommandBar

I'm trying to put a custom command into the Help menu on startup if it isn't already there. This is my code to do so: private void OnCreate() { // other stuff in OnCreate()... // registering ...
5
votes
2answers
1k views

ArcObjects - find nearest feature to a point - has to be FAST

I've seen lots of discussion on this, especially using IIndexQuery.NearestFeature() on a FeatureIndex instance. Something like this: private IdDistancePair FindNearest(IGeometry g, IFeatureClass fc, ...
1
vote
0answers
40 views

Issues using Arc 10.0 extension recompiled for 10.1

I have a written an ArcGIS extension in C# .Net for version 10.0. I have attempted to recompile this extension for 10.1 and that works. But running the extension in 10.1 is causing ArcGIS to crash. ...
1
vote
0answers
66 views

arcmap open map via add in using C#

I just started working with arcmap and I have a question: How can I make the add in I made in C# to open a map automatically in arcmap? Just want to know what function to use or if it's even ...
1
vote
1answer
220 views

Cannot register assembly

So I am trying to control Arcmap with my addin and I tried to add a command. So I did and i got this error: Error 6 Cannot register assembly "C:\Users\Administrator\documents\visual studio ...
1
vote
0answers
23 views

How to send variables from gis addin own web browser to gis file

I am a complete beginner with GIS. So I want to be able to go to the coordinates in arcmap I fill in in my php page. I've got this now: The variables inserted in the textfield should be the ...
0
votes
0answers
104 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) { ...
4
votes
2answers
251 views

How to create new legend using ArcObjects?

I am trying to add simple legend to the map. I wrote some simple test code below to see what happens but it did not work. var map = activeView.FocusMap; IGraphicsContainer ...
1
vote
1answer
147 views

“The Fields collection did not contain an expected geometry field” (ArcGIS 10)

I am writing a fairly simple application to build simple polylines. I got most of the application working for the most part, but this part is just baffling me to no end and there is nothing I can ...
2
votes
0answers
111 views

How to call ArcPy script from Windows Service? [closed]

I'd like to call arcpy script from Windows Service. Here (Calling arcpy/python from .NET?) I read that I can load python script. What do I need to load arcpy script?
3
votes
1answer
94 views

How to apply WHERE clause to relationship class using ArcObjects?

I'm trying to query objects related to objects and satisfying some query in ArcObjects. IRelationshipClass interface contains methods for getting all related objects but how can one filter them? I ...
0
votes
0answers
40 views

Can't register StyleGallery.dll (Arcgis) when install my program (using Visual Stdudio,C#)

In my program, I used the IStyleGallery (need using ESRI.ArcGIS.Framework). When I install and run my program. I got the error: "Retrieving the COM class factory....". And, I discovered the reason ...
0
votes
0answers
31 views

Selection Problem

I'm trying to handle feature selection event using c# code. I'm wondering that if using the "HTML popup" tool to click on the points on the map counted as selecting the point feature? As I always get ...
1
vote
0answers
68 views

How to achieve the statusbar as the same effect with the arctoolbox‘s tool called in ArcMap add-in?

How to achieve the statusbar as the same effect with the arctoolbox‘s tool called in ArcMap add-in? i do not know how to use the progressbar as a result of my project involves in a large mount of ...
1
vote
0answers
61 views

Using the esri analysisTool Erase class in C#

I am trying to use eSRI.ArcGIS.AnalysisTools.Erase class but I keep getting blank layers. I can get the layer that can be used for the input and the layer for the erase. I don't really understand the ...
0
votes
2answers
170 views

How to add a Data Frame to mxd in a c# stand-alone application?

I am writing a stand-alone application in c# (using vs2010). I have ArcGis Desktop license. I only need to insert a new data frame in an mxd file and save this mxd. So: I create MxDocument coclass. ...
0
votes
0answers
102 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
241 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?
1
vote
0answers
157 views

How Display WMS layer in AxMapControl?

I modify application (on c# .Net) based on arcobjects. It is a desktop application. I use object AxMapControl Map1. I can load .mxd map in it. Map1.LoadMxFile(mapName); Map1.Refresh(); Now I need ...
1
vote
0answers
45 views

Problem in VersionEdit4.Reconcile4 method

I had an standalone application in which i am getting all the available versions in the database. Based on user filter he selects multiple versions and reconcile it. if ...
4
votes
2answers
439 views

What is needed to develop an ArcGIS application? (C#?)

I am trying to fully understand the genius that is ArcGIS. I want to develop a piece of software that uses the engine. This application needs to import user data (GeoTIFF, etc) and allow users to put ...
2
votes
2answers
261 views

Creating an ArcMap Extension

As ArcGIS 10 doesn't really support the full COM, I am looking at creating an extension. I am looking for samples to look through, to familiarise myself with them, but cannot find any. Any ...
0
votes
1answer
88 views

Comparing ShapeFile Data in C# [closed]

I have made a List containing all the original data (.shp files), and I have another List containing the modified data. I basically want to check all the modified file data against the original... So ...
0
votes
1answer
123 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 ...
2
votes
2answers
559 views

How to Zoom and Pan using scroll wheel in ArcObjects?

is there any way to zoom using scroll wheel ? i have tried AutoMouseWheel of map control, it works well for the first used custom tool, but once i change the tool, it stops working , i would like to ...
1
vote
1answer
238 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
127 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 ...
1
vote
0answers
107 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 ...
2
votes
1answer
249 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 ...
3
votes
0answers
113 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 ...
0
votes
1answer
476 views

Spatial index grid size is invalid

I am trying to move a point feature programatically, but on stop operation, I am getting this error : spatial index grid size is invalid Kindly help. Regards