Authoring GeoProcessing tool in .net

292
5
Jump to solution
01-22-2021 03:14 PM
BerndtNording
New Contributor III

Is there any documentation or samples that show how to create a Pro GP tool in .net. Documentation for Arcmap was rather spase and didn't cover .net, but there was a sample for a simple tool. I have not been able to find anything at all for Pro. 

Tags (2)
1 Solution

Accepted Solutions
ThanHtetAung_EsriAu
Esri Regular Contributor

Hi @BerndtNording ,

Here is the pro sdk doco location for geoprocessing 

https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Geoprocessing

And there are a few pro sdk community sample how to execute gptool from sdk .net.

https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/19a330dcbe57cdbbde7f0762e9321aa7b411c8...

https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/19a330dcbe57cdbbde7f0762e9321aa7b411c8...

 

If you want to create your own gptool, python toolbox, you need to create from ArcGIS pro first.

Here is the reference link.

https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/a-quick-tour-of-creating-too...

And save your custom tool in a location, you can even call it from pro .net module.

 

 

 

 

View solution in original post

5 Replies
DanPatterson
MVP Notable Contributor

This has Pro and .net in it

ArcGIS Pro SDK | Documentation


... sort of retired...
0 Kudos
BerndtNording
New Contributor III

Indeed, but nothing at all on authoring GP tools.

ThanHtetAung_EsriAu
Esri Regular Contributor

Hi @BerndtNording ,

Here is the pro sdk doco location for geoprocessing 

https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Geoprocessing

And there are a few pro sdk community sample how to execute gptool from sdk .net.

https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/19a330dcbe57cdbbde7f0762e9321aa7b411c8...

https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/19a330dcbe57cdbbde7f0762e9321aa7b411c8...

 

If you want to create your own gptool, python toolbox, you need to create from ArcGIS pro first.

Here is the reference link.

https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/a-quick-tour-of-creating-too...

And save your custom tool in a location, you can even call it from pro .net module.

 

 

 

 

View solution in original post

BerndtNording
New Contributor III

Thank you for these links. So the short answer is that I cannot author GP Tools in .NET, and that any such tools have to be completely rewritten in Python.

DuncanHornby
MVP Frequent Contributor

I've been looking at all the developer guide/github websites and I too came to the conclusion that its not possible to create a geoprocessing tool in VB .net for ArcPro, unless I've completely missed the right search term?

I was hoping that this could be done and one builds up a toolbox of tools that a user could run individually or use to build a model in modelbuilder?

The approach of creating tools through python is not a solution for me as arcpy does not expose the fine grain manipulation that ArcObjects does. I wonder if any of the heavy weight developers who haunt this forum know better, or you really cannot create a geoprocessing tool for a toolbox using the ArcPro SDK?