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)

2
votes
2answers
84 views

Arcobjects 10.3.1: TOC listeners

I am writting an addin using ArcObjects C#. I have setup the following listeners, but they are not being hit. My code at the top of the addin.Extension class is: ... private static ...
1
vote
1answer
38 views

GUID to open Geoprocessing Enviroment Settings Window through C#?

I am trying to let the user click the enviroment button at the bottom of my custom form and have the Enviroment Window Pop Up. I cannot seem to locate the Enviroment Settings Window GUID anywhere? ...
2
votes
1answer
40 views

Accessing array of values(height, intensity) associated with raster from ArcObjects without looping?

I am trying to access the array of point values(mainly height and intensity) from a raster through C# without looping through values. I am looking for a direct pointer to the array of values inside of ...
1
vote
1answer
35 views

Get FeatureDataSet of a invalid FeatureClass

I have a project that repairs broken datasources. One goal of the project is to add the datasource of a featuredataset to repair any broken feature classes. However, so far the only way I've seen to ...
1
vote
1answer
38 views

Arcobjects ConstructBuffers produces Error -2147220889?

I use the Esri-function ConstructBuffers in my arcobjects program. The call of this method produces a Error with code -2147220889. Looking up the error constants it says: ...
0
votes
0answers
39 views

Arcobjects java samples AutomationException: 0x80040112

Been trying to run arcgis java samples through eclipse on Win7x64 machine. I am using JRE provided in developer kit. All the samples fail at below code if ...
0
votes
1answer
38 views

Shapefile location change repair. HResult E_FAIL

I'm working on a ArcMap plugin using ArcObjects that will change the location of a shapefile that is broken. However, I'm getting HResult Error E_Fail whenever I try opening the feataure class. This ...
1
vote
0answers
29 views

Using SET methods when feature classes setup in GDB using python, comtypes, ArcObjects?

from snippetarcgis102 import CreateMXD,CType,NewObj import snippetarcgis102 import os snippetarcgis102.GetStandaloneModules() snippetarcgis102.InitStandalone() import comtypes.gen.esriCarto as ...
0
votes
0answers
25 views

Geometry Location In Respect To Another Geometry

I am trying to figure out where a geometry is residing in respect to another geometry. My Image explains things better, I have Square nodes A, and B. and I have circle Child nodes X, and Y. I have all ...
1
vote
0answers
41 views

Save Edit destroys the Sketch Tool

I have edit tool(s) in ArcObjects (ArcGIS10.3). The first tool is "Create a new Polygon' and following is the code: Note: mpEditor is class member and Project is in Edit Mode private void ...
0
votes
0answers
31 views

Set alias for subfields when performing query

As mentioned within the ESRI-docs we can set an Alias for the subfields of an SQL-query performed onto a file-geodatabase as follows: IQueryDef2 filter = (IQueryDef2) ...
1
vote
0answers
76 views

Releasing all schema locks in ArcGIS GDB

We use ArcGIS 10.3 products (Server, Desktop) with Oracle database. Our problem is we can not make any schema changes because of shared schema locks unless we stop all services and kill all database ...
0
votes
0answers
39 views

Get geographic coordinate system for its projected coordinate system in ArcObjects.NET

I have geometry in PCS, that must be convert to GCS, while PCS is projection of GCS. How can I get ISpatialReference for PCS's parent using ArcObjects.NET?
2
votes
1answer
108 views

How to find a point with highest elevation in area using ArcObjects

Is there a way to find a point with highest elevation in specified area by using ArcObjects? Let's say that I have a raster with DEM and I would like to establish some areas of interest in this ...
1
vote
0answers
14 views

IRasterLayerExport3 doesn't save raster until ArcMap closes [closed]

I'm trying to export raster using IRasterLayerExport3, but it saves raster file only after closing ArcMap. It seams that IRasterLayerExport3 creates placeholders for raster (empty file - 3kb), and it ...
0
votes
2answers
68 views

Any extention Open File Dialog

GetOpenFilename doesn't work in arcobjects VBA, so I have to use pGxDialog. Standard pGxDialog doesn't let to open any file I want, a few extentions are available only (shp, dxf, xls...). Maybe, I ...
0
votes
0answers
36 views

Problem with Viewshed analysis in ArcObjects

