1
vote
0answers
98 views

ArcEngine BaseTool derived classes stops receiving OnKeyDown messages

I have two BaseTool derived classes in a custom ArcEngine application. Both tools do the same thing: start a INewBezierCurveFeedback on a first mouse click and then stop it and return the resulting ...
1
vote
0answers
100 views

ESRI Error lookup COM Exceptions [duplicate]

How do I decipher these cryptic COMExceptions that ArcObjects are throwing? I got this exception System.Runtime.InteropServices.COMException: HResult: 0x8004151C and thats it, no more info no ...
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 ...
1
vote
1answer
881 views

Getting error in applyEdits function for ArcGIS

I have been trying to add an entry to a featureLayer and in want to get a callback from this so I can update another field in it. below is my code clkListenerAddFeature = dojo.connect(map, "onClick", ...
5
votes
2answers
432 views

Is it possible to modify the ArcObjects IProgressDialog2?

It turns out that the best way to run long tasks in ArcMap is to use the IProgressDialog2. The BackgroundWorker in combination with ArcObjects (STA Threads) is a mess. However, it seems that the only ...
4
votes
1answer
102 views

Cannot use a SnapAgent alone?

I'm trying to use a standalone snap agent. Is that not possible? Here's some code: // instantiate these agents. _snapSupportAgent = new FeatureSnapClass(); ...
4
votes
1answer
219 views

What needs to be done to downgrade a ESRI addin from 10.1 to 10?

I have created an esri addin which targeted ArcGIS 10.1, however I need to have the addin to work on ArcGIS 10, what needs to be done within my solution to get it working? I have checked the ...
1
vote
1answer
65 views

meaning of createObject(Point.getClsid())

What actually does the createObject(Point.getClsid()) do?Does it create a new Point Object,and return the class id of the Point.Does it mean that each point created will have the same class id. I ...
5
votes
1answer
274 views

Converting Between Similar Classes in ArcObjects and WPF Runtime Libraries (C#)?

There seems to be an "impedance mismatch" (if I can borrow the term) between similar classes in ArcObjects and the WPF runtime libraries. For example, there is a ESRI.ArcGIS.Client.Geometry.Polyline ...
1
vote
1answer
2k views

Writing In-memory IFeatureLayer to Shapefile using ArcObjects (Engine SDK)

I've been working on this for a little while now, and can not seem to get this thing working. I've managed to export a geodatabase feature class and shapefile to a shapefile, but what I'm struggling ...
5
votes
1answer
257 views

How should I publish an arcgis toolbox via arcobjects (c#)?

I've been able to create map and image services by creating, adding, and starting configurations through an IServerObjectAdmin interface to a version 10.0 (sp4) ArcGIS server. Now, I'm shifting my ...
5
votes
1answer
282 views

Geodesic buffers for polygons

How can I create geodesic buffers around polygons? I'm on 9.3.1 ArcMap, but I need a programatic solution. IBUfferConstruction only does geodesic buffers for points. What are my options?
1
vote
4answers
2k views

AxMapControl: How to set map extent in ArcObjects?

I have a stand-alone application written in C#. I want to be able to save and restore the current map view (extent) that the user sees. I assumed that it would be as simple as saving the active view's ...
1
vote
1answer
500 views

Converting distance between nautical miles and degrees

This is such a basic question that I'm kinda of embarassed. Here is the situation: We have a certain funcionality developed that: Will check for a tolerance value (this input is given by the user ...
5
votes
2answers
509 views

What does it mean to QI and how is it done?

I'm new to Esri's Arc* interfaces, and trying to figure out how to register an existing table using the ArcObjects API. The following question answers this to some extent: Is there any way to write a ...
0
votes
1answer
528 views

Going round in Circles..Buffering/ArcObjects/VBA

I've just started learning VBA and Arcobjects, and at the moment just playing around tyring to do different things. What i am trying to do is Click on a tool, and allow the user to put a point ...
2
votes
2answers
573 views

Detect map scale from raster dataset

Let's suppose you have a raster dataset (in a folder or in a personal database). How can you detect what map scale it represents (assuming of course that all rasters have same dimensions/resolution)? ...
4
votes
3answers
153 views

How do you navigate the ArcObjects OMDS?

How does everyone get round navigating the different OMD's I can work with single interfaces no problem, but when i have to use multiple interfaces I struggle to get my head round go through different ...
5
votes
1answer
803 views

ArcGIS 10 Add-ins - How to adjust the size of an add-in toolbar?

I've built an add-in toolbar with two buttons. Works great, but I'd like to make the toolbar a little wider so that the user can see it's full caption. Is there a property I can adjust in the ...
0
votes
1answer
276 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 ...
3
votes
1answer
292 views

How to listen for ESRI drawing events using ESRI drawing tools in ArcObjects?

I am trying to make use of the built-in ArcObjects drawing tools (ie ControlsNewCircleTool) - but I need to listen for the events so I can add the drawing graphics to the database in our application. ...
1
vote
2answers
141 views

How do I use the OverviewClass in ArcObjects?

I want to display an Overview map - I know how to do it using a separate PageLayout or MapControl - but I noticed ESRI has an OverviewClass - how do I make use of this with the AxMapControl?
3
votes
2answers
349 views

ArcObjects IFeatureConstruction::PlanarizeLinesFromCursor error

I wrote a little tool in ArcObjects/C# for planarizing a line feature class. I am using IFeatureConstruction::PlanarizeLinesFromCursor because I need to apply a query filter. Now, I figured out a bug: ...
1
vote
1answer
224 views

Get the names of currently visible rasters from a catalog

I have a simple win form app with a map control on it. The map has a layer (MADtedLayer) that was initialized from a catalog in a personal database (Access). The files displayed are DTED. I need to ...
5
votes
1answer
874 views

Drag a Feature in ESRI, ArcObjects Engine (AxMapControl)

I'm trying to implement moving a point feature in a custom C# ArcGIS Engine application on an AxMapControl. I've already created a custom tool to do some other things. And I can track when the user is ...
5
votes
3answers
1k views

How to let the user select a spatial reference using ArcObjects?

I need to build a tool where the user selects a coordinate system for a given CAD file. What is the easiest way to do this with ArcObjects? Obviously, I could populate a list with the hundreds of ...
0
votes
1answer
109 views

Implement IEditSketch interface for custom cad tools

I want to build cad tools which will be used in municipality applications on esri.Let me tell the question.The user wants to edit on the map and does it by using IEditSketch.But i want to write a ...
1
vote
2answers
413 views

How to create a Esri Context Menu on desktop development

How can i create a context menu on ESRI Arcgis Desktop.And after creating it,how can i use it while a base command is open and active.I use C# but i can understand visual basic. Thanks for your ...
1
vote
2answers
792 views

ESRI Desktop Zoom to the feature

i find a feature by using IFeatureClass.Search then i want to show the feature on the screen.How can i do that ? is there a zoom interface or else ?
6
votes
1answer
1k views

How to always enable an ArcGIS toolbar?

On ArcMap 9.3.1, is there a way to ensure that a toolbar is always enabled? In my case, I want the Standard toolbar (the one with new/open/save/print icons) to always be visible. I'd like the ...
2
votes
1answer
624 views

Custom Application throws HRESULT if the MXD/MXT has layers with data source missing

This is in continuation to my previous post regarding getting ArcMap reference without launching it. The idea of the application is to map layers (pointing currently to an unreachable server; ...
4
votes
4answers
187 views

IEditSketch and IEditSketch2

What is the difference between IEditSketch and IEditSketch2? Also why there are same interfaces with the same name only with a difference "2" at the end of the interface's name ?
4
votes
3answers
480 views

“ZoomToLayer” not working

I am trying to call ZoomToLayer from my custom code (shown below). ESRI.ArcGIS.esriSystem.UID pUID = new ESRI.ArcGIS.esriSystem.UID(); ICommandItem CmdItem; //pUID.Value = ...
2
votes
2answers
345 views

Throwing E_FAIL errors so edit operation is aborted

I need to abort an edit operation somewhere, determined by a certain condition. Heres the code I'm using: private const int E_FAIL = -2147467259; private void ...
7
votes
1answer
793 views

ArcObjects - Get units from ISpatialReference

How do I get the units (meter/feet) from an ISpatialReference object in ArcObjects?
5
votes
4answers
363 views

Can I store an ArcObject inside a BLOB or XML field?

I'm having this crazy idea here...Is it possible to store an ESRI object inside a blob field inside a geodatabase? If not, perhaps a serialized XML representation? I'm thinking about storing ...
6
votes
2answers
789 views

Problems when trying to Undo edit operations in ArcGIS

I'm trying to programatically stop/abort/undo an edit operation inside a ArcSDE environment. My environment is currently Oracle, ArcSDE 9.3.1 and in our custom code (I inherited a large ugly portion ...
6
votes
1answer
1k views

ArcObjects C#: Create Random Points fails with ERROR 999999: Error executing function

I am having trouble running some ArcObjects C# code that calls create random points. I would not be doing this in ArcObjects, but I am suffering with the same issue using Arcpy as seen here: ...
8
votes
1answer
2k views

Editing a shapefile in ESRI ArcMap (programmatically)?

Is this something that can be done? For instance if I created an overlay on a map and saved it as a shape file, I want to go and edit this (pre-existing file.) overlay...Either add points/remove ...
3
votes
1answer
598 views

Problem setting IActiveView extent

I'm having a problem when setting the IactivewViews extent. I have done it the same way on other places and it does work. In here, it just throws me a LoaderLockException. // OLD CODE ...
2
votes
3answers
976 views

Arc Objects and non-spatial table

I am a new Arc Objects user, with little ESRI experience. We are using VBA to create a spatial report on a Map Control using a mdb table. The mdb table contains a Lat and Long field, and this data is ...
3
votes
2answers
415 views

how to convert personal geodatabase feature class to coverage using arcobjects

how to convert personal geodatabase fatureclass to coverage using arcobjects with vba pls provide me any documentation or samples.
0
votes
1answer
1k views

Change color of shape in Layer File

I currently have a layer file - in this case one of the United States. This layer contains a shape for each state so if I were to open the TOC Control and expand the "United States" I would see ...
5
votes
2answers
1k views

Where is the feature cache in ArcMap?

It seems that ArcMap keeps a cache for every layer which contains features data and every time wants to refresh layer or apply a change,uses tis cache.As I found,when ArcMap wants to draw a layer from ...
1
vote
1answer
188 views

Binding IActiveViewEvents::ItemReordered to method in my ATL class

May you help me please to know how I can wire this event to my method? I have an ATL class and I need to know when a layer added to map object so that I can update my list of layers in this class.My ...
4
votes
2answers
1k views

Programmatically alter AliasName for fields defined in layer file (not underlying source)

Is there a way to alter the AliasName on a layer file only, and not the underlying shapefile or feature class? I have a few hundred layers that define joins between hundreds of tables with census data ...
13
votes
6answers
5k views

Convert between ESRI Geometry and WKT

It seems like there is no means of converting an ArcObjects geometry to the Well-Known Text representation (and vice versa) in ArcGIS ArcObjects API. The only thing I was able to find is conversion to ...
3
votes
1answer
465 views

Simplest way to add built-in commands to an custom add-in

Currently in Config.esriaddinx I have <Button id="my_UniqueID" class="MyWrapperClass" caption="My Caption" image="Images\My_Image.png" ...> </Button> and then I implement ...
3
votes
2answers
732 views

Setting Layer in the Georeferencing ToolBar in arcMap 10?

Does anyone out there knows how to set the layer in the georeferencing toolbar. There is no information in the object models. Using ICommandItem ic = ...
5
votes
1answer
372 views

How can I pass a WorkspaceName to another thread for opening?

My winforms app gets an IWorkspaceName from an IDatasetName via the GxObject selected in a GxDialog. I want to pass it across to a worker thread for opening. I know how to write multithreaded ...