Tagged Questions

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)

1
vote
0answers
238 views

Assign Custom Band Combination To Image Catalogs In ArcGIS

I have an image catalog composed of 4 band rasters. I would like to use the same image catalog, and set custom renderers for a true color and false color combination and save each of those catalogs ...
3
votes
2answers
2k views

How to list ActiveView SelectionChanged event delegates in ArcObjects .NET?

I currently have an issue in an ArcObjects ArcMap add-in where my event handlers are seemingly-randomly being unhooked from the event I'm trying to catch. I've spent some time looking for a way to ...
2
votes
1answer
1k views

How to set the workspace to a featureclass from an unknown file gdb?

When a user loads an mxd, I am getting the IWorkspace object from the featurelayer's dataset: IFeatureClass featClass = (IFeatureClass)featLayer.FeatureClass; IDataset dataSet = ...
8
votes
2answers
517 views

ArcObjects diagram/object model?

Is there an existing object model diagram for ArcObjects? Something that can be printed out as a large poster.
5
votes
1answer
1k views

Automate export of ArcMap legends

I've been building legends for my javascript websites that use 9.3.1 services. I know there's the ESRI legend tool for older services but I don't feel that it does a good job of producing legend ...
3
votes
2answers
445 views

Cannot persist to a blob field

Following this initial thread I'm having some problems implementing what was suggested here: Can I Store An ArcObject inside a BLOB? Well, following the link Kirk provided, I've came up with this: ...
5
votes
1answer
338 views

Intersect between Surface and Ray

I am interested in finding the intersection of a Ray and a Surface in ArcObjects. I already know of two solutions. First solution is to use the Locate method of ISurface: Dim intersectionPoint As ...
3
votes
1answer
964 views

How can I execute my custom model's tools in VB.Net?

I want to execute one of my tools (which I created with Model Builder). I can execute a built-in tool by this code, but when I change the tool name with Model Tool Names it doesn't work. I gathered ...
0
votes
1answer
468 views

Any issues in converting a AutoCAD 2010 DWG to FeatureClass?

I have a small .NET script that uses ArcObjects such as CADtoFeatureClass to convert DWG files to ESRI FeatureClasses. This standalone program has been working great with DWGs created in previous ...
3
votes
1answer
141 views

Refreshing ArcIMS service with ArcObjects

Does anyone know if it is possible to refresh an ArcIMS service with ArcObjects and if so do you have a nice code snippet? :) I think it might have something to do with interface IIMSAxlRequest - but ...
3
votes
2answers
543 views

Count the number of segments of a polygon based on the angles

I wish to count the number of segments of a polygon that has a length less than 25 meters when the angle between two vertices is not close to 180 degrees i.e. if the angle is between 178 to 182 ...
5
votes
2answers
474 views

ArcGIS - IExtension.Startup() not launching

I have an ArcGIS 10 extension that will not launch .Startup() when ArcMap loads. I can get it to hit when I go to Customize->Extensions and un-check/re-check the extension name. Is there a setting ...
2
votes
2answers
471 views

Create a dbf table by copying the structure of another dbf table

I have a dbf table and I wish to automatically create another dbf table with a different name but with exactly the same structure i.e.fields as the existing table. Is there any ready code in VBA and ...
3
votes
1answer
379 views

Python metes and bounds automation in ArcMap

We are using the metes and bounds in old pipeline alignment sheets, when in an edit session in ArcMap, to plug in the "direction/length" values to generate the line segments. Does anyone have any ...
2
votes
1answer
464 views

convert SDE table to polygon feature class with Arcobjects

I figure there's a few ways to convert a table to polygon feature class, but what's the fatest and cleanest way to do it? My table has lat, long, azimuth, and beam width and based on all this info I ...
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 ...
5
votes
1answer
536 views

Determining ESRI File Geodatabase release version?

Is there any method in Python, ArcObjects, or the File GDB API for determining the release version (9.3, 10.0, etc.) of a file geodatabase? There is a need to find all of our shared 10.0 version file ...
5
votes
3answers
980 views

How do I remove a join (between a standalone table and a feature layer) with ArcObjects?

