<?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: Getting internal tool messages in a script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/getting-internal-tool-messages-in-a-script/m-p/1695830#M75188</link>
    <description>&lt;P&gt;With straight python, I think your only option is to turn on&amp;nbsp;"Open messages window automatically after running a tool"&lt;/P&gt;&lt;P&gt;Go to Project &amp;gt; Options &amp;gt; Geoprocessing and check "Open messages window automatically after running a tool".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add something like this at the end of you script.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;arcpy.AddMessage("Starting long tool...")

try:
    arcpy.AddMessage("=== Tool Messages ===")
    arcpy.AddMessage(arcpy.GetMessages())        # All messages (info + warnings + errors)

except arcpy.ExecuteError:
    arcpy.AddError(arcpy.GetMessages(2))         # Only errors&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 13 Apr 2026 15:16:41 GMT</pubDate>
    <dc:creator>TonyAlmeida</dc:creator>
    <dc:date>2026-04-13T15:16:41Z</dc:date>
    <item>
      <title>Getting internal tool messages in a script</title>
      <link>https://community.esri.com/t5/python-questions/getting-internal-tool-messages-in-a-script/m-p/1695795#M75187</link>
      <description>&lt;P&gt;I have a script that uses gp tools that takes a long time.&lt;/P&gt;&lt;P&gt;The tool I am using is Build Overviews that can take long time but have many messages that showing the progress.&lt;/P&gt;&lt;P&gt;When I run this tool within python script, I do not see these messages.&lt;/P&gt;&lt;P&gt;I can only AddMessage before and after the tool.&lt;/P&gt;&lt;P&gt;Is there any way to send the message to the display even if it runs inside a script.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2026 13:48:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getting-internal-tool-messages-in-a-script/m-p/1695795#M75187</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2026-04-13T13:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting internal tool messages in a script</title>
      <link>https://community.esri.com/t5/python-questions/getting-internal-tool-messages-in-a-script/m-p/1695830#M75188</link>
      <description>&lt;P&gt;With straight python, I think your only option is to turn on&amp;nbsp;"Open messages window automatically after running a tool"&lt;/P&gt;&lt;P&gt;Go to Project &amp;gt; Options &amp;gt; Geoprocessing and check "Open messages window automatically after running a tool".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add something like this at the end of you script.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;arcpy.AddMessage("Starting long tool...")

try:
    arcpy.AddMessage("=== Tool Messages ===")
    arcpy.AddMessage(arcpy.GetMessages())        # All messages (info + warnings + errors)

except arcpy.ExecuteError:
    arcpy.AddError(arcpy.GetMessages(2))         # Only errors&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Apr 2026 15:16:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getting-internal-tool-messages-in-a-script/m-p/1695830#M75188</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2026-04-13T15:16:41Z</dc:date>
    </item>
  </channel>
</rss>

