AnsweredAssumed Answered

How do I get ArcGIS to show script output as it is executing an FME Workspace or Geoprocessing Tool?

Question asked by bdeem@midamerican.com on Sep 1, 2016
Latest reply on Sep 2, 2016 by behrm

I have a long running (1-2hrs) FME Workspace that I'm calling through a script. How do get the intermediate results to show in ArcGIS while it's executing?

For example, if I call the FME Workspace directly from the Python console or from the GUI, then the results will show as it is executing in the console or the results window, respectfully. However, it won't show any results when called from the script. The best I can do is show all results at the end using the following.

MyWrapperScript.py

import arcpy 

# Load required toolboxes
arcpy.ImportToolbox("MyToolbox.tbx","MyToolbox")

# Execute FME Workspace
arcpy.MyToolbox.MyFmeWorkspace()

# Get all messaged produced by the FME Workspace after execution is finished.
arcpy.AddMessage(arcpy.GetMessages())

Even Geoprocessing tools suffer from the same issue when called within a script.

Is it possible to reroute output as the script runs?

 

Also, asked on Geographic Information Systems Stack Exchange for a broader audience.

How do I get ArcGIS to show script output as it is executing an FME Workspace or Geoprocessing Tool?

Outcomes