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
3 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 ...
user avatar
  • 435
0 votes
0 answers
17 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 ...
user avatar
0 votes
1 answer
32 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 ...
user avatar
  • 53
0 votes
1 answer
35 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....
user avatar
  • 53
0 votes
1 answer
52 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 ...
user avatar
  • 53
0 votes
0 answers
44 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 ...
user avatar
  • 101
1 vote
1 answer
80 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 ...
user avatar
1 vote
0 answers
52 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 ...
user avatar
1 vote
1 answer
110 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>()....
user avatar
  • 133
0 votes
1 answer
170 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 ...
user avatar
0 votes
1 answer
83 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 ...
user avatar
1 vote
0 answers
16 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....
user avatar
0 votes
2 answers
359 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 ...
user avatar
  • 611
0 votes
1 answer
119 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 ...
user avatar
1 vote
1 answer
454 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 ...
user avatar
  • 133
1 vote
0 answers
110 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 ...
user avatar
  • 248
3 votes
0 answers
48 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 ...
user avatar
  • 31
1 vote
0 answers
66 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 ...
user avatar
  • 1,385
-1 votes
1 answer
387 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 ...
user avatar
0 votes
2 answers
332 views

ArcGIS Pro SDK add FeatureLayer to map

I know this is a very simple question, however, I find it difficult to find an answer. How do I add an existing layer to my map using ArcGIS Pro SDK? I saw several examples where the layer is added ...
user avatar
  • 410
0 votes
1 answer
97 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 ...
user avatar
  • 21
0 votes
1 answer
123 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 ...
user avatar
  • 21
1 vote
1 answer
202 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 ...
user avatar
  • 21
1 vote
0 answers
363 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="...
user avatar
  • 471
1 vote
1 answer
24 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) ...
user avatar
2 votes
1 answer
566 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 ...
user avatar
  • 418
1 vote
0 answers
96 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 ...
user avatar
  • 418
0 votes
1 answer
193 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.
user avatar
  • 2,284
1 vote
1 answer
150 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 ...
user avatar
  • 418
3 votes
0 answers
686 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"))) ...
user avatar
  • 418
2 votes
0 answers
35 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 ...
user avatar
  • 83
2 votes
0 answers
93 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 ...
user avatar
0 votes
1 answer
553 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 ...
user avatar
  • 103
1 vote
1 answer
140 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/...
user avatar
2 votes
1 answer
435 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(...
user avatar
2 votes
4 answers
2k views

Using WinForms with ArcGIS Pro SDK?

I want to port a tool developed in ArcObjects for ArcMaps into ArcGIS Pro using the ArcGIS Pro SDK. The tool's UI was created using WinForms but to recreate the UI in ArcGIS Pro is looks like I would ...
user avatar
0 votes
1 answer
197 views

ArcGIS Pro Add-In, MVVM getting filepath in viewmodel but showing only filename in view

I have an ArcGIS Pro Addin that I need to get a path to gdb for some processing, I would like to do this but show only gdb name in text box. I have a behaviors class and a viewmodel and a view. I ...
user avatar
1 vote
0 answers
409 views

How to add XAML Resources to App.XAML for an ArcGIS Pro SDK Add-In? [closed]

I am in the process of creating a .NET add-in for ArcGIS Pro SDK. I have working code in a WPF application that I want to include in my add-in. The issue is that there is no there is no App.xaml for ...
user avatar
1 vote
0 answers
119 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 ...
user avatar
  • 41
2 votes
1 answer
220 views

ArcGIS Pro SDK OpenRelationshipClass does not return results

I have been struggling with this issue for hours now and am wondering if anyone else has encountered this. I have a feature class (ADDRESS_MANAGER.GIS_INF_ADDRESS_P) and a table (ADDRESS_MANAGER....
user avatar
  • 1,477
0 votes
1 answer
186 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 ...
user avatar
1 vote
1 answer
2k views

Moving Python AddIns to ArcGIS Pro

I have created a Python AddIn for ArcMap and it has been tested and functions very properly. However, I am looking online, and it seems like I have to go through a lot of processes just for it to ...
user avatar
0 votes
0 answers
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 ...
user avatar
  • 91
3 votes
3 answers
1k 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 ...
user avatar
2 votes
0 answers
685 views

Tutorial on migrating Add-ins from ArcGIS 10.x (ArcObjects) to ArcGIS Pro for Microsoft VB.NET? [closed]

I can't seem to find any comprehensive tutorials on migrating (recreating comparable functionality) of 10.x (ArcObjects) VB.Net Add-ins to ArcGIS PRO SDK Add-ins. When migrating from Avenue, ESRI ...
user avatar
0 votes
1 answer
728 views

How to deploy a Custom ArcGIS Pro Configuration?

I have created a Custom ArcGIS Pro Configuration by customizing this sample: https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/ConfigWithMap This is working as expected ...
user avatar
1 vote
0 answers
155 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.
user avatar
6 votes
0 answers
348 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 ...
user avatar
  • 307
1 vote
1 answer
363 views

Executing Intersect tool in arcgis pro .net sdk

In ArcGIS Pro version 2.0.0 I use this code to execute merge tool public async Task<bool> ExecuteToolAsync() { var valueArray = await QueuedTask.Run(() => { // Creates ...
user avatar
  • 133
1 vote
1 answer
97 views

daml: <disabledText/> in ToolTip

I have found several examples for how to define tooltips in a config.daml file. There is sometimes an element <disabledText /> inside of the tooltip. Does anybody know what this elemnt is good ...
user avatar
  • 307