-
Create topology with different feature classes both as single and multiple then run validate topology to find the errors using ArcObjects
I am writing code using ArcObjects 10.8.1 to find and delete the topology with a name and recreate a new topology with same name but with single feature class or different set of feature classes. However I am getting error code [-2147215017] error message [Exception from HRESULT: 0x80041957]. Here someone help with a clean…
-
How to use IUNSubnetworkManager.UpdateSubnetwork() in Enterprise SDK
Hello, I'm working on writing tools/scripts to update subnetworks in our Utility Network implementation. I want to test different ways to do that and one is by custom SOE. I wanted to use the IUtilityNetworkSubnetwork interface but I cannot find the proper way to implement the logic. Here is my code: IBaseNetwork…
-
ArcGIS Engine is deprecated and will be retired March 1, 2026
ArcGIS Engine is deprecated and will be retired March 1, 2026. Refer to Keep Innovating with GIS for more information.
-
Linear Referencing in ArcGIS Enterprise SDK SOE
Hi all, I'm currently working on rewriting a legacy SOE (originally built using ArcObjects SDK 10.1) using the ArcGIS Enterprise SDK (Java) for compatibility with ArcGIS Enterprise 11.3. In the original SOE, IRouteLocator and IRouteLocator2 from the com.esri.arcgis.location package was used to locate geometry from route…
-
Migrating from a 32-bit ArcGIS Engine to an equivalent 64-bit component
Hello Readers ! I am not sure this is the best section for this question, but I can't find any community about ArcGIS Engine. Since a decade, for a Java application, one of my client have been using ArcGIS Engine DLLs to run tools on SDE spatial databases. Currently, JWS must evolve, in particular with a 64-bit version.…
-
SOI Change GDB Branch Version through MapService based on the username
I have an Enterprise GDB with branch versioning and ,I need to develop SOI that can detect the username from the request and redirect from sde.DEFUALT to his version.
-
ArcObjects 10.8.2, Bitbucket repos, NuGet, VS2022 - missing Arc components.
Dear Readers, Good afternoon. Thank you for taking the time to read through this post. Our legacy application has been ported to ArcGIS 10.8.2. This application was developed in the middle of 2000s and has been maintained to be current with ArcGIS versions, .NET framework, Windows OS changes, and Visual Studio. One of the…
-
Add Vertex to Polygon
To add a vertex to the polygon, we are creating an application. After a few runs, the application displays the error message "Attempt to read and write protected memory." IHitTest hitTest = polygon.ShapeCopy as IHitTest;bool result = hitTest.HitTest(, searchRadius, esriGeometryHitPartType.esriGeometryPartBoundary,…
-
Developing an Extension for Direct Feature Service Editing in ArcMap
Is it possible to develop an extension for ArcMap which makes it possible to directly edit an ESRI feature service? The out of the box solution will not directly edit the feature service. It forces the user to make a local copy of the features, which is a problem. "Pro" does not fulfill other requirements of the project.…
-
IWorkspaceEdit2 and FGDB - Objects in this class cannot be updated outside an edit session
Hello, Current software is ArcGIS 10.8.2 on Windows 10, application development with Visual Studio 2022. I wrote a simple application for a one-time adaptation to a file geodatabase with feature linked annotations, to correct feature and annotation fields and positions. But it fails on IFeatureClass.Update() with the error…
-
ArcObjects won't install
I am getting blocked when attempting to install ArcObjects 10.8.1 due to not having another product installed. However, I have ArcGIS Desktop 10.8.1 installed which should suffice. Any ideas?
-
Split with Update
We are upgrading the VBA tool to 10.6 version. The objective is to cut the polygon using IFeatureEdit2.SplitWithUpdate. After running the tool the split polygon disappears.
-
ArcObjects replacement
Hi everyone, I have an ArcObjects standalone application that works outside of ArcMap to create automated maps. Basically the code works as follows: 1. Load pre-created template (mxd) that has static items, North arrow, etc., Load base layers, image, roads, canals, etc. 2. Read Access database to determine which permits…
-
ArcGIS dlls for developer 10.8.2
hi All, I am working on the ArcGIS 10.8.2 and I want bundle of dlls as image below such as ESRI.ArcGIS.Geodatabase.dll, ESRI.ArcGIS.Display.dll, etc. What I need to be installed? Where I can download them? Currently I installed Desktop 10.8 and Engine 10.8 but I dont see those dlls. Please help. Thank you. Chuong
-
Apply Symbology To A Feature Layer In A Stored Document
How to apply color to Feature Layer based on a Field value in a Stored document or Mxd for a Console-based application using ArcObjects C#?
-
Can't get ITopologicalOperator4.Cut2 to work.
Hi, I want to split a polygon by a line, but I can't get ITopologicalOperator4.Cut2 to work. The outPolygon variable becomes null. Test data is in a file geodatabase. Any ideas? var mxd = ArcMap.Application.Document as IMxDocument; IFeatureClass inFc = ((IFeatureLayer)mxd.FocusMap.Layer[0]).FeatureClass; // One simple…
-
Calling an ArcMap extension(add-in) method from another ArcMap extension(add-in)
I have a third-party ArcMap extension (codes not available) is SomeException. This extension implements the IExtension, IExtensionConfig, IPersistVariant and ISomeInterface interfaces I'm calling SomeException methods from another ArcMap extension. On a Windows 10 machine running ArcGis 10.5, the ISomeInterface methods are…
-
How split multi-part polygons, and keep holes, without geoprocessing tools?
Hi, I'm trying to loop over the features in a feature class and split each mulit-part polygon into single-part polygons. I don't want to use any geoprocessing tools. The problem is that the code below gives me each polygon part, but without the holes. I want to split the multi-part polygons but keep any polygon holes. Any…
-
Read mxd file as IVariantStream
Hello! I have an extension for ArcMap 10.2. The extension implements IPersistVariant interface. I need to call this extension's class methods directly from my code. I called the startup method passing IApplication as a parameter. I got IApplication like this: var doc = new MxDocumnet(); var app = doc.Parent; Next I need to…
-
Deleting features taking alot of time on Oracle Spatial
Hi, We have a system where we will delete the existing features on sde table and reinsert the newly updated records. we are able to insert the data quickly but while deleting the data it is taking ages to delete the existing features. Kindly help us on this. Note: we do got some constraints on the table which is related…
-
Run ArcMap Application from .Net code
Hello! I want to run ArcMap from c# code and get a link to an extension(add-in) for ArcMap. Then, I want to call the extension(add-in) method, wait for it to execute, and close ArcMap. I do the following: var doc = new MxDocumentClass(); var app = doc.Parent; var iapp = app as IApplication; var myExtClass = new…
-
esriAddin not creating VS 2022; ArcGIS 10.8.2
dear Readers, Good afternoon. I had created an Add-in using 10.7.1 and later on tested against 10.8.2 to work in Sep 2020. We need to make changes now and when I am trying to recompile the same code against VS 2022, I am getting the error:…
-
Arcobjects SDK for .NET
Kindly guide me through how this Arcgis Desktop Add-ins option would be visible in visual studio 2017 . I've attached an example of how the Add-ins option should be visible. My Current Screen in Visual Studio 2017 The final Output Screen that I need
-
developing a mobile application using ArcGIS Runtime SDK
I am in the process of developing a mobile application using ArcGIS Runtime SDK, which incorporates the following components: * View the 2D map * Apply filters for layers * Create thematic maps * Make flow maps as graphics * Caching basemaps such as world imagery or custom vector tile layers from a portal * Create offline…
-
Troubleshoot add-in not working on user machines
I wrote .NET add-in for ArcMap 10.6.1 that works perfectly fine on my dev machine but when I distribute to others to install, it errors out when opening one specific tool. When a user clicks on the tool, a windows form should open...instead, arcmap spins for a second then they get the arcmap error asking to send feedback…