A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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.

Filter by
Sorted by
Tagged with
1
vote
1answer
106 views

Casting igxobject to ifeatureclass in ArcObjects C#?

In above Image text box show the file path. I selected file from the igxdialog and file stored in igxobject. Now to how to casting from igxobject to ifeatureclass of selected file... but igxobject is ...
1
vote
1answer
325 views

Getting fid attribute and field name in ArcObjects and c#?

I am new to ArcObjects In above attribute table I write query to select "0" in all fields. After I get cursor for looping selected features.but my problem is I want show the FID number and field ...
2
votes
1answer
198 views

Setting up IGeoProcessor2 object in .NET (C#)?

I'm wondering if I'm instantiating a new class with the IGeoProcessor2 object correctly. It's working the way I have it now, but I feel like there's something else I should be doing so I don't have to ...
1
vote
1answer
41 views

ArcObjects C# : What are the valid inputs for IGxObjectProperties.GetProperty()?

The function IGxObjectProperties.GetProperty() takes in a string, i.e. "ESRI_GxObject_Name". So far, the ones I know are: ESRI_GxObject_Name, ESRI_GxObject_FileSize, ESRI_GxObject_FileTime, ...
0
votes
1answer
153 views

Create feature class with ArcObjects in SDE geodatabase returns No editable Layer

I Want To create Feature Class in an enterprise geodatabase with ArcObjects. This is the small part of the our plugin. In our case, we want to Create Feature Class in the database Identical to the ...
0
votes
1answer
67 views

How to retrieve color from a polygon in ArcObjects?

I tried the following code the get the polygon color, but it returns the same color (0, 0, 255) for all polygons. How can I get the color of a polygon with ArcObjects? // Get polygon. ...
1
vote
1answer
235 views

Selecting attributes with query in ArcObjects?

I have a Street_Light shapefile. It contains a field (POLE_TYPE). POLE_TYPE can only have two values: "concrete" or "iron" I am trying to select POLE_TYPE=iron. When I tried manually by selecting ...
3
votes
1answer
98 views

ArcGIS, update features envelopes without “Repair geometry”

I am developing a toolbar for ArcMap with .NET ArcObjects and I made an option to round vertices coordinates to meters (no decimals). So I change X and Y of each vertex on each feature. The problem is ...
0
votes
1answer
373 views

How to add multiple shapefiles with C# ArcObjects?

I have a folder contain 5 shapefiles. I want to develop C# code for adding the 5 shapefiles with single button click. I have created code for adding a single shapefile but how can I add multiple ...
0
votes
1answer
212 views

Adding dataset to ArcMap with ArcObjects and C#? [duplicate]

I am trying to add feature dataset to ArcMap as a layer I tried some code but addlayer needs iLayer but IFeatureDataset can't casting as ilayer How Add dataset to ArcMap? ESRI.ArcGIS....
1
vote
1answer
285 views

Casting idataset to ifeaturelayer in ArcObjects C#?

I am try to casting idataset to ifeaturelayer i did not get any idea here my code ESRI.ArcGIS.ArcMapUI.IMxDocument mxd = ArcMap.Application.Document as ...
1
vote
2answers
721 views

How to access the polygon vertices in ArcObjects

I am able to retrieve a list of polygons from the opened map layer in ArcGIS using the following C# code: IMxDocument pMxDoc; pMxDoc = (IMxDocument)ArcMap.Application.Document; ...
3
votes
2answers
106 views

Getting Null Reference Exception when adding field to first layer in map using ArcObjects?

I am trying to add a field to first layer in the map here is my code ESRI.ArcGIS.Framework.IApplication app = ArcMap.Application; ESRI.ArcGIS.Framework.IDocument doc = app.Document; ESRI.ArcGIS....
0
votes
2answers
75 views

Adding a Tool to a DockableWindow add-in

I have inherited a C# ESRI (ArcMap) add-in that needs a UI tweak (the rest of the changes are completed). And I had no previous experience with such add-ins before starting on this. The add-in in ...
2
votes
1answer
160 views

ArcObjects spatial filter not working for File Geodatabase

I do not know why my tool no longer functions properly when working in a file geodatabase (FGDB), as opposed to the personal geodatabases (PGDB) used in the past. The tool is used to find feature in ...
-1
votes
1answer
238 views

Arc Map Addin creation problem with Visual Studio 2015 and ArcGIS 10.5.1

I am working with ArcMap Addins(Visual studio 2015 and ArcGIS 10.5.1 and OS Windows 7). code compiling time I got a error. same code I have used In Visual studio 2012 and Arc GIS 10.2 it is creation ...
1
vote
1answer
189 views

How to detect geometric network issues (exhaustive check within extent), and repair them using ArcObjects

I am trying to use this tool which can be found in the ArcToolBox under data management, geometric network I need to access this tool using ArcObjects because I have loaded features into their ...
2
votes
0answers
128 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
1k 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
849 views

Converting geometry stored in SQL Server to Latitude/Longitude using ArcObjects? [closed]

I do not want to use ArcMap or any other ESRI tool except ArcObjects to accomplish this task. Another open source solution would also be fine. I need to convert geometry data from ArcGIS using SQL ...
1
vote
0answers
187 views

Geoprocessor won't execute with ArcObjects

When I use the geoprocessor in my ArcObjects code for creating a feature in the sdeworkspace it doesn't work and returns an empty path for geoprocessor output. How can I solve this problem? ...
1
vote
0answers
90 views

Mouse pick point snap to isnappingfeedback location [closed]

I have created one BaseTool for placing point on polygon feature. mousemove event showing mouse move time vertex & edges & endPoints but picked point snapped at vertex. public override void ...
2
votes
3answers
445 views

Creating Custom Layers using ArcGIS Pro SDK for .NET?

We have a Custom Extension developed for ArcMap, which includes the Creation of a Custom Layer. The Code for the Layer is similar to what you see in this Answer to Custom Layer not drawing using ...
5
votes
0answers
461 views

ESRI ArcObjects and Unit Testing the Geoprocessor dll

I have an issue with using ArcObjects and the Geoprocessor .dll library in a UnitTest environment (MSTest) in Visual Studio. When I test a program that creates an ESRI.ArcGIS.Geoprocessor object and I ...
1
vote
0answers
92 views

Pick point X,Y values getting from ArcMap window [closed]

How to pick a point on Arcmap window using with ArcObjects(BaseCommand)? I want to get X,Y values of a point. I have tried to pick point using with below code. but debugging time not showing arcmap ...
1
vote
0answers
57 views

FeatureClass.Search freeze

ArcMap add-in is freezing on .Search() by spatial filter. Here is my code, for ArcMap add-in 10.3 version. When I used it with Oracle databases, happens only on one instance, works perfectly with ...
4
votes
1answer
238 views

Get messages from erroneous python script run in C# .NET with ArcObjects

I'm trying to implement some error handling into my C# code for my .NET application. I feel like I'm missing something really obvious because I know there has to be a way to do this, but I just can't ...
2
votes
1answer
139 views

Aggregate polygons in edit session using ArcObjects and c#

I want to aggregate some polygons in edit session using ArcObjects and c# language. In other words, my purpose is to use methaheuristic algorithms for polygon aggregation. So, I want to aggregate some ...
0
votes
1answer
158 views

Automate - convert Labels and attach to predefined annotation class

I am developing pythonaddin tool which as a result should update/accumulate a predefined geodatabase annotation standard class. I am stucked at the point where I believe that arcpy has limitations ...
1
vote
0answers
149 views

ArcMap add-in to make connection and load the database on VB.NET

I'm new at Arcobjects programming. Currently I'm trying to make an ArcMap Add-in which can connect and load a database into ArcMap. I have found samples on the Esri website, but it seems not to be ...
0
votes
1answer
594 views

ArcObjects .NET - Initializing License?

I'm brand new to ArcObjects. I've got it installed, and now I want to try using it in a .NET MVC application. In the controller, I think I need to initialize the license before I can do anything with ...
2
votes
0answers
433 views

Tutorial on migrating Add-ins from ArcGIS 10.x (ArcObjects) to ArcGIS Pro for Microsoft VB.NET? [closed]

I can't seem to find any comprehensive tutorials on migrating (recreating comparable functionality) of 10.x (ArcObjects) VB.Net Add-ins to ArcGIS PRO SDK Add-ins. When migrating from Avenue, ESRI ...
2
votes
1answer
125 views

WorkspaceFactory not defined in Python comtypes for ArcObjects?

I'm trying to programmatically export a symbolized raster to an RGB TIF using ArcGIS, i.e.: perform the equivalent of Export Raster Data in ArcMap with Use Renderer and Force RGB activated. I ...
3
votes
0answers
139 views

How to undo/redo drawing polyline

I want to draw a custom polyline using mouse click events in an AddIn.Tool project without esri's build-in interfaces eg. Rubberband, IDisplayFeedback or IShapeConstuct. I got problems pushing caches ...
1
vote
1answer
167 views

How to insert rows into a geodatabase bypassing an active edit session

I'm developing an ArcMap addin with ArcObjects 10.3.1 SDK that needs to have an active edit session to work. It creates new rows after a check process and stores them in a datatable into a file ...
3
votes
1answer
186 views

Can't save persisted IGeometry object into an ObjectStream

I was able to store a serialized IGeometry object into an string field in a datatable from a File Geodatabase. For performance issues and since the object implements IPersistStream, I want to save ...
2
votes
1answer
279 views

Using Python comtypes and ArcObjects to change dataframe background color in ArcMap?

I'm simply trying to programmatically change the background colour of a Dataframe in ArcMap. I followed the beginning of this solution to access ArcObjects in Python: import arcpy import os from ...
1
vote
0answers
25 views

Saving user-imported shapefile to geodatabase

Is there any API or service out there that can do this? We have a SQL Server managed geodatabase (ArcSDE). It would be ideal to be able to create a web application where someone can upload a ...
2
votes
0answers
159 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 ...
1
vote
0answers
16 views

Map Tool Compatibility in IE & Chrome

I have a customized tool developed and running on ArcGIS server 10.0. using Web ADF The tool is used to draw a rectangle on map and mark selection to the selected area in a Graphics layer. This tool ...
1
vote
0answers
95 views

ArcObject C++ Quick Start Guide Loop layer in FileGDB [closed]

Could anyone guide on how to create console app (c++) that use ArcObjects? I've searched Google a lot on this topic but can't find any tutorial on how to do this. You may wonder why would I use C++ ...
2
votes
1answer
67 views

Can you do simple geoprocessing in .NET framework? (not mapping applications, not desktop add-ins)

So I will be creating a web application in .NET. It's a data entry application where someone will be inputting a bunch of a stuff from a datasheet and we'll suck it into some database tables that are ...
0
votes
1answer
166 views

ArcGIS Point every 100 meters along poline

ArcObjects with ArcGis 10.1 I have constructed a polyline in WGS84 that has straight segments and curved segments. The line is heavily geodesically densified. Now I have to step through every 100 ...
1
vote
1answer
225 views

What is the fastest way to iterate features for geometry operations?

There was an old GIS soft "ArcView" ; scripts in avenu language which worked much faster than my Add-ins now (made in Visual Studio in С#). So I would like understand what did I do wrong? Why is the ...
1
vote
2answers
291 views

Foreach doesn't work on features

I'm trying to do something with every feature in featureclass using "foreach" : ILayer layer = map.Layer[0]; IFeatureClass fclayer = (layer as IFeatureLayer2).FeatureClass; foreach (IFeature ...
3
votes
1answer
44 views

Can't iterate feature in while nested iteration

I need to do some operation with every combinations of features in two FeatureClasses. The "for" iterating operator is very very slow-working, so I decided to try "while" operator and using ...
1
vote
0answers
157 views

ArcObjects queries using selection set

I'm new to ArcObjects and I'm finding it difficult to work with the ArcObjects 'Feature classes'. Coming to my problem, I have a Map with few layers. I have coded for the layer names to display in the ...
1
vote
1answer
177 views

Passing data/parameter to Dockable Window in ArcObjects?

I have a Dockable Window and that dockable window consists of a dataGrid. In order to populate that data grid I want to pass a datatable and some more parameters. Here is what I did: private void ...
0
votes
1answer
141 views

Finding how many features inside drawn Polygon using ArcObjects?

I have drawn a polygon. Using SpatialFilter I found and processed all the features in it. But I wanted to get the feature count before working with the features. Is there any method that I can use ...
1
vote
1answer
51 views

Disabling Start Editing command using ArcObjects?

How do I disable the Start Editing button in ArcMap when an added ArcSDE database version is the default? IMxDocument pMxdoc = m_application.Document as IMxDocument; IMap pMap = pMxdoc.FocusMap; ...