Authoring GeoProcessing tool in .net

3806
8
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)
2 Solutions

Accepted Solutions
by Anonymous User
Not applicable

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

by Anonymous User
Not applicable

Hello, there are currently no plans to support the creation of geoprocessing tools with the Pro SDK for .NET.

Creation of custom geoprocessing tools and analytics is available using Python and ModelBuilder.

Please see the SDK FAQ document for more information on other migration questions.

View solution in original post

0 Kudos
8 Replies
DanPatterson
MVP Esteemed 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.

by Anonymous User
Not applicable

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.

 

 

 

 

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 Notable 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?

AdamDavis
Occasional Contributor

Any input from Esri when this is planned for Pro?

Thanks,

Adam

by Anonymous User
Not applicable

Hello, there are currently no plans to support the creation of geoprocessing tools with the Pro SDK for .NET.

Creation of custom geoprocessing tools and analytics is available using Python and ModelBuilder.

Please see the SDK FAQ document for more information on other migration questions.

0 Kudos
AdamDavis
Occasional Contributor

Hi Christopher,

Thanks for the update.

Wow - that's quite some statement.

Python is often not an option for Esri Partners making professional add-ons. As Duncan says it's a shame that these powerful applications cannot be used as geoprocessing tools.

Hopefully, it will be like the statement that the SDK was only for DAL and GP was the only option for DDL. That was obviously never going to be a runner long-term and it was nice to see to see the SDK include DDL at 2.8.

Please reconsider.

Adam