<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I get ArcGIS to show script output as it is executing an FME Workspace or Geoprocessing Tool? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-do-i-get-arcgis-to-show-script-output-as-it-is/m-p/185441#M14278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you publish FME's logfile Parameter, maybe with the solution outlined here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/28348503/python-monitor-a-log-file-non-blocking"&gt;http://stackoverflow.com/questions/28348503/python-monitor-a-log-file-non-blocking&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you could watch FME's growing log-file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Sep 2016 12:09:43 GMT</pubDate>
    <dc:creator>BernhardEhrminger</dc:creator>
    <dc:date>2016-09-02T12:09:43Z</dc:date>
    <item>
      <title>How do I get ArcGIS to show script output as it is executing an FME Workspace or Geoprocessing Tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-get-arcgis-to-show-script-output-as-it-is/m-p/185440#M14277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;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?&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;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 &lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;end&lt;/STRONG&gt;&lt;/SPAN&gt; using the following.&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;MyWrapperScript.py&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy 

&lt;SPAN class="comment token"&gt;# Load required toolboxes&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ImportToolbox&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"MyToolbox.tbx"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"MyToolbox"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Execute FME Workspace&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MyToolbox&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MyFmeWorkspace&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Get all messaged produced by the FME Workspace after execution is finished.&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetMessages&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Even Geoprocessing tools suffer from the same issue when called within a script.&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;Is it possible to reroute output as the script runs?&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;Also, asked on &lt;A class="link-titled" href="http://gis.stackexchange.com/" title="http://gis.stackexchange.com/" rel="nofollow noopener noreferrer" target="_blank"&gt;Geographic Information Systems Stack Exchange&lt;/A&gt;&amp;nbsp;for a broader audience.&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;&lt;A href="http://gis.stackexchange.com/questions/209237/how-do-i-get-arcgis-to-show-script-output-as-it-is-executing-an-fme-workspace-or" rel="nofollow noopener noreferrer" target="_blank"&gt;How do I get ArcGIS to show script output as it is executing an FME Workspace or Geoprocessing Tool?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:24:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-get-arcgis-to-show-script-output-as-it-is/m-p/185440#M14277</guid>
      <dc:creator>BradleyDeem</dc:creator>
      <dc:date>2021-12-11T09:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get ArcGIS to show script output as it is executing an FME Workspace or Geoprocessing Tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-get-arcgis-to-show-script-output-as-it-is/m-p/185441#M14278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you publish FME's logfile Parameter, maybe with the solution outlined here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/28348503/python-monitor-a-log-file-non-blocking"&gt;http://stackoverflow.com/questions/28348503/python-monitor-a-log-file-non-blocking&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you could watch FME's growing log-file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 12:09:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-get-arcgis-to-show-script-output-as-it-is/m-p/185441#M14278</guid>
      <dc:creator>BernhardEhrminger</dc:creator>
      <dc:date>2016-09-02T12:09:43Z</dc:date>
    </item>
  </channel>
</rss>

