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).

22 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
341 views

Programmatically fetching current Add-In version using ArcGIS Pro SDK

The version of a custom ArcGIS Pro SDK Add-In is held in the config.daml of the Add-In project: <AddInInfo id="{some guid}" version="1.0" desktopVersion="1.1.3068"> How do I programmatically ...
3
votes
0answers
93 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"))) ...
3
votes
0answers
199 views

Unit testing ArcGIS Pro SDK?

I am wondering, if there is a possibility to unit test own code using the ArcGIs Pro 2.0 SDK. I did not find any until now, because there are plenty of static functions, classes, etc. and no ...
2
votes
0answers
51 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 ...
2
votes
0answers
20 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 ...
2
votes
0answers
43 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 ...
1
vote
0answers
59 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="...
1
vote
1answer
14 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) ...
1
vote
0answers
16 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 ...
1
vote
0answers
52 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/...
1
vote
0answers
67 views

How to find all connected edges from gas device feature using C# API call to ArcGIS Pro SDK?

I am currently using connected trace to trace all the specified gas devices (using its Asset Group and Asset Type) to get output from the trace. I want to find all the connected edge features from ...
1
vote
0answers
121 views

Async Databinding using ArcGIS Pro SDK and MVVM?

How can we bind data to datagrid (In dockpane) using Async programing in ArcGIS Pro SDk and MVVM as one of my process will take lot of time. Please let me know if you can have any ideas or samples.
1
vote
0answers
96 views

Are Layer extensions supported in ArcGIS Pro?

Can I store some custom information about layer, project, etc? For instance, featurelayer has no unique ID(I'm not 100% sure, but it seems like that) I want to add unique ID to each layer and store ...
0
votes
0answers
20 views

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

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 ...
0
votes
0answers
21 views

Hit test for Symbols in ArcGIS Pro

I want to show a tooltip when the user moves the cursor over a prior generated symbol. Unfortunately I couldn't find any way how to make a hit test for the symbol. In ArcObjects I'm using the ...
0
votes
0answers
35 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.
0
votes
0answers
53 views

Displaying one sublayer from WMS service to ArcGIS Pro using SDK

I have developed a new toolbar Add-In for ArcGIS Pro 2.4 with C# and ArcGIS Pro SDK in Visual Studio 2019. This toolbar has several buttons that load geographic information to a map canvas in ArcGIS ...
0
votes
0answers
22 views

Retrieving custom created transformations in ArcGIS Pro SDK?

I have created custom transformations using GeoProcessing in ArcGIS Pro SDK, but it returns a geographic coordinate system instead of a transformations. How can I retrieve transformations using the ...
0
votes
0answers
72 views

C# - ArcGIS Pro Add-in - Open Dialog

I am going add to add a button to show Add layer dialogue to ArcGIS pro Add-in. All works fine but my problem is although I have set the initial location of open dialog but dialog open in last open ...
0
votes
1answer
121 views

Click on a point and perform a geoprocessing tool?

In ArcMap, I have created a Python Add-In tool that clicks on a point anywhere on the map, then uses the coordinates as an input to a geoprocessing tool that runs a select by location and buffer of ...
0
votes
0answers
5k views

Store Database Connection String in App.config for an ArcGIS Pro SDK Add-In 2.x

I have added an app.config file to my visual studio pro SDK project and I’m trying to retrieve a connection string from it. The retrieval code always returns null. I don’t know if that’s because it is ...
0
votes
1answer
37 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 ...