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.
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.
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/19a330dcbe57cdbbde7f0762e9321aa7b411c827/Editing/AddFeatureTest/Module1.cs
https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/19a330dcbe57cdbbde7f0762e9321aa7b411c827/Editing/EditOperationRowEvent/Initialize.cs
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-tools-in-python.htm
And save your custom tool in a location, you can even call it from pro .net module.
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
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.
Indeed, but nothing at all on authoring GP tools.
This has Pro and .net in it
ArcGIS Pro SDK | Documentation
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.