I already know how to do a table join with ArcObjects, via the IDisplayTable, IMemoryRelationshipClassFactory etc. interfaces. Here are some links to resources that have example code for this: ...
9
votes
4answers
2k views

Connecting line features and determining the length of the longest line

I have a line feature (see image) representing a river that I created using the Stream_to_Feature tool. The attribute table contains several records representing different lines - the problem is the ...
5
votes
1answer
682 views

Geometric Network - Listening to network feature connection changes in the IObjectClassEvents::OnChange event

I need to be able to tell when a particular type of feature, that participates in a geometric network, is having its geometry automatically modified due to the geometric network. What i mean is that ...
2
votes
2answers
632 views

How to creat a graph from a Field values (VBA_ArcObjects)

I have a combobox that shows all fields of a shapefile. I want to get these values programmatically in a label--Count, Minimum, Maximum, Sum, Mean, Standard Deviation--and populate a graph of the ...
14
votes
3answers
2k views

ArcObjects: Memory leak in IFeatureClass.Search (only on SDE with direct connect)

UPDATE 6/30/11: ESRI Support say they have reproduced the issue and have opened a bug report (NIM070156). I have determined that there is a memory leak (in unmanaged heap memory) that occurs when a ...
3
votes
3answers
741 views

How do I convert existing fields to lat and long using the Calculate Field tool?

I am trying to convert my X and Y fields from feet to lat and long. I can easily do this in Calculate Geometry from the attribute table, but I'm needing to use this in a model and Calculate Geometry ...
3
votes
2answers
805 views

Changing Names in TOC Doesn't Update Legend Properly

This is related to an ArcMap add-in I coded up this past week. I'm trying to rename a layer in ArcMap and have the legend refresh properly. The renaming part is working fine, however I cannot get the ...
4
votes
1answer
583 views

Is it possible to reverse the trend/values of a raster?

For example - if I have a raster DEM covering a stream with higher elevations in the west (up river) and lower elevations in the east (down river) is it possible to reverse this trend so that the east ...
2
votes
2answers
651 views

Topological relationship between two polygon feature layers

I have two polygon feature layers: one representing land parcels and one representing roads. Some land parcels (polygons) coincide with a part of a road (another polygon feature). How can I check ...
2
votes
2answers
798 views

Measure each angle of a selected polygon

This post is also a continuation of a previous one. I have the code (in VBA and ARcObjects) shown below to measure each angle of a selected polygon in degrees. I have the following problems: 1. Some ...
3
votes
2answers
2k views

Create Polylines from arrays of points

Let me describe the data setup. A line has been provided as an array of coordinate pairs, one for each vertex. This array is variable in size, anywhere from 2 to 200 coordinate pairs per line. What I ...
3
votes
1answer
255 views

Reference to ArcObjects IUknown interface

Does anyone know what the ArcObjects reference library is for the IUnknown interface? I migrated the code below into Visual Studio and there is an error on the "Dim pSelItem As IUnknown" line. ERROR ...
1
vote
2answers
353 views

Count the number of points of a polygon

Actually, this is a continuation of a previous post entitled "Count the number of corners of a polygon". Although I managed to count the number of points (i.e. saying corners) of each polygon the ...
2
votes
1answer
168 views

Open a table for editing in a Console outside of ArcMap

I'm trying to write a C# console application to convert a CSV of Lat,Lon data into a Table using insert/update cursors. However, I am having the darndest time figuring out how to get a reference to an ...
2
votes
1answer
643 views

ArcMap Commands .NET code equivalent

What is the .NET code equivalent for this general ArcMap command syntax: Application.Document.CommandBars.Find(ArcID.Query_ClearSelection).Execute() I have been using this one below as a work ...
1
vote
4answers
512 views

How can I preserve ObjectIDs in a Featureset returned from an SOE?

I'm returning a featureset from an SOE. To create the FeatureSet, I'm first creating a Recordset, inserting features into it, and then serializing it as json using SOESupport. The client then ...
3
votes
3answers
235 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
407 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
626 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
243 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
771 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
550 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
452 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
383 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
223 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
748 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
120 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
486 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
875 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
661 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
230 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 ...