AnsweredAssumed Answered

Use python script tool from .Net ArcGIS Pro

Question asked by MBDriscoll on Oct 25, 2017
Latest reply on Nov 27, 2017 by nahmed-esristaff

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?  

Outcomes