1
vote
2answers
286 views

Could not load file or assembly : ESRI.ArcGIS.ADF.Local.dll

i worked in an application vb.net , arcengine : i copy the project source and i paste it in other Machine , Ooops i can't compile it , Error is : Error 1 Could not load file or assembly 'file :/ / / ...
0
votes
1answer
102 views

geodatabase with multiple projection

I have a geodatabase (ESRI/PostgreSQL) I'm working in an application for digitizing : in my country we have 4 coordinate system(projection), so I'm looking for a way to switch projection or any other ...
0
votes
1answer
360 views

How to learn ArcObjects (.NET, C#) for desktop applications but having only Arcmap desktop license?

How can I learn .NET and C# for desktop applications having only a desktop license? I want to upgrade myself in the development side so I'm trying to learn this stuff and I'm searching all the ...
2
votes
1answer
59 views

xy tolerance from c#.net

For some graph work, I need the value of X,y tolerance. I found ISpatialReferenceTolerance.XYTolerance Property. But I couldn't find any option that how can I get ISpatialReferenceTolerance interface ...
3
votes
0answers
183 views

What is the correct way to handle assembly resolution in .NET ArcGIS add-ins?

This has been a thorn in my side for some time now -- in .NET ArcGIS add-ins, assembly dependencies packaged with the add-in are often not resolved correctly. I am still not sure why and under which ...
2
votes
1answer
118 views

IGeometryBridge.GetPoints throws NotImplementedException. Am I doing something wrong?

I am working on some .NET code that processes lots of polygon geometries at the vertex level. In order to reduce COM interop overhead, I want to call IGeometryBridge2.GetPoints once instead of calling ...
2
votes
1answer
213 views

How to create multiple dockable windows?

I am building an add-in and I have several different windows, which I open with the code below. This works fine. However, how can I create the same window n times? UID dockWinID = new UIDClass(); ...
4
votes
2answers
107 views

How to do raster conditional comparisons in .NET?

I am comparing a raster with a constant value by raster calculator. Now I want to do this in a c# code. Question Is there any process to do this kind of raster conditional comparison in .net?
3
votes
2answers
546 views

Is it possible to deploy on a ArcGIS 9.3.1 machine a component created with ArcGIS 10?

We are developping a C# ArcObjects Class extension assembly. Our development machine was recently updgraded to ArcGIS 10, but when we try to install the assembly on a 9.3.1 machine, we get an R0000 ...
1
vote
1answer
202 views

How to print semi-transparent elements?

I highlight some features with a semi transparent color via an ILayerExtensionDraw. When I print the ActiveView of the PageLayoutControl with IPrintAndExport the highlightning is not on the printout. ...
13
votes
1answer
885 views

How to get selected Features/Geometry from Windows Clipboard in ArcMap/C#?

I have a custom tool in ArcMap 10. The Workflow is the following: Select Features in a Layer with the "Select Features by Rectangle" tool Copy the Features to the Clipboard using STRG+c Select the ...
4
votes
3answers
312 views

How to use ITrackCancel to escape IRubberBand track?

I have a BaseTool for AX_MapControl and AX_PageLayoutControl that allows to draw a polyline via IRubberBand. But once the rubberband is started, you can't cancel it e.g. by hitting escape. I found ...
2
votes
1answer
756 views

ArcObjects: Setting image of a command button to a partially transparent bitmap

In an ArcMap 10 add-in, I am attempting to create a toggle button of sorts whose image changes based on the button's state. This answer describes how to set an add-in button's image programmatically ...
5
votes
1answer
145 views

How long should I hold onto (cache) references to IWorkspace, ITable, IFeatureClass?

After many months of programming with ArcObjects, I still feel somewhat unsure about two related issues: For some operations, workspaces and datasets must be explicitly opened before they can be ...
2
votes
1answer
336 views

Are there known issues about UPPER, LOWER SQL functions in ArcGIS 10, file GDB?

Platform: ArcGIS 10 SP3, .NET I use: IQueryFilter queryFilter = new QueryFilterClass(); with ArcGIS .NET SDK and build a query... Does anybody had problems using UPPER(stringField) and ...
0
votes
1answer
434 views

CenterPoint of Polygon in ArcEngine .Net 10

I am currently trying to get the center point of a polygon. In GIS, i can see the "x" mark in the center of the polygon, but I do not know how to get it from the IPolygon object. I tried getting the ...
4
votes
3answers
2k views

Visual Studio 2010 templates for ArcGIS missing

It seems that I do not have ArcGIS templates in VS 2010 templates folder - \Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\ and as a result ArcGIS ...
9
votes
2answers
273 views

Custom implementation of ArcGIS function

I would like to find out what it takes to create a custom implementation of an ArcGIS function. In particular, I would like to implement GeoAnalyst.ISurfaceOp2.Visibility() in order to get it to run ...
3
votes
1answer
357 views

Problems reading data from a file geodatabase using an OleDbConnection

I'm able to connect to an ESRI fgdb using an OleDbDataAdapter and read the attribute table just fine - from within visual studio. However, when I put the code inside a windows service it crashes (no ...
3
votes
0answers
246 views

IUniqueValueRenderer on Polyline and Points made my Features all invisible

I am currently using IUnique value renderer like this: foreach (string nodeType in nodes) yield return new KeyValuePair<string, ISymbol>(nodeType, CreateNewSymbol() ); public static ...
3
votes
1answer
456 views

Unable to create temporary GeoDatasets in g_g_g folders

I am converting a VBA macro that was written for ArcGIS 9.3 to a VB.NET project using the ArcGIS 10.0 .NET SDK. I am getting the following error whenever the code tries to create a temporary ...
6
votes
1answer
804 views

ArcGIS 10: AddIn Extension loading toolbox issue

I have an extension class in an ArcMap addin project of which loads a custom toolbox into ArcToolbox when the user opens ArcMap or opens a previously created map. My toolbox gets added to ArcToolbox ...
10
votes
2answers
783 views

ArcGIS 10 add-in: Top-level exception handling

The ArcGIS 10 add-in I'm working on is pretty simple -- just a tool control and a dockable window. I'm handling the specific exceptions I anticipate occuring at the source and throwing everything ...
4
votes
3answers
847 views

Get part of polyline based on 2 points in Arc Engine

Currently I have a layer with polylines; in another layer, I allowed the user to create 2 points on the polyline. I want to know if there is a function for the polyline feature that I can use to get ...
6
votes
1answer
925 views

ArcMap Addin - add interoperability connection programatically

I'm currently building an add-in for ArcMap - ArcView using the .Net framework. The user of ArcMap and the Add-in should access data published from WFS services. I am aware that it is possible to ...
1
vote
1answer
280 views

Integrate ArcGIS 10 extension INTO ArcEngine 10

I was wondering if there is a way at all to use some of ArcGIS 10's extension into arc engine. A good example would be if we could put Arc Hydro extension into ArcEngine. Thanks and Regards, Kev
5
votes
1answer
470 views

.NET And ArcGIS 10x - Where have all the wrappers gone?

With prior versions (to ArcGIS 10x) of ArcGIS, the .NET wrappers used to be placed in a dotnet directory. Where are they located with 10x? With prior versions, I used the absence or presence of this ...
3
votes
1answer
424 views

Choice approaches for passing a selected feature to a method in ArcObjects? (C#)

It pains me to ask such a basic question, but after several hours (not exaggerating) of trying to figure this out and failing, I come to GIS.se What I am trying to do is pass a selected feature ...
3
votes
1answer
246 views

ArcGIS10: Publishing GPtools etc. in AddIns

I'm creating an ArcGIS 10 add-in in .NET C# which contains some tool commands and an extension class. This extension is being launched on application start-up. If I create any custom GP Tools, ...
1
vote
1answer
259 views

Capturing Feature Dragging and Dropping, ArcEngine 10 .net 4

I am currently trying to implement something that captures the feature that i clicked on and dragging. Basically i want to be able to "OnMouseUp" figure out the item I was dragging, so I can do some ...
2
votes
1answer
334 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 ...
3
votes
1answer
437 views

Null values in plugin data source

How do you appropriately setup a plugin data source to allow for null values (in .NET - C# preferred)? I'm currently setting up a field using: field.Type_2 = esriFieldType.esriFieldTypeSingle; ...
3
votes
1answer
759 views

How can I programmatically add a new feature template to the “Create Feature dockable window”?

This is a new question but a continuation of this post: How can I programmatically display the "Create Features" dockable window in ArcMap 10? I like the new template system in ArcGIS 10 but for ...
5
votes
1answer
2k views

How can I programmatically display the “Create Features” dockable window in ArcMap 10?

When I start editing in ArcMap 10, by default the "Create Features" window is automatically opened and docked. Stopping the edit session hides this window. When I use the IEditor:StartEditing method ...
5
votes
2answers
2k views

How can I disable and enable an ArcGIS 10 Add-In button?

Is there a way to enable / disable Add-In buttons / tools?
7
votes
1answer
1k views

ArcGIS 10 Add-In compile problem - Why are new edits to code igonred by ArcMap?

I've been compiling and debugging my Add-In (a toolbar with a few menus, custom commands, custom selection tool and a context shortcut menu) with no issues until suddenly the edits and changes I do in ...
1
vote
2answers
177 views

How can I determine whether a feature class is a 3D feature class (HasZ)?

I would like to be able to determine whether a feature class passed to a procedure is a 3D feature class (hasZ) or not. How can I do this in VB .Net & ArcObjects?
5
votes
1answer
617 views

Why is SymbologyControl missing symbols in XP?

I'm using the the code form SymbolForm.vb in this sample: Change layer rendering using the SymbologyControl It's working great on my developer machine with Windows 7, 64bit. But when I deploy the ...
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
1answer
1k views

How to show attributes of a new feature in Attribute table area when using IEditor3 and IEditTemplate, ArcGIS 10

ArcObjects SDK for .NET and ArcGIS 10 Desktop Quick snippet to set the stage: IEditor3 editor.StartOperation(); IFeature newFeature; // fill out newFeature.Shape, etc. newFeature.Store(); ...
8
votes
2answers
1k views

Can custom map tiles be consumed via ArcObjects within my ArcGIS 10 Desktop AddIn?

Can I programmatically consume and render custom map tiles in ArcMap via our ArcGIS 10 Desktop AddIn? The AddIn is built using the ArcObjects SDK for C#/.NET and ArcGIS 10. Pulling and rendering map ...