Questions tagged [arcobjects]

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.

409 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
52 views

Asynchronous creation of FeatureClass with BackgroundWorker failed

I use BackgroundWorker to create asynchronous class elements. When running to IFeatureClass pFeatureClass = pFeatureWorksapce.CreateFeatureClass(pFileName, pFields, null, null, esriFeatureType....
2
votes
0answers
148 views

How export geodatabase version differences in ArcPy?

With ArcObjects I have this code in C# to export the differences to a XML file: ESRI.ArcGIS.GeoDatabaseDistributed.IVersionDataChangesInit pVDataChgs; var pvTemp = new ESRI.ArcGIS....
2
votes
0answers
102 views

Using EntityFramework in ArcObjects?

I want to use an ORM to retrieve some data from The SQLServer such as user permissions. I am using ArcObjects SDK 10.4 . Although I have added the EntityFramework 6.0 and my tables to a model , ...
2
votes
0answers
49 views

Listing Tables for several MXD documents using ArcObjects?

I want to do a "Extending ArcObjects: Windows Application" app: I have a code snippet that lists all the layers from the MXD files stored in a directory: string[] fileEntries = Directory.GetFiles("C:...
2
votes
0answers
69 views

Setting ID in query as IQueryDescriptions OIDFields throwing error?

I have a layer and the query for layer is a select query consisting of ID field in it. This query is being executed on top of Oracle and its throwing an exception for field "ID" when "ID" field is ...
2
votes
0answers
172 views

Adding to group layers in loop is slow in ArcGIS Engine?

I am using ArcGIS Engine 10.5.1. I wanted to ask and see if anyone else has encountered this and or found a work around. I have a loop in c# where I am taking a large set of layer files and adding ...
2
votes
0answers
36 views

Drawing 3d polygon element on Arcobject axSceneControl?

I have standalone application (ArcObjects C# 10.1) uses axSceneControl. How to display on the scene 3d polygon elements? I have implemented drawing 3D line elements using ISimpleLIne3DSymbol. I tried ...
2
votes
0answers
182 views

ArcObjects.NET, append with automatic field mapping not working

I got a strange problem with ArcGIS 10.4 using ArcObjects.NET. By using the code below, if I want to use the Append tool, I have to send it the source and the destination. Both of them are of Object ...
2
votes
0answers
130 views

Removing slivers from IPolygon using ArcObjects?

ArcGIS Desktop Basic 10.1 with Spatial Analyst and 3D Analyst I have multiple neighboring polygons which I unionize. On occasion the result has slivers where the multiple polygons meet. I have been ...
2
votes
0answers
122 views

Communicating with separate ArcGIS Add-in?

Is it possible to access the functions or properties of an ArcGIS Add-in project (C#) from another Add-in at run time? I have a custom ArcMap application extension installed and I would like an Add-...
2
votes
0answers
160 views

Create a shapefile from inMemory workspace

I am trying to convert a raster dataset into a shapefile using IConversionOp.RasterDataToPolygonFeatureData API. See the code below: IConversionOp conversionOp = new RasterConversionOp() as ...
2
votes
0answers
2k views

"Error HRESULT E_FAIL has been returned from a call to a COM component

I am new to ArcGIS and stuck with "Error HRESULT E_FAIL has been returned from a call to a COM component." error while converting gdb to geodatabase through Arcgis .net SDK verstion (Arcgis Desktop ...
2
votes
0answers
175 views

Debugging ArcObjects SDK 10.3 addins with ArcMap 10.4

I recently upgraded my version of ArcMap from 10.3 to 10.4.1, including all extensions, patches, etc. I did not remove the 10.3 ArcObjects SDK, as I wanted to continue to develop 10.3 compatible ...
2
votes
0answers
224 views

How can I access custom parameters for WMS layers via ArcObjects, and create a new layer file with the updated parameters?

I have a set of data in PostGIS related to a large number (7,000) of species, and have a single PostgreSQL view, and corresponding GeoServer layer, that contains data for all species. Based on input ...
2
votes
0answers
66 views

Validating attributes of tables added in ArcMap?

I have validated the Telco Features based on the feature class name and their Type_Name. But I am not able to do same for tables like connection table etc. and others which mostly have different ...
2
votes
0answers
111 views

How to use IGxDialog to save output feature class

I found this code to take input through IGxDialog box from a guidebook: IGxDialog gxd = new GxDialogClass(); gxd.AllowMultiSelect = false; gxd.ButtonCaption = "Add FileGDB"; gxd.Title = "Add All ...
2
votes
0answers
131 views

Automation Error while running Geoprocessing tool using VBA in ArcMap?

I am trying to run a geoprocessing tool in ArcGIS 10.2 as a part of a VBA GUI (kind of) that I'm trying to create - unfortunately it gives me an automation error. I'm new to VBA and ArcGIS. The ...
2
votes
0answers
94 views

ArcObjects Property Page usage

I have a Dockable window control that I want to have several properties associated with it. Specifically a data source. I currently have to hard code an Image service or a file GDB at a specific path. ...
2
votes
0answers
225 views

ESRI Workspace Domains sometimes not implementing ICodedValueDomain2

I am attempting to use the .SortByName() and .SortByValue() methods of the interface ICodedValueDomain2. I use the same extension methods from an IWorkspace, however if I open the IWorkspace from an ....
2
votes
0answers
62 views

Using LineFillSymbol in polygon layer from ArcObjects?

I'm creating a symbol hatch: var lineFill = new LineFillSymbolClass { Angle = 45, Offset = 0, Separation = 0.1, Outline = new SimpleLineSymbolClass { Style = esriSimpleLineStyle....
2
votes
0answers
43 views

Using the MensurationDockWin in ArcObjects .Net

I have a DockableWindow add-in that had it's own map control. I would like to be able to use the mensuration tools from the Image Analysis window. I can add the standard Measure Tool with the ...
2
votes
0answers
289 views

Convert Blob file to an ArcObjects object

I have a blob file which I take from a database. This blob is actually an MXD file. I want to load this MXD to an axLayoutControl (ArcGIS Engine). But for security reasons I do not want to write this ...
2
votes
0answers
113 views

arcobjects modify vertices coordinate in both interior ring and exterior ring

I have a multiple parts polygon and I want to move all vertices of this polygon. I use exteriorRingPointCollection and interiorRingPointCollection to get all vertices. But I cannot get the result I ...
2
votes
0answers
209 views

Change coordinate system to add buffer in meters

I have am trying to add functionality to allow users to find points that are within a buffer distance inside or outside the parameter of a polygon. The map is in IProjectedCoordinateSystem so to my ...
2
votes
0answers
79 views

ArcObjects Custom Tool for a VB App

We have an old VB6 app that uses the map, toolbar and toc controls. On the toolbar, we've added the custom menu so users can add other built-in tools or tools they've created. One of our customers ...
2
votes
0answers
45 views

Is it possible to create an ArcGIS library?

Can I create my own ArcGIS library that contains commonly used features inside my own functions/methods? I would like to make a dll that can be reference in my projects for using common features such ...
2
votes
0answers
90 views

Validation on save in arcobject

I want to validate all the features that have been changed since last save. Currently I'm trying to do this in an ESRI.ArcGIS.Desktop.AddIns.Extension. My sde database is not versioned. public class ...
2
votes
0answers
565 views

Create Feature Class from another Feature Class using ArcObjects for .net application in C#?

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
0answers
78 views

Can not export some annotaton layers using QuickExport in ArcObjects.NET

I develops add-in for ArcMap that exports different layers to .mif format using ESRI.ArcGIS.DataInteroperabilityTools.QuickExport Geoprocessor gp = new Geoprocessor(); gp.OverwriteOutput = true; ...
2
votes
0answers
112 views

Mock geometry for spatial filtering

Does anyone know how to mock IGeometry (e.g. using NSubstitute)? I want to use it within an ISpatialFilter, however I always get an exception on the last line of the code beyond. COMException: The ...
2
votes
0answers
275 views

Show a datagrid in a dockable window

I am trying to show a list as a datagrid full of strings in a dockable window. I can bind the list to the datagrid but I can't for the life of me get the datagrid to show in the dockable window. I ...
2
votes
0answers
266 views

Getting representation geometry created by rules (not manually overrided) using ArcObjects.net?

I have feature class with representation rules and now need to extract representation geometry from selected features. If representation geometry is manually overrided, I can get it just using ...
2
votes
0answers
73 views

TOC layer symbol changed EVENTS in ArcMap

I want to do something when user changes one of TOC layer's symbol. I am using .NET in arcMap 10.0 . How can it possible with ArcObjects ? Is there any events that will fired when user change symbol ...
2
votes
0answers
80 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 ...
2
votes
0answers
580 views

Open an existing document (MXD) inside ArcMap

I try to open a specific MXD inside a running ArcMap-Application, but I always get "System.UnauthorizedAccessException" and ArcMap crashes. I have an Add-In-toolbar with a button, which opens a form (...
2
votes
0answers
44 views

Catching data frame caption changed event

Is there a way in ArcObjects to catch the event that the data frame's caption has been changed or a layer's caption has been changed?
2
votes
0answers
287 views

ArcGIS .Net GP tools debug

I'm developing a GP Tool with .Net ArcObjects SDK. I would like to debug my GP tool but I haven't figured how. I have tried to enable background processing in Geoprocessing Options and attach ...
2
votes
0answers
348 views

When debugging ArcGIS add-in, can't use “Edit and Continue”

I've been working on this add-in for years, and just today set up a new computer with VS 2013 and ArcGIS 10.3. When I run my add-in from the debugger, breakpoints can be hit, but I can't edit when ...
2
votes
0answers
326 views

IDockableWindow ability to auto size?

I have a ArcObjects 10.2 vb.net Custom Add-in that is a dockable window. The dockable window displayes a windows form that has listboxes, textboxes, panels, tab panels, etc. that the user interacts ...
2
votes
0answers
116 views

Understanding lifecycle of .NET geoprocessing tools on ArcGIS for Server?

I've done a number of .NET geoprocessing tools for ArcGIS 10.1 that get published as geoprocessing services on ArcGIS Server. Lately we've seen behavior that makes me question something I thought I ...
2
votes
0answers
239 views

Removing property page from Layer Property Sheet using ArcObjects?

I need to remove definition query tab of the Feature Layer or Table property page. Is it possible to do this with arcobjects at all? Here is what I am trying to do: UID uid_comCategory = new ESRI....
2
votes
0answers
1k views

Visual Studio not creating “.esriAddIn” file

I have an addin that I've been maintaining with Visual Studio 2010 Express for quite some time with no issues. Recently my computer was replaced and Studio 2012 Express was installed. Since that time ...
2
votes
0answers
64 views

How can I draw sectors by lon/lat (for each record) in a table

I found some short code in the net (Sub CreatePie and Sub CalLine) that draw only for one point. I want to draw many point, so I make a table Temp.tab with 4 columns: Cellname, Lon, Lat, Azimuth I ...
2
votes
0answers
442 views

Searching for features added in an edit session with QueryFilter only works when using object id or no WhereClause

I'm getting strange behaviour reading added features from a feature class while within an edit session. The feature class is in a personal geodatabase and is open in the map control in an ArcEngine ...
2
votes
0answers
228 views

ArcGIS Engine PageLayoutControl Get Page Coordinates from geographic coordinates

I have an ArcGIS Engine application that contains a PAGELAYOUT CONTROL In the code progressing I have acquired the centroid's of some selected polygons in real world coordinates (ie x = 2484242.45 ...
2
votes
0answers
41 views

How to add all tables from selected Personal geodatabase

I have a personal geodatabase which contains multiple tables and feature classes which are within feature datasets. I can add all the feature classes to ArcMap but I am unable to add all tables. Can ...
2
votes
0answers
3k views

Unable to create object class extension COM component?

I'm getting the error: Unable to create object class extension COM component in ArcMap 10.2 when trying to open feature classes from old geodatabases. I'm also getting "error repairing the layer"...
2
votes
0answers
216 views

AxTOCControl - Using ArcMap context menu

Using Ax*Control's in a custom dialog that runs within ArcMap. When I right-click on a feature layer in the AxTOCControl, and go to display the context menu, is it possible to display and make usable:...
2
votes
0answers
301 views

how to create map package programatically using C#?

I'm using .NET SDK to create ArcMap toolbar with arcgis 10.1. how do i create map package .mpk programatically? http://resources.arcgis.com/en/help/main/10.1/index.html#//006600000403000000
2
votes
0answers
173 views

Pulling ArcSDE feature classes from current map to fieldmapping as DETable?

I'm working with SDE layers in arcmap. trying to avoid pointing to the sde file itself. I've tried workspace.Pathname, it was empty for sde remote workspace. I've also tried IName from workspace, ...

1
2
3 4 5
9