AnsweredAssumed Answered

How to show progress in .NET application that calls out to python script?

Question asked by MollyKFoley on Oct 25, 2017
Latest reply on Nov 18, 2017 by wekuykendall

I have a python script that does a lot of things with cursors and such. I have done a lot of arcpy.AddMessage throught the script to have it run in ArcMap with progress messages. Now, I am implementing this script in a .NET web application (MVC). I call it (using C#) like so:

IGeoProcessor2 gp = new GeoProcessorClass();
IVariantArray parameters = new VarArrayClass();
gp.Execute("PopulatePatches", parameters, null);


Now, in my view, I have a button that you press to upload your file and run this script. When that button is pressed, I'd like to have something pop up indicating progress of the script running. What would be really awesome would be to get the progress messages (like those I have encoded with arcpy.AddMessage) to show up also, though this isn't entirely necessary.


Is there any way to do this since I'm calling out to a python script rather than doing all the processing within the C# scripting?