I want to execute the Visibility Analysis Tool using ArcObjects 10.3. I tested the tool in ArcMap and it works great with the test data I provided, hence it should work as well in ArcObjects code. The ...
1
vote
1answer
30 views

IfeatureLayer.search() second time return error

I have the following method in my code and have a button that when clicked run this code. In the first click all of code runs without error. but in second run I receive an error on line: ...
1
vote
2answers
45 views

How to get the Features of FeatureCursor?

I am unsure how to correctly use IFeatureCursor.NextFeature method. I've selected a few features: I need to assigne the selected features into few pFeature variables (pFeature1, pFeature2, ...
4
votes
1answer
79 views

Cannot correctly iterate IFeatureCursor (calling ArcObjects from Python)

I have started recently using some of the ArcObjects inside my Python modules. Having all the useful posts and insights shared by @matt wilkie et al, I was able to get started pretty quickly ...
0
votes
0answers
17 views

How to add image to Globe using ArcObjects

I'm using ArcObjects 10.3 .NET. I need to programmatically add .jpg image to Globe. Image is not georeferenced, but I have four points for bounding polygon (not rectangle). What I need to do is ...
1
vote
2answers
48 views

How to get the geometry type FIELD value of attribute table?

The problem is: I need to copy every cell's value of attribute table of some feature to string array. I do it by assigning cell's value to string variable StrBuf one by one. To check the result the ...
1
vote
0answers
43 views

Scale Selection Symbols with Reference Scale using ArcGIS Engine?

With an ArcGIS Engine application, I am trying to figure out how to have the Selected Symbols scale with reference scale when selected using ArcObjects. They are currently not scaling correctly in ...
0
votes
0answers
17 views

How to Install ArcObjects? [duplicate]

I'm looking to install ArcObjects so I can write an ArcMap add-in in .Net. Where can I find a download for ArcObjects?
1
vote
1answer
17 views

How to Use IWorkspaceFactoryLockControl in Java

I have tried to convert the interface but failed. IWorkspaceFactory2 pWorkspaceFactory; pWorkspaceFactory = new CadWorkspaceFactory(); ipWsFactoryLock = ...
2
votes
0answers
93 views

Creating Checkout Replica in ArcObjects (from ArcSDE geodatabse to file geodatabase)?

I'm trying to create a checkout replica of some feature classes from an ArcSDE geodatabase to a file geodatabase using ArcObjects. I'm trying to follow this: How to create a replica in a connected ...
1
vote
2answers
101 views

Spatial Query between polyline features and point features within specified Buffer

I'm new to GIS (so I'm lost on this) and looking for a C# code sample to help me do 2 types of spatial queries. I have 2 Layers only. First layer is pipelines, which are polyline shapes so I can ...
0
votes
1answer
68 views

Add Layers to Arcmap 10 Crashes

Would anyone know the reason why this happens? and possibly a way to fix it. I am stumped In the following code. The first addlayer works, but crashes on the second addlayer with a 'vshost32.exe has ...
0
votes
2answers
155 views

Merging features into single programmatically

I have a shapefile with polygons. I can merge them manually by going into edit session and, selecting a some features to be merged, and then using merge button under Editor. How to do this ...
1
vote
0answers
66 views

How to Get ArcFM Session name

I need some information about session name getting. i am working on ArcMAP VBA with ArcFM database i have create some validation tools on this data. i provide error report with validation name but ...
4
votes
2answers
70 views

Is there a LINQ-provider for GeoDatabase

I want to query my ArcSDE geodatabase using LINQ but I don´t know if there is an ESRI-provider that may also read geometries and which is able to handle archiving as well. Thus I´d like to read data ...
0
votes
0answers
49 views

How to find NetworkAnalysis extension with ArcObjects?

I'm using ArcGIS 10.0 My code: IAoInitialize init = new AoInitializeClass(); var a= ...
0
votes
0answers
35 views

Finding nearest point on polygon if layer has more than one polygon using ArcMap AddIn?

I am developing an application using ArcGIS .net add-in. An application generates some maps based on point and polygon datasets. In that, I am able to find the polygons within the search distance. ...
0
votes
1answer
48 views

Finding whether point on polygon or not in ArcGIS VB.NET?

I am working on GIS application. I am trying to find whether a point is located within a polygon or not. I have written a piece of code for this using Relational operator but the Contains() method of ...
0
votes
1answer
43 views

Capturing an event On Sketch Finish in ArcObjects

