Questions tagged [arcgis-pro-sdk]

use this tag related to ArcGIS Pro SDK 1.x for .NET, and topics relating to the ArcGIS Pro 1.x .NET SDK (C# and Visual Basic).

Filter by
Sorted by
Tagged with
0 votes
0 answers
32 views

Replacing ArcObjects IGxDialog in ArcGIS Pro .NET SDK

My current development environment is a .NET Forms application coded against .NET 6.0. I'm developing a standalone client toolset within which I need to be able to locate and identify pathing to GIS ...
GIS-Monkey's user avatar
0 votes
0 answers
11 views

How to make a FeatureClass from a FeatureClassToken?

I need to create various objects - FeatureClasses, Tables, CodedValueDomains and like. I've found several guides on creating a Description object (like FeatureDatasetDescription) and a Token (e.g. ...
Pavel V.'s user avatar
  • 1,517
0 votes
2 answers
32 views

How to start a Python script from a ArcGIS Pro AddIn?

I use C# for creating an AddIn for ArcGIS Pro 3.1. I got a feature request to start a python script (which is part of a toolbox) and pass some arguments. Unfortunately I found only descriptions about ...
Gener4tor's user avatar
  • 125
0 votes
0 answers
52 views

ArcGIS Pro SDK user authentication

I am developing some tools using ArcGIS Pro SDK, how could I authenticate users who use my tool. Our organization has AD accounts, and Esri accounts are based on those AD accounts.
GBh's user avatar
  • 381
0 votes
0 answers
29 views

await QueuedTask.Run(...) keeps QueuedTask busy for too long and QueuedTask.Run(...).Wait() hangs for arcgis pro

If I use await QueuedTask.Run(..), it doesn't go to the next line, returns to the caller method and QueuedTask still remains busy public void SetCustomPictureSymbol(ArcGIS.Desktop.Mapping.FeatureLayer ...
Muhammad Shahadat Hossain's user avatar
0 votes
0 answers
83 views

ArcObjects C# ArcMap toolbars to ArcGIS Pro

I have some ArcMap toolbars written in ArcObjects C# using windows desktop controls/forms. They are very precise in terms of clients requirement. How would I replicate them in ArcGIS Pro? I have heard ...
GBh's user avatar
  • 381
0 votes
1 answer
32 views

How to add a context menu to the Catalog/Project/Folders-Entries in an AddIn for ArcGIS Pro?

How to add a context menu to the Catalog/Project/Folders-Entries? I use C# for creating an AddIn for ArcGIS Pro 3.1. I got a feature request to add a new context menu entry to the "Catalog/...
Gener4tor's user avatar
  • 125
0 votes
0 answers
20 views

AddJoin_management function from GPTool not working. Any examples of the usage of this function in ArcGIS Pro SDK?

I have a feature class using which I create a Layer: featurelayerNew = await QueuedTask.Run(() => { var lcp = new FeatureLayerCreationParams(featureClass); var featureLayer = LayerFactory....
SriMari's user avatar
  • 29
2 votes
1 answer
97 views

How to create/get a Feature class from a .lyrx file without using CreateLayer function?

This is regarding migrating ArcMap AddIn to ArcGIS Pro. In ArcGIS Pro, depending upon the type of file (.lyrx, .shp, Raster) I need to call the corresponding ArcGIS Pro SDK API to return a feature ...
SriMari's user avatar
  • 29
0 votes
0 answers
11 views

I can't search for a row that I just added to a table

I open a table dataset, create a row, and then search for that row, but the row isn't found. Why not? Using tblAttachments As Table = gdb.OpenDataset(Of Table)("Attachments") Using ...
epfirman's user avatar
0 votes
0 answers
23 views

Add .lyrx to map based on ProWindow xaml checkbox C# error with threads

I am trying to create an addin where the user can check the layers they want added to the map, this should be invoked via a button in a Pro Window, which then adds the appropriate .lyrx to active map. ...
Daz's user avatar
  • 375
2 votes
2 answers
127 views

Populating a combobox in ProWindow SDK C# ArcGIS Pro Addin

I am trying to populate a combobox in a ProWindow item in Visual Studio based on the Layer list in TOC. I add the combobox using the Toolbox pane. The Combobox is viewable but I can't seem to find a ...
Daz's user avatar
  • 375
0 votes
0 answers
14 views

MapSelectionChangedEvent.Subscribe in VB

I have seen multiple examples in C# like this: ... MapSelectionChangedEvent.Subscribe(OnSelectionChanged); private void OnSelectionChanged(MapSelectionChangedEventArgs args) ... When I try to ...
epfirman's user avatar
0 votes
0 answers
23 views

Change focus in MapTool ArcGIS Pro

I have a requirement in ArcGIS Pro which is if something is selected and tool is opened with that selected data then the blue line around the tool (shown in attached image) should be visible. And if ...
TonyJon's user avatar
1 vote
1 answer
118 views

Programmatically check if editing session in progress for ArcGIS Pro SDK

I have a C# Add-In program for ArcGIS Pro. I would like to check if the user is currently editing, or no. I recommend my users carefully toggle their edit sessions, following the recommendation in ...
lep's user avatar
  • 117
0 votes
1 answer
70 views

ArcGIS Pro 3.1 AddIn doesn't work with: System.ServiceModel

My ArcGIS Pro 3.1 AddIn uses System.ServiceModel to open a communication via pipes to a service. I added "System.ServiceModel" to the Assablies (References) and Built it without errors. But ...
Gener4tor's user avatar
  • 125
1 vote
0 answers
68 views

Improving performance when loading data in current Map using ArcGIS Pro SDK and C#

I want to load data into a current map in ArcGIS Pro 2.9. For this purpose, I want to use a .lyrx file. Currently, I have implemented it with: Uri uriLayerPath = new Uri(strLayerPath); LayerFactory....
Stephan's user avatar
  • 11
0 votes
2 answers
114 views

How to set and read a version in an ArcGIS Pro AddIn-File?

I am creating a c# AddIn for ArcGIS Pro 3.1. As there are a lot of users I want to use our deployment tool. This tool works with the version of the file to check if there is a need to deploy a new ...
Gener4tor's user avatar
  • 125
1 vote
2 answers
116 views

Using temporary layer in ArcGIS Pro

I use C# for creating an AddIn for ArcGIS Pro 3.1. One of the features of the AddIn is to jump to a position. var wgs84 = SpatialReferences.WGS84; var pointInWGS84 = MapPointBuilder.CreateMapPoint(...
Gener4tor's user avatar
  • 125
2 votes
1 answer
315 views

Running Geoprocessing tools via ArcGIS Pro SDK

I'm new to the ArcGIS Pro SDK and I find it very difficult to migrate my ArcGIS Add-In to ArcGIS Pro. I simply want to take the union of two shapefiles. When I run the code, nothing happens. I'm not ...
Nilu Silva's user avatar
0 votes
0 answers
69 views

How the toolbox works after triggering in arcgis pro

I wrote an add-in in ArcGIS Pro, when a button is clicked into a button, I go and trigger the toolbox, that is, a .pyt file is triggered and the toolbox comes directly, there is no problem until here, ...
Cnrgrsc's user avatar
1 vote
1 answer
237 views

How to run a command using ref ID in ArcGIS Pro SDK

I am new to pro SDK. I am trying to add a button to a menu which will do the identical function to the copy coordinates command: and then I would run further code when I get those coordinates in the ...
a_uly0003's user avatar
1 vote
1 answer
65 views

Developing different environment products, Desktop and Web (ArcGIS Pro 3 SDK and ArcGIS Experience Builder) on one machine

I can't find any requirements for ArcGIS Experience Builder except Chrome version, so I guess there is no problem. I just need a machine that answers ArcGIS Pro 3 SDK requirements? Maybe someone ...
Anna Goldenstein's user avatar
1 vote
1 answer
61 views

Increasing the efficiency of creating random points inside polygons

My code creates random points within polygons using the ArcGIS Pro 3 SDK by creating a random x and y within the extent of the polygon (using a snippet from Esri's Constructing Geometries sample), ...
kenbuja's user avatar
  • 5,765
0 votes
1 answer
122 views

Open split view maps using ArcGIG Pro SDK

Related to this question : Adding new map to current project using ArcGIS Pro .NET SDK? , however this question is quite old and not exactly what I am looking for. I want to create an add-in that ...
B.Quaink's user avatar
  • 455
0 votes
1 answer
183 views

Displaying a layers CRS in a dockpane using ArcGIS Pro SDK .NET

I am currently building up a dock pane where a user can add a layer (using a button within the dock pane). And the layer's CRS is to be displayed in a text box below (this is for a later part of ...
blueriver212's user avatar
2 votes
1 answer
436 views

How to successfully project the map extent into a different spatial reference with C# and ArcGIS Pro SDK

I am having a really difficult time trying to project the map extent (WGS84) into an envelope of a different spatial reference (Web Mercator or UTM). I have tried multiple ways of changing the ...
Weequay's user avatar
  • 101
0 votes
1 answer
351 views

Converting screen pixels to map units with C# using ArcGIS Pro SDK

I am looking to create polygons (halos/rings) around the mouse cursor programmatically with C# using the ArcGIS Pro SDK. I have figured out how to create the halos by using System.Windows.Forms....
Weequay's user avatar
  • 101
0 votes
1 answer
272 views

How to move the center (centroid) of a circle programmatically using C# and the ArcGIS Pro SDK

Is there any way to move the center (centroid) of a circle/polygon to a new X/Y on the map, such as the current mouse location in C# using the ArcGIS Pro SDK? I have a solution that I found that ...
Weequay's user avatar
  • 101
0 votes
0 answers
100 views

Creating Multiple Feature Classes as Views on Standalone Table in ArcGIS Pro .NET SDK

I'm developing an ArcGIS Pro 2.9 plugin using the .NET SDK. I have a set of data that contains fields describing points and ellipses to display on the map. I would like to create two FeatureClass ...
Steve's user avatar
  • 101
1 vote
1 answer
461 views

Displaying featurelayer pulled from geodatabase using ArcGIS Pro SDK

I'm working on a plugin for ArcGIS Pro that when a button is clicked, it should create a new feature layer from data pulled from a geodatabase. While it does seem to create the layer, none of the ...
Roger Asbury's user avatar
1 vote
0 answers
69 views

Editbox caption disappears when datatype not set to string

I am working on a plugin to ArcGIS Pro using the ArcGIS Pro SDK. In working on the config.daml, I have created two edit boxes. One is using a datatype of int64 and the other of type string. Below is ...
Roger Asbury's user avatar
1 vote
1 answer
368 views

Getting raster layer path in ArcGIS Pro using C#

I am creating an ArcGIS Pro Extension. I need to know the layer's path. To get the layer path, code developed so far: var pointLayer = MapView.Active.Map.Layers.OfType<FeatureLayer>()....
osman's user avatar
  • 193
2 votes
1 answer
783 views

Calling field within geodatabase table using C# and ArcGIS Pro SDK

I am trying to create a script in C# that would look into a geodatabase in ArcGIS Pro, which has multiple geodatabase tables and do some simple math using the fields in these tables. I want to be able ...
GIS_developer's user avatar
0 votes
1 answer
274 views

How to add secured layer from ArcGIS service to new map in ArcGIS Pro with C# SDK

I am trying to add a secure layer of an ArcGIS Server. But even with the user / password, ArcGIS Pro shows me a login window to add my layer. How to get there directly without this login window? My ...
Francois's user avatar
1 vote
0 answers
58 views

ArcGIS Pro SDK EditBox update on Project Change

I have an EditBox displaying the ArcGIS Pro project path. When I open a different project, the EditBox does not update with the new project path. internal class ProjectPathEditBox : ArcGIS.Desktop....
Gene Lohrmeyer's user avatar
0 votes
2 answers
1k views

Editing of features with ArcGIS Pro SDK for .NET

I have programmed several ArcMap AddIns by using C# and ArcObjects the last 10 years. Now there is the idea to migrate all the AddIns to ArcGIS Pro, to support the 64 bit versions and be prepared for ...
Propper's user avatar
  • 611
0 votes
1 answer
241 views

Draw line perpendicular to other line in ArcGIS Pro core host application

I am trying to draw a line perpendicular to a line segment in an ArcGIS Pro core host application. There used to be a construct point in the ArcMap SDK but it is not there any more. This is being ...
jettmann's user avatar
4 votes
1 answer
1k views

Creating new Geodatabase, FeatureClass, Table and adding Fields using ArcGIS Pro .NET SDK

I need to create a new Geodatabase and creating FeatureClass, Table in the Geodatabase. After that adding fields in FeatureClass and Table are also needed. I have created a new Geodatabase using this ...
osman's user avatar
  • 193
1 vote
0 answers
237 views

ArcGIS Pro SDK for .Net loading dlls and app.config settings

I am trying to use some third party dlls (Entity Framework and EntityFramework.SqlServer) in my arcgis Pro sdk module. However, whenever my code runs inside ArcMap pro, I get errors like this: No ...
Eoin's user avatar
  • 293
3 votes
0 answers
110 views

ArcGIS Pro SDK forcing process windows to be minimized?

I'm running a Process from my add-in, and even if I use P/Invoke to force the window to be open and in the foreground, the process windows that appear will be minimized. Weirdly enough, they are ...
JSaraco's user avatar
  • 31
1 vote
0 answers
121 views

Can an invidual sell ArcGIS Pro add-ins at ArcGIS Marketplace? [closed]

I have an add-in that I would like to sell to ArcGIS pro users. I checked the ESRI website and they have only mentioned ESRI Network partners as eligible providers. Can an indvidual not list products ...
ar-siddiqui's user avatar
  • 1,748
-1 votes
1 answer
1k views

This version of Geodatabase is incompatible with dataset and cannot open it using ArcGIS Pro

This implementation is done in ArcGIS Pro .Net SDK and has an Enterprise geodatabase. We had a polyline feature layer and move functionality was implemented in this. The functionality was working fine ...
Aneesh Sivaraman's user avatar
0 votes
3 answers
1k views

Adding FeatureLayer to map using ArcGIS Pro SDK

How do I add an existing layer to my map using ArcGIS Pro SDK? I saw several examples where the layer is added while being created (for example LayerFactory.Instance.CreateFeatureLayer(new Uri(strUri),...
Kumbra's user avatar
  • 460
0 votes
1 answer
191 views

ArcGIS Pro SDK set rotation / angle field in renderer

I'm in the process of converting an Addin written in ArcObjects to an ArcGIS Pro Addin. I need to rotation everything in a point layer using the values stored in the ANGlE field. In ArcObjects I was ...
Yannie's user avatar
  • 21
0 votes
1 answer
238 views

Detect one or more rows selected in an attribute table from an add-in

With ArcGIS Pro SDK 2.5, you can detect that the map selection has changed with the MapSelectionChangedEvent, which also includes selecting one or many rows in the attribute table of a geodatabase ...
JJMar's user avatar
  • 41
1 vote
1 answer
443 views

Apply symbols in a style sheet(stylex) through code

I'm in the process of converting an ArcMap add-in using ArcObjects to use ArcGIS Pro SDK. Not a fun process I must say. We need to apply symbologies on the fly through code. In ArcObjects I can find ...
Yannie's user avatar
  • 21
1 vote
0 answers
678 views

Opening Attribute Table by using ArcGIS Pro SDK, WPF and C#

I am trying to display an attribute table for a selected layer. I have access to attribute table but I can not pass the ArcGIS table to the DataGrid I created in xaml. <DataGrid x:Name="...
Amadeus's user avatar
  • 513
1 vote
1 answer
33 views

ArcGIS Pro 2.4 .NET SDK: calling templatized class instance methods from Python?

I'm trying to do some learning with the ArcGIS Pro 2.4 .NET SDK in the Pro application's Python window: import clr import ArcGIS.Desktop.Core as ADC for i in ADC.Project.Current.Items: print(i) ...
Alan Stewart's user avatar
3 votes
1 answer
1k views

Activate Map on the click of a button ArcGIS Pro SDK

In this case, when an ArcGIS Pro project is opened, non map panes are active. I would like the map pane to be activated on the click of the button as proceeding code requires the MapView.Active to not ...
ketar's user avatar
  • 466