AnsweredAssumed Answered

Use python script tool from .Net ArcGIS Pro

Question asked by MBDriscoll Champion on Oct 25, 2017
Latest reply on Apr 18, 2019 by gverlin01

Using a C# .Net add-in I need to run a custom python script tool from my toolbox from with-in the map in Pro.   The sample "CallScriptFromNet" will not work because it runs the Python script from outside of the Pro environment.  I have things in the script that uses many layers from the "CURRENT" map so it fails running it the way the sample shows. The script works great when I run it from the toolbox, but I cannot figure out how to run it from the .Net add-in. I am thinking I need to use some sort of combination of getting a Geoprocessing Project Item and Executing it?