I am using IEditEvents_Event and IEditor. I invoked the GarciaUI_CreateNewFeatureTask and used: pID.Value = "esriEditor.SketchTool"; pCommandItem = pCommandBars.Find(pID); if (pCommandItem != null) { ...
1
vote
2answers
94 views

Unable to open IWorkspace using IWorkspaceFactory with operating system authentication

I'm trying to open a workspace from the IWorkspaceFactory interface. Here's what I'm trying at the moment: ESRI.ArcGIS.Carto.IFeatureLayer featureLayer = (ESRI.ArcGIS.Carto.IFeatureLayer)pLayer; ...
0
votes
0answers
44 views

How to create polyline feature through mouse picking in arcobjects (ArcMap VBA)

I want to crate polyline feature using mouse picking points(first point and second point) through pick points coordinates in ArcMap VBA could you please tell how to take mouse pick points. Private ...
1
vote
2answers
614 views

How to set up Visual Studio Development Environment for ArcGIS 10.3.x to develop Add-In?

How should I set up a development environment for making add-ins for ArcGIS 10.3? There is no walk-thru anywhere that I can find for this. First, ESRI says Visual Studio 2013 is supported but in other ...
3
votes
1answer
67 views

ESRI add-in not installed automatically after build (locked-down environment)

We are using Microsoft Visual Studio 2010 to compile ESRI ArcMap 10.0 add-ins. Generally it works without problems. But we have some PC with very high security policies. For example they have (beside ...
1
vote
1answer
63 views

Get currently open Attribute Window

I have an AddIn (C# VS 2010) that depends on the selected items in the Attribute Window (This is the right-click on the Layer Attributes Table Window). When the user hits Start Editing I want to get a ...
0
votes
0answers
15 views

ArcGIS AddIn to load qgis symbology

I'm looking to make an add-in for Arc so that I can load symbology created in QGIS. I'm familiar with Arc and the way symbology works in it, but I'm unsure what the best way to tackle QGIS symbology ...
2
votes
2answers
88 views

How to get FeatureClass or FeatureLayer from FeatureClassID?

I did a network analysis with ITraceFlowSolverGEN and the method FindFlowElements(). Then I did a queryId's with INetElements which returns the FeatureClassId and OID. Now I want to get the ...
0
votes
0answers
47 views

Sr Lock on created gdb is not releasing

My problem is sr lock is not releasing on gdb , also please see that code can be improved? Below is my code public String exportGDB(String whereClause,IServerObjectHelper serverObjectHelper) // ...
0
votes
1answer
42 views

Get CostDistance IGeoDataset as raster in C# ArcObjects

I have a CostDistanceCode that works correctly. I cannot cast the IGeoDataset result into a raster. The last line returns a null raster. How can I resolve this? // Declare the output ...
3
votes
0answers
54 views

LasDatasetToRaster does nothing to the Raster Layer

I have been trying to figure out how to clip and rasterize a LiDAR map file programmatically (Not through arcpy) I use C# but read many languages. So far I have been able to access and assign the LASD ...
0
votes
1answer
45 views

Activate / Deactivate customized ITool from Form in ArcObjects?

I'm using ArcGIS 9.3/VB6, and I have a little issue with the activation of a custom Tool: I have a Class, that implements both ICommand and ITool When I click on ICommand, the form is launched ...
0
votes
0answers
41 views

Problem for Map Topology creation in ArcMap

I will create a map topology in ArcMap. My code defines the layer in my map topology but after call EditTopology Tools, a message show "No topology .... bla bla bla.." Any ideas why this would be ...
0
votes
0answers
20 views

GetAllProperties on Propertyset is slow for line network data

I am trying to resolve an issue with an ArcObjects extension. This particular portion of logic, gathers metadata for layers in the map. It works fine with regular data layers but with network data ...
0
votes
1answer
88 views

Determine whether table is registered in geodatabase with ArcObjects

In ArcCatalog we can register a table in the GeoDatabase using the tables context menu. Now i'm trying to find a way with ArcObjects, to detect whether an ITable is already registered, is this even ...
3
votes
0answers
36 views

Is possible to create a shapefile with a specific encoding using ArcObjects?

I have the code to create a shapefile programmatically, something like this 28310 - Create a new empty shapefile programmatically moreover I am able to put the data from a layer in it. It works ...