Skip to main content

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
3 votes
1 answer
54 views

The type or namespace name 'Shapefile' could not be found (are you missing a using directive or an assembly reference?

I have added below namespaces though the Shapefile class is not coming in ArcGIS Pro SDK C# code in ArcGIS.Desktop.Framework.Controls.ProWindow name spaces are using ArcGIS.Core.Data; using ArcGIS....
peter's user avatar
  • 141
0 votes
1 answer
11 views

Could not load file or assembly ArcGIS.Desktop.Core.XmlSerializers

I've upgraded ArcGIS Pro from 3.2 to 3.3. To adjust the AddIn I develop, I've upgraded it from .NET 6 to 8, and I made all necessary updates. Now, while running it, before ArcGIS Pro opens, I get the ...
Pavel V.'s user avatar
  • 1,517
1 vote
0 answers
19 views

How to remove the square border coming in Balloon callout in ArcGIS Pro SDK

I have written C# code in ArcGIS Pro SDK for balloon callout and everything works fine. The only issue is I am getting square border between the points. How can I disable it? if (geometry is Polyline ...
peter's user avatar
  • 141
1 vote
0 answers
23 views

ArcGIS Pro Slope Tool failing with Output measurement and Z factor parameter in C# [closed]

The code below with 3 parameters fails to run slope tool and get expected result. No error is shown. Just expected result doesn't come out. public SlopeTool(string inRaster, string outRasterName, ...
Shahadat Hossain's user avatar
0 votes
0 answers
34 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
12 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
46 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
  • 135
0 votes
0 answers
55 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
52 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
51 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
  • 135
0 votes
0 answers
21 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
160 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
25 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
  • 365
2 votes
2 answers
209 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
  • 365
0 votes
0 answers
17 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
25 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
153 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
86 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
  • 135
1 vote
0 answers
74 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
150 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
  • 135
1 vote
2 answers
128 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
  • 135
2 votes
1 answer
368 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
76 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
266 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
66 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
64 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,820
0 votes
1 answer
133 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
187 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
467 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
359 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
280 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
111 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
474 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
70 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
371 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
812 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
285 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
61 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
247 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
248 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
  • 303
3 votes
0 answers
112 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
130 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,768
-1 votes
1 answer
2k 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
1 vote
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
  • 470
0 votes
1 answer
195 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
1 vote
1 answer
249 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
  • 61