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)

3
votes
3answers
233 views

Is there any way to write a snipet of code with function of “SDELayer -o register” command

I try to create a geodatabase using some SQL command and then register some tables of it with SDE. I create an empty geodatabase using sde post installation and then create tables and other database ...
6
votes
1answer
1k 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 ...
2
votes
0answers
141 views

What is the best approach to interacting with map layers after a JTX Job Change event when a new MXD is loaded?

To further clarify, my question is pertaining to a WMX/JTX job activation from within ArcMap, not Workflow Manager. I have a JTXJobListener class where with a JobChanged method and that is ...
12
votes
1answer
403 views

Hyperlink tool use in ArcEngine

I'm having some difficulties using the hyperlink tool (ControlsMapHyperlinkTool) in ArcEngine. Does anyone have any experience with it? It looks like it behaves correctly except that every time a ...
2
votes
1answer
617 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
2answers
241 views

How do you determine if feature is editable?

I am using the FocusMap.FeatureSelection to return all the currently selected features. I want to process only the currently editable features and leave the remainder alone. How can I quickly ...
2
votes
1answer
751 views

How to insert DateTime null using IRowBuffer

I am using IRowBuffer/IFeatureBuffer to insert fields to SQL Server 2008 DB. When inserting a field I am using: public void SetValue(IRowBuffer buffer, string field, object value) { int ...
2
votes
2answers
539 views

Measure the angle of each corner of a polygon

How can I automatically measure the angle for each corner of a polygon (in a vector GIS) using VBA and ArcObjets? Thanks
3
votes
1answer
447 views

Count the number of corners of a polygon

How can I automatically count the number of corners that has a polygon uisng VBA and ArcObjects? Thanks
2
votes
2answers
379 views

Calculate the perimeter of a polygon

I have a feature layer with land parcels. Each parcel is a polygon. So, I want to calculate the perimeter of each polygon using VBA and ArcObjects. Is there any ready code in VBA and ArcObjects to do ...
1
vote
1answer
222 views

Check if a land parcel (polygon) has access on a road or not

I have a feature layer with land parcels as polygons. Polygons (land parcels) are either adjacent in all its around sides by other polygons but some of them have a road a which is not actually a ...
3
votes
2answers
735 views

How can I deserialize json to create an IRecordset?

I've got a Silverlight client that serializes a FeatureSet and sends to an SOE. I'd like for the SOE to deserialize the json into an IRecordSet. ESRI.ArcGIS.SOESupport.Conversion has a method for ...
2
votes
0answers
119 views

NE Attribute editor not honouring custom selection

I have an application based on Network Engineer & ArcObjects. A part of the functionality requires users to draw a rectangle an select features. It should "add" to the current selection. I ...
3
votes
1answer
482 views

How do you sort a Standalone table that's already visible within ArcMap?

I'm using ITableWindow2.FindViaStandaloneTable--that works. I can get the ITableWindow for the stand alone table and the table from that. Then I try to sort using an ITableSort. No exceptions, but ...
4
votes
2answers
866 views

Comparing two featureclasses using C#

I'm sorry, I know this is a pretty simple question but am having trouble getting this to work. Basically, I have 2 linear featureclasses and they both have the same fields and spatial reference. FC1 ...
8
votes
2answers
654 views

Why do I need ArcGIS Server just to host ArcObjects in a web service?

I get this question a lot from web developers, and would like to have a short concise answer for them ... Why do I need ArcGIS Server just to host ArcObjects in a web service?
4
votes
1answer
229 views

Access is Denied error on ProjectEx call

I need to be able to convert a lat/long coordinate into a point coordinate and am having trouble getting my code to work. I created a test app isloating the code that is giving me problems. I'm ...
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 ?
3
votes
2answers
2k views

How to Open a Table, Convert it to ShapeFile & projecting the data using the X and Y

it's my first project using ArcObject, i create this interface : http://i118.photobucket.com/albums/o104/b_sara/Cap2-1.png i did programme the button "Parcourir" ( browse ) using a commonDialog, it ...
3
votes
1answer
341 views

AGS10 Soap Geometry/Project function vanishes

So I am doing a pretty simple process that looks a lot like right out of the SOAP API/SDK for AGS10. My webservices takes a Lat/Lon coord from a mobile app, I reproject it to Web-Mercator to identify ...
6
votes
1answer
1k views

Arcobjects: Zoom to first queried feature

I'm attempting to query a feature class for all features that meet a certain criterion (in this case, the Status field is NULL). However, I'm not getting very far into the attempted method before ...
1
vote
1answer
479 views

ArcObjects DataStat Error

I have some code that adds a bunch of group layers into ArcMap based on a table within ArcMap. The code works fine in VBA, however in VS 2010 I get an error on the "pEnumVar = pDataStat.UniqueValues" ...
1
vote
0answers
121 views

Arcobjects - Properties Grid

Does anybody know a way, in VBA, to change the grid interval? For example: if my layout´s scale is 1:2000, my grid will have 200 meters interval and my layout´s scale is 1:5000, my grid will have 500 ...
2
votes
0answers
255 views

Where can I find the latest WMX (JTX) Object Model Diagrams for ArcGIS 10?

I'm looking for a version that includes ESRI.ArcGIS.JTXUI--I'm hoping someone knows of an updated and online version of C:\Program Files\WMX\Developer Kit\Diagrams\ObjectModel.pdf. For reference, ...
2
votes
2answers
475 views

Different behavior of ArcObjects for different languages

I have the same code in C++ and C# for ArcMap. This code loads a document from disk and trying to get a picture for PictureSimbol object. But in case of C++ error occurs(HRESULT = E_UNEXPECTED ...
2
votes
3answers
1k views

ArcObjects - Select record from table

I´ve a project in VBA but I hit a wall that I can't pass. What I want to do: I´ve a table (of parcels) with the fields: ID, Name, Area, Scale. For each Parcel there is a different scale! I input, in ...
7
votes
3answers
771 views

Looking for a region growing algorithm

I work with a raster set representing land values and I would like to automatically create polygons with random shape but with certain size and/or land value given a centroid point of each polygon. ...
5
votes
1answer
412 views

New Snapping while editing vertex's in ArcEngine 10

Is it possible to use the new (not classic) snapping functionality when editing the vertices of a polygon feature in ArcEngine 10. I would like editing vertices to behave exactly the same as editing ...
1
vote
2answers
447 views

Access Feature Classes on Multiple Database Schemas with ArcSDE

I am using ArcObjects to access a GeoDatabase that was set up with ArcSDE 10 and SQL Server 2008 R2. In this particular case, I have some tables set up on alternate schemas (this is to replicate a ...
3
votes
1answer
438 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 ...
4
votes
1answer
341 views

How can I import external bookmark (.dat) using ArcEngine

Does anyone know how to use arcObjects (specifically ArcEngine for me) to import a bookmark (saved as a .dat) that was created and saved externally using ArcMap? I have an ArcEngine application that ...
0
votes
0answers
234 views

ArcObjects - Select fields to Layout

I´ve a project wich I need to do the following task: there is several points with coordinates (X,Y) in the correspondent table. I select, manually, a few points and i want to, trought Arcobjects, send ...
2
votes
2answers
803 views

Reference for IDockableWindow?

Kind of a newbie with ArcObjects .NET. Trying to open a dockable window with the following code: public class CAD_Test_01_button : ESRI.ArcGIS.Desktop.AddIns.Button { public CAD_Test_01_button() ...
1
vote
0answers
271 views

Spatial Reference and Area/Length Attributes relationship

I currently allow users to add a shape file in. From the shape file, allow the user to generate a new layer base on the polygons from the shape file's polygon they imported. Generating the new ...
1
vote
2answers
173 views

Associating data in a form with an SDE Layer

I was wondering if there was a way to associate/persist some data about an SDE featureclass when viewing via ArcCatalog. I know you can have metadata - but I don't want to use that, and I'm pretty ...
3
votes
2answers
2k views

How to quick get all symbols for feature layer with ArcObjects

I have a FeatureLayer and I want to enumerate all the symbols used in it. Simple way - it is to call SymbolByFeature for each features. Something approximately likes: Dim l as IFeatureLayer Dim c as ...
2
votes
1answer
2k views

Programmatically adding custom GP tool to a toolbox

I'm having issues add a custom GP tool to my toolbox programmatically using c#. The tool gets added to my toolbox OK but then when I try to open it it fails adding a red cross to the tool and ...
5
votes
1answer
2k views

ArcGIS 10 add-in: Bring dockable window to front

I have an ArcGIS 10 ArcMap add-in written in C# .NET 3.5 that implements an ESRI.ArcGIS.Desktop.AddIns.DockableWindow (which also inherits from UserControl) and an ESRI.ArcGIS.Desktop.AddIns.Tool that ...
3
votes
1answer
638 views

Convert feature class to raster based on attribute field values

As part of a tool, I’m trying to convert a feature class to a raster based on attribute field values. I have accomplished this conversion using IRasterConvertHelper, but this is done without ...
1
vote
2answers
3k views

ArcObjects VB.Net - Looping through Layers from TOC and ListBox

Greetings, I'm creating a tool in ArcMap 10 using a windows form... its been a struggle (maybe some of you recognize the same themes in my questions) because this is the first time I've really messed ...
4
votes
3answers
476 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 ...
3
votes
2answers
956 views

ArcObjects VB.Net - Editing in Geodatabase

Greetings, I have a script in VB.Net for grabbing values from one feature and assigning them to another. It works fine on shapefiles, but upon importing the same shapefiles into a file geodatabase, I ...
2
votes
1answer
225 views

Save spatial reference to application settings?

Having created a tool as a macro for several geoprocessing tasks, I'm saving user input to application settings so the user doesn't have to enter all required data on each use. I'm stuck on saving ...
3
votes
2answers
545 views

Trace Downstream task: which ArcObject interface and method?

Does anyone know what ArcObjects interface and method the Trace Downstream trace task on Arcmap's Utility Network Analyst toolbar calls?
3
votes
1answer
497 views

ArcObjects VBA: Setting Spatial Reference for Geometry Bag

Greetings, Within the ESRI SDK resources there is an example of combining polygons by use of a geometry bag. The following code appears: 'Define the spatial reference of the bag before adding ...
3
votes
2answers
921 views

Fastest way to create an ESRI Grid and populate cell values?

In terms of processing speed what's the fastest way of creating and then adding values to a raster? The values will originally come from ASCII files which can be about 500MB in size - ideally I ...
6
votes
2answers
2k views

Finding Nearest Feature Methods VB ArcObjects

Greetings, I have: (a) point feature class (b) polyline feature class I am trying to loop through the (a) point feature class to find the nearest feature from the (b) polyline feature class. Just ...
1
vote
2answers
511 views

Opening a custom model's geoprocessor window with ArcObjects

I have developed a custom model using ModelBuilder in ArcGIS, and I would like to use a .NET Base Command to open the geoprocessor parameter window for this tool so the user can enter their ...
3
votes
1answer
619 views

How can I programmatically project the Z value of a z-aware feature point, using ArcObjects in .NET/C#?

I discovered the following code leaves the Z coordinate of featurePt untouched: // if not WGS84 project it if (!SpatialRefsEqual(featureSpatialRef, srWgs84)) { // featurePt here is a Z-Aware ...