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

1431
1
09-01-2016 11:24 AM
BradleyDeem
New Contributor

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?

0 Kudos
1 Reply
BernhardEhrminger
New Contributor III

If you publish FME's logfile Parameter, maybe with the solution outlined here:

http://stackoverflow.com/questions/28348503/python-monitor-a-log-file-non-blocking

you could watch FME's growing log-file?

0 Kudos