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
1answer
73 views

ArcGIS 10 arcpy to add a WMS Service to MXD

I want to batch insert WMS layer to my arcmap MXD project with python/arcpy script. Some issues has been unanserwed, here my "state of art": ESRI IDEAS ESRI GeoNet community #1 ESRI GeoNet ...
2
votes
1answer
57 views

Creating custom forms in Arcmap 10.3

I am hoping to make a custom form within ArcMap 10.3 where the end user can select a recently digitized shape file (or feature), and enter values of specific attributes through a custom form. This ...
0
votes
1answer
41 views

How can I delete an ITable?

I have created an ITable but I need to be able to delete it if it already exists. How can I delete an ITable? This is the code that I have so far which checks for an existing ITable. public static ...
0
votes
1answer
51 views

Highlighting selections using ArcObjects?

I have a problem you want help: In ArcMap 10.2.2 In my code I want to highlight selections but I can't. My code: void drawPoint(IFeature pfeature) { IRgbColor rgbColor = new RgbColorClass(); ...
1
vote
1answer
27 views

Get the fill stipple of a predefined PictureFillSymbol in ArcMap

In ArcMap in symbol-dialog you can choose a predefined symbol for your polygon-features, i.e. agricultural area. This is a 1 bit picture with foreground- and background color. I grab this symbol as ...
0
votes
0answers
32 views

Does intersect result in non-simple geometry?

I have some features retrieved from SDE where I perform an Intersect on. Both feature-classes from which the features come from are polygon-featureclasses. IFeatureCursor cur = ...
0
votes
1answer
446 views

IUniqueValueRenderer with three fields?

I have found some ArcObjects code to get unique values on one field for a IUniqueValueRenderer but I can't conceptually wrap my head around how to do that with 3 fields. Would this be .Net code or is ...
0
votes
0answers
37 views

Storing Select Statements for ArcGIS Query Layers: LYR Files vs Views vs Application Code

I've inherited maintenance of an extension to ArcGIS Desktop (ArcObjects, C#) that allows users to view spatial data and related attributes from our databases (SQL 2008 R2). This is of course ...
0
votes
1answer
664 views

ArcGIS 9.3.1 VBA: Unable to loop through datasets using 'ILayerGeneralProperties' when raster catalog is present

I have a simple project which involves the use of several buttons in order to make various datasets visible depending on which category is required at the time. It works fine using the popular ...
0
votes
2answers
208 views

Creating an INFO table using ITable in Arc (Java)

