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
1answer
71 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
13 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
53 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
30 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
23 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
33 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
56 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
15 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
39 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
27 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
16 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
13 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
48 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
60 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
39 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
135 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
33 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
52 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
34 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
28 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
31 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
27 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
60 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
24 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
176 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
56 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
59 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 ...
1
vote
2answers
70 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
34 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
32 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
45 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
34 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
36 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
19 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
55 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
34 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 ...
3
votes
1answer
55 views

ArcGis 10.2 returning an enum status of EsriLicenseNotLicensed

I have an old VS project that was using ArcGis for a map control. I now have 10.2 on my machine. code that I used previously to find & initialize the license no longer works. I know the enums ...
4
votes
0answers
95 views

Open ArcMap in Maximized State in C#?

I am running windows 7 enterprise with ArcMap 10.2 l have an application that processes data, when the data is finished processing I have a button that will show the results in a datagrid. From this ...
0
votes
1answer
25 views

Setting color to line layer using VBA in ArcGIS Desktop?

I am getting the compile error at pcolor.RGB. I want to add a color to the line feature. How to modify the code? Public Sub surya() Dim pmxdoc As IMxDocument Dim pstylegallery As IStyleGallery ...
4
votes
1answer
42 views

Knowing Previous Command Item C# in ArcObjects?

I am creating a tool for ArcGIS Desktop that will execute a command when I click a place on the map. The Code looks like this: public class TileLasLoader_Tool : ESRI.ArcGIS.Desktop.AddIns.Tool { ...
2
votes
2answers
54 views

How to make change to layer in ArcMap with python/ArcObjects?

In ArcMap 10.1 from the python window I am attempting to rotate a symbol for a point. After I run my code I can look at the symbol properties and the rotation expression is set on the symbol, however ...
-3
votes
1answer
49 views

not all code paths return a value [closed]

While writing the following code i am getting "not all code paths return a value" error for GetLayerByName() function. private ILayer GetLayerByName(string slayerName) { ...
2
votes
1answer
51 views

Attribute Table Window loses highlighted selection after Addin is Opened

I'm so new to GIS that this question might seem dumb to a lot of GIS Developers. I have taken over a project that is an AddIn for an ArcGIS Desktop app. C# VS 2010 project. I can get the Selected ...
4
votes
2answers
44 views

Is there a way to get the current way a table is sorted in order to iterate over it?

I have a tool in ArcObjects that I'm working on where the OnClick() method finds the current row in the active attribute table (not the selection, but the row that has the carat to the left of the ...
0
votes
2answers
46 views

How to fill combo box of a form with the map layers name

While writing the code for adding all the layers in arcmap into combobox of a form, I am getting the error: 'Bestaurents.frmRestaurentviewer' does not contain a definition for cmblayer and no ...
6
votes
1answer
179 views

How to add a new Parcel inside Parcel Fabric from existing parcel features (ArcObjects)

I want to create a new parcel in a parcel fabric layer. I have the x, y coordinates for the parcels to be created. I searched around a lot and found really nothing that actually "CREATES" a parcel. ...
3
votes
1answer
52 views

IApplication in AxMapcontrol (FindExtensionByCLSID in ArcEngine Application)

I have a small problem. I have begun rewriting code to work with an AxMapControl. Now at first this seemed to work and I was able to get a lot of code converted and working with the AxMapControl, but ...
2
votes
0answers
35 views

Is there a way to change the selection in the Editor Attributes window, while maintaining current selection?

I was wondering if anyone knew of a way to alter the selection within the Editor Attributes window while maintaining the current selection set. In the image below, I've manually selected an item in ...
0
votes
0answers
32 views

ArcGis Engine app crashes when map contains class extension

I have an ArcGIS Engine 10.1 app. It has been running fine. It opens an .mxd on initialization. The .mxd contains 3 feature classes that have class extensions applied. I just tried to make a change ...