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
6 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
18 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
  • 355
1 vote
2 answers
29 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
  • 355
0 votes
0 answers
12 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
20 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
0 answers
64 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
51 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
55 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
63 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
93 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
1 vote
1 answer
222 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
55 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
134 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
58 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
54 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,680
0 votes
1 answer
112 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
169 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
385 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
311 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
262 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
95 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
425 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
67 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
339 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
  • 163
2 votes
1 answer
688 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
253 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
57 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
993 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
231 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
3 votes
1 answer
985 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
  • 163
1 vote
0 answers
216 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
99 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
108 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,708
-1 votes
1 answer
975 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
877 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
  • 440
0 votes
1 answer
182 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
220 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
426 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
651 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
1 vote
0 answers
203 views

Transfer fields from one layer to another ArcGIS Pro SDK

I am creating a new layer and I would like for the new layer to take on the fields schema from the input layer. How can I accomplish this in ArcGIS Pro SDK C#? This is the code that I have to ...
ketar's user avatar
  • 466
1 vote
1 answer
353 views

Listen to ArcGIS Pro project save event

Is there a way to listen for the project save event in ArcGIS Pro? I need to check for something before allowing or denying the save event.
Dowlers's user avatar
  • 2,334
1 vote
1 answer
287 views

Modify the same feature multiple times ArcGIS Pro SDK EditOperation

I am atttempting to modify a feature twice using EditOperation in a loop. I am redacting certain subcurves from a given polyline at different sections of the line. The output polyline should be the ...
ketar's user avatar
  • 466
4 votes
0 answers
1k views

Open feature class in in_memory workspace ArcGIS Pro SDK

I am aware that one can open a feature class in a geodatabase using the code below. Geodatabase geodatabase = new Geodatabase(new DatabaseConnectionFile(new Uri("path\\to\\sde\\file\\sdefile.sde"))) ...
ketar's user avatar
  • 466
2 votes
0 answers
39 views

Linking a .chm or URL to the title bar help button for a ProWindow

I noticed that the ProWindow exposes a "ShowHelpButton" property which shows a "?" on the title bar, but a click navigates to the ArcGIS Pro help website. Both the ArcGIS Pro SDK repository and the ...
Soulis's user avatar
  • 83
2 votes
0 answers
137 views

Write Excel From ArcGIS Pro, Async

I am having trouble writing to an excel file from ArcGIS Pro Sdk add-in that I created, I have a basic understanding of multithread, I am using task but the main thread does not wait for the excel to ...
Gary Lester's user avatar
0 votes
1 answer
882 views

Silent install of ArcGIS Pro Add-In

We are currently migrating to ArcGIS Pro 2.2, with new add-in to improve our workflow. Our Add-in have been shared on a common network drive so far. But our main concern is that we are not admin on ...
mel's user avatar
  • 103
2 votes
1 answer
227 views

Getting Esri Brushes to appear as dynamic resources in Visual Studio?

I used the ArcGIS Pro SDK to create my Add-In project and to create the DockPane but the Esri Brushes don't show up as Dynamic Resources. According to Esri (https://github.com/Esri/arcgis-pro-sdk/...
arcobjection's user avatar
2 votes
1 answer
695 views

Seeking ArcGIS Pro SDK equivalent to geometry.measureOnLine(point) of ArcPy?

I am looking for a method in the ArcGIS Pro SDK 2.2 that will return the measure distance along a given polyline geometry. Here is the python method measure = polylineGeometry.measureOnLine(...
Gary Lester's user avatar