I'm trying to set up an info table in an addin for ArcGIS 10. I'm using Java and Eclipse IDE. The code I have is here: public class Tables { String database = "C:\\GIS"; String nameOfTable = ...
0
votes
1answer
99 views

getting scratch and current workspace ArcGIS10 using Java

I'm trying to get the scratch and current workspaces returned as path names (Strings) using java in ArcGIS10. however I can't seem to get anything returned. I'm guessing it's to do with accessing ...
0
votes
1answer
1k views

Safely replacing ArcSDE feature classes using transactions in ArcObjects?

I am using C#, ArcGIS Server 10, MS-SQL Server 2008, and I want to replace an ArcGIS SDE feature class inside of a transaction. After the deletion of the feature class, I have to create a new one with ...
2
votes
1answer
204 views

How to get an ArcGIS custom tool to run fom the command line?

I have been experimenting with ESRI's CalculateArea custom tool and it works fine running within ArcGIS from a toolbox. Then I wanted to see if I could run it as a standalone script from the ...
1
vote
2answers
252 views

How can i figure out what Geoprocessing Tool is selected in ArcMap? (ArcMap 10)

I am working on an arcobjects extension, that basically provides universal batch / task scheduling for the geoprocessing tools (similar to ERDAS's Batch/Scheduling System), the project is 99.9% ...
2
votes
1answer
44 views

Create Feature Class from another Feature Class

I have a Feature Class and I want to create another Feature Class that is basically a subset of the first Feature Class. For example, I have a Feature Class containing public parks which I want to use ...
2
votes
1answer
523 views

Get geometry of Line Callout using ArcObjects?

How can I extract the geometry of a line callout and the border of an annotation featureclass in ArcGIS desktop. I want to transfert those to a separate featureclass. I'm able to get the Anchor point ...
2
votes
2answers
536 views

Modifying existing edit tool to make new tool using ArcObjects?

I want to create versions of the edit tools that will add a parallel, offset segment each time I add a segment regularly. Is it possible to put a wrapper around the existing tools? Or otherwise add to ...
1
vote
2answers
179 views

Accessing PAT,NAT of coverages using arcobjects

I want to access the polygon attribute table (PAT) and node attribute table (NAT) of an arcgis coverage using arcobjects VBA, is this possible?
1
vote
1answer
3k views

Display Selected Features Attributes in User Form

I'm trying to convert my ArcGIS 9.3 code to ArcGIS 10 via Visual Basic 2008 Express; however, I'm having a couple issues. The goal is for a user to select a feature in ArcMap, click on this custom ...
1
vote
1answer
489 views

Get all features in extent not working correctly in PageLayoutControl

I want to get all features in the current extent of my PageLayoutControl's ActiveView. I got it working for a MapControl as described here. With my PageLayoutControl it seems that I don't get the ...
0
votes
0answers
23 views

Having Trouble Masking Geoprocessing tool

The output TinLayer that is produced is the rectangle extent of the contour's feature. I want it to be the shape of the contour's feature instead. When I create a custom feature class in the ...
0
votes
2answers
45 views

Converting dimension feature into image using ArcObjects?

I have a task to convert dimension feature into image with ArcObjects. I need to get real image that I see in ArcMap (with right size and spatial reference, of course) instead of turning feature ...
0
votes
1answer
135 views

SpatialFilterClass to WFS filter for ArcObjects?

I want to translate a MapServer Query URL to a WFS GetFeature query. Then I try to serialize a SpatialFilterClass to WFS filter. any idea ?
2
votes
1answer
52 views

How to symbolize multiple layers with different EMF's in ArcObjects C#

I'm trying to symbolize multiple layers with an emf logo. When debugging, it gets through the first layer then crashes. I'm thinking it might have something to do with the variable "emf1" not ...
1
vote
1answer
162 views

TableToTable tool fails in ArcObjects depending on output location?

The code I am writing for a button (ArcObjects 9.2, Visual Studio 2005) takes the attributes for selected points in a shapefile and writes them to a table: Dim pGp As GeoProcessor = New GeoProcessor ...
1
vote
0answers
32 views

ArcObjects 10.1 Misplaced graticule labels after map export to jpeg

I´m currently working on an ArcObject 10.1 Extension which 'produces a Map' and exports it´s Page Layout to 'jpeg' after completion. The code follows the snippet for 'Create JPEG (high-resolution) ...
2
votes
1answer
83 views

ITopologicalOperator::Simplify not removing self-overlaps

I maintain an application whose main job it is to take esri-ish things from users and turn them into sql spatial objects in our database (2008 R2). Below is an excerpt that may be useful: public ...
0
votes
2answers
2k views

Accessing raster dataset's attribute table? [closed]

I need to loop through the rows in the raster attribute table and add a date for each row.
1
vote
0answers
26 views

Activating new Snapping feature in ArcGIS Engine while editing features and vertices?

I'm working on new Snapping Capability of ArcGIS Engine. I want to use snapping capability using ISnappingEnvironment class while users are editing a feature or moving vertices. I tried ...
1
vote
2answers
649 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 ...
1
vote
1answer
335 views

Set size of map in PageLayoutControl to print ScaleBar underneath, not within map

For printing we have a PageLayoutControl where the user can select the map extent, he wants to print. I like the map to fill only a square in the middle of the page so that the title, the ScaleBar and ...
1
vote
2answers
566 views

How to center map in PageLayoutControl?

In my print preview dialog I have a PageLayoutControl loading the same map as the main view's MapControl. I want the map in the PageLayoutControl to center at the same position as the MapControl. ...
1
vote
1answer
294 views

Dynamic defining of transformation type for ISpatialReferenceFactory.CreateGeoTransformation call [duplicate]

Suppose given a point (IPoint) in some coordinate system. Required to transform it to another coordinate system. If both of coordinate systems are predefined, we can use IGeometry2.ProjectEx with ...
6
votes
3answers
4k views

Using ArcObjects to choose GeoTransformation?

I’m currently building a Desktop add-in tool with ArcObjects that: Asks a user to select a feature class Reprojects the feature class to Web Mercator Executes some geoprocessing The initial ...
1
vote
3answers
2k views

How to merge several tables/feature classes into single geodatabase object in ArcObejcts?

My project is ArcGis extension, which uses a specific set of tables and feature classes. I want that this structure to behave like single geodatabase object, so user cannot delete part of it's schema. ...
1
vote
1answer
2k views

How to get the “queried” value from attribute table and put it in a textbox?

I am new in VBA, I have a problem about querying an attribute table....: I have a table of a layer (wish.shp) with the fields: owner_ID, Value, Area. I made 3 textboxes in a userform, I input the ...
1
vote
1answer
255 views

Get Feature Symbol

I am using this code to get the symbol associated with a feature: IFeature feature = geoFeatureLayer.FeatureClass.GetFeature( geoFeatureLayer.FeatureClass.FeatureClassID ); ...
1
vote
0answers
35 views

How do you symbolise a 32-bit raster in ArcObjects? [closed]

For rasters that are above 16-bit - you cannot apply a colormap. So what is happening when you symbolise in ArcMap a 32 bit raster - it's certainly possible. I'm trying to emulate this funcitonality ...
0
votes
1answer
610 views

Editing attribute table with VBA? [closed]

I am a newcomer to coding. My task is to create a code snippet that enables the user to edit values (rows) in the attribute table. My attribute table consists of points with basic information such ...
0
votes
1answer
512 views

Focus ArcMap application Window VBA

How would you focus your ArcMAP application window using VBA? I have a script that runs and selects polygons and zooms to them, but I would like ArcMap to focus and come to the front at that point. ...
1
vote
2answers
394 views

Programmatically switching to edittemplate using ArcObjects?

How can I programmatically switch to a edittemplate in: ArcMap 9.3: IEditLayers pEditLayers; IFeatureLayer pFeatLayer; IMap pMap = ((IMxDocument)Application.Document).FocusMap; pEditLayers = ...
0
votes
2answers
875 views

Adds ArcGIS controls in the Visual Studio Toolbox window for dragging and dropping into a design view surface

I want to drag and drop MapControl into a design view, but I have an error: System.Runtime.InteropeServices.COMException(0x80040154):Classe non enregistrée (Exception from ...
1
vote
1answer
34 views

Create a mapping between polyline and raster in ArcObjects

In my case I have two sources of data: a vector shapefile with a polyline (expressing the path) and a raster with some integer metadata values available for each cell. What I would like to do is to ...
1
vote
0answers
65 views

ArcObjects OnChangeFeature event not firing unless you move feature

I am displaying points, lines and polygons on ArcMap as features with an addin. I want my end users to be able to change features (move geometries, add vertex, delete vertex etc) and get the updated ...
1
vote
2answers
67 views

AddIn button/tool force Arcgis 10.2.2 to close

Issue : AddIn button/tool force Arcgis 10.2.2 to close. Development environment: Visual Studio 2013, .Net framework 4.5 (I tried with 4.0 also), Arcgis for desktop 10.3 Works fine on development ...
0
votes
0answers
22 views

hold some data at layer object

Is there in arcobjects the ability to store some data at the layer in table of content sth. like ILayer.Tag or an Interface which I can misuse for this?
1
vote
2answers
529 views

ArcGIS COM API Error

i am using the arcGIS api to make a plugin for arcFM, when i try to run this code Type t = Type.GetTypeFromProgID("esriFramework.AppRef"); System.Object obj = ...
1
vote
1answer
230 views

ArcGIS - ICommandBars exception

Testing my VB.NET 2010 app in ArcMap an exception occurs when ICommandBars is instantiated. ' zoom to selected Dim mxApp As ESRI.ArcGIS.Framework.IApplication Dim numUID As UID = New ...
1
vote
1answer
147 views

Spatial reference does not match data frame for Bing Maps

In ArcObjects I am loading Bing Maps as a base layer. It's coordinate system is esriSRProjCS3Type.esriSRProjCS_WGS1984WebMercatorMajorAuxSphere. On top of the base layer, I am trying to load points, ...
4
votes
1answer
82 views

Multiple features within a single feature layer with different geometries

I am working with ArcObjects SDK 10 for .NET. There is already a geospatial database at my disposal. So I am trying to map its spatial context to ArcObjects context. We have objects like state, ...