Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
31 views

Using addbasemap command in ArcObjects.NET?

Here I executed the save edit command programmatically pUid.Value = "{59D2AFD2-9EA2-11D1-9165-0080C718DF97}" 'save edits pCmdItem = pApp.Document.CommandBars.Find(pUid) pCmdItem....
2
votes
2answers
141 views

Creating holes from overlapping polygons in ArcObjects and C#?

I have a polygon layer which contains some overlapping polygons. I want Holes instead of overlapping polygons. i tried some code ESRI.ArcGIS.ArcMapUI.IMxDocument mxd = ArcMap....
1
vote
1answer
143 views

Python, comtypes and ArcObjects: The specified product or version does not exist on this match this machine

Im trying to incorporate the Snippets Module on another machine running 10.3.1 I've sucessfully apdapted it to script that uses it with 10.5, along with the comtypes module. However, a machine running ...
1
vote
1answer
67 views

Inscrutable behavior of ArcMap add-in?

I'm developing an ArcMap add-in that takes some specific data from our database, generates some new layers on the map, then populates a multi-select box within the add-in. All of that was largely ...
3
votes
1answer
64 views

Using Union tool in ArcObjects?

I am currently working with the Union tool of ArcObjects but I do not know how to properly pass the input_features to the union object. I´ve tried several methods but all throw an Automation Exception ...
1
vote
0answers
75 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
2answers
189 views

Comparing geometry of two features to get changes using ArcObjects and c#?

I would like to compare the geometry between two feature, Already I selected the two feature. How do I start the comparison? depend on the image below I need to write code to compare this two ...
4
votes
1answer
62 views

File Doesn't Exist/Isn't Supported Error - Running Python Script through C# ArcObjects

I have a script that is run using a combination of ArcObjects and a python script. The process starts in C# Arcobjects code, I create a geoprocessor, and then I run a toolbox tool (python script) with ...
1
vote
2answers
247 views

Updating all attribute data in Feature Layer using ArcObjects

I have a layer with over 250,000+ features, and I want to update all the attribute data using ArcObjects and C#. I have written the code below and it takes around 3 hours to perform the update. Can ...
0
votes
1answer
86 views

ILayer to IFeatureLayer casting problem in VBA

I am facing problem with ILayer to IFeaturelayer casting in ArcObjects(VBA) after casting debugging time it is showing error message. Run-time error(Type Mismatch). error getting at **** For i = 0 ...
-1
votes
1answer
76 views

Checking if selected layer is poly line or point in ArcObjects C#? [closed]

My TOC contains two layers one polyline and point. If i selected polyline layer execute the polyline related code..else if selected layer is point execute the point related code. How do I get ...
2
votes
1answer
164 views

Creating multiple features in Featureclass using ArcObjects?

I am tried to create 10 points and store in a featureclass.But it store only one point that is p9. How to store multiple points code: ESRI.ArcGIS.Carto.IFeatureLayer flay = lay as ESRI....
1
vote
1answer
69 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
204 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
105 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
37 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
100 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
54 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. ...
0
votes
0answers
46 views

How to instantiate a IGxObjectProperties given a path to a File Geodatabase (C#)?

I want to use the IGxObjectProperties to get information from a file geodatabase. How would I go about doing that? I have tried simple casting but I get a run-time exception. var ...
1
vote
1answer
52 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
70 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
205 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
83 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
158 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 ...
0
votes
0answers
98 views

Adding data set to map shows NullReferenceException in ArcObjects? [duplicate]

I am trying to add data set to map when i run the code it shows object reference not set to an instance of an object at mxd.AddLayer(flay); Here My code try { ESRI....
1
vote
2answers
366 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
93 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
0answers
148 views

ArcGIS, menu item with “Missing” in my own toolbar

I am developping a ArcGIS 10.2 toolbar using ArcObjects in .NET. On a pc, we installed the toolbar long ago and we had the bad idea to change the installation folder when we installed the next version....
0
votes
2answers
61 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 ...
3
votes
1answer
113 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
170 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
97 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
82 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
727 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
467 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
124 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
60 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 ...
0
votes
0answers
53 views

Raster symbology from joined table

I have mxd document with table joined to raster layer. I am trying to symbolize raster data based on field from joined table. While it is posible in ArcMap, I can't accomplish this with ArcObjects. ...
2
votes
1answer
154 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
290 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
75 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
54 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
170 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
97 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
109 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
103 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
289 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
1answer
89 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
92 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
141 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 ...