<?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>idea ArcPy GetMessages() or Print in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-getmessages-or-print/idi-p/954447</link>
    <description>&lt;P&gt;&lt;SPAN&gt;In the moment we can't print the messages of the tool CalculateVisualSpecification. The command "print" doesn't work. That is not clear for us, because it is a simple standard command. With the red commands in the script, all messages will be print at the end of the tool. Is it possible to print the messages &lt;SPAN class=""&gt;&lt;SPAN&gt;immediately, so that the user get an information about the progress of the tool?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# Process: Calculate Visual Specifications&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;arcpy.CalculateVisualSpecifications_production(fc_list, mdb, "'MGCP_50K :: MGCP TRD 4.3 Visual Specification for MGCP Topographic Map (MTM)'", "RENDER_REPRESENTATIONS", "DISPLAY_LABELS", "PRESERVE")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;m = arcpy.GetMessages()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;arcpy.AddMessage (m)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 19:25:05 GMT</pubDate>
    <dc:creator>AnjaSeckel</dc:creator>
    <dc:date>2024-06-28T19:25:05Z</dc:date>
    <item>
      <title>ArcPy GetMessages() or Print</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-getmessages-or-print/idi-p/954447</link>
      <description>&lt;P&gt;&lt;SPAN&gt;In the moment we can't print the messages of the tool CalculateVisualSpecification. The command "print" doesn't work. That is not clear for us, because it is a simple standard command. With the red commands in the script, all messages will be print at the end of the tool. Is it possible to print the messages &lt;SPAN class=""&gt;&lt;SPAN&gt;immediately, so that the user get an information about the progress of the tool?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# Process: Calculate Visual Specifications&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;arcpy.CalculateVisualSpecifications_production(fc_list, mdb, "'MGCP_50K :: MGCP TRD 4.3 Visual Specification for MGCP Topographic Map (MTM)'", "RENDER_REPRESENTATIONS", "DISPLAY_LABELS", "PRESERVE")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;m = arcpy.GetMessages()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;arcpy.AddMessage (m)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 19:25:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-getmessages-or-print/idi-p/954447</guid>
      <dc:creator>AnjaSeckel</dc:creator>
      <dc:date>2024-06-28T19:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy GetMessages() or Print - Status changed to: Closed</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-getmessages-or-print/idc-p/1507370#M31054</link>
      <description>&lt;P&gt;Thank you for your submission, and apologies for the very late response. Your post was only recently redirected to the correct ideas exchange for Python/ArcPy ideas. However, this appears to be a question rather than an idea.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that idea Exchanges are not the right place&amp;nbsp;to ask questions or get technical support.&amp;nbsp;However, just because your post isn’t an Idea does not mean that we aren’t here to help.&amp;nbsp;The esri community forum is a great place to ask and get help with questions. See &lt;A href="https://community.esri.com/t5/tag/arcpy/tg-p/board-id/arcgis-pro-questions" target="_blank"&gt;Tag: "arcpy" in "ArcGIS Pro Questions" - Esri Community&lt;/A&gt; for ArcPy questions and &lt;A href="https://community.esri.com/t5/tag/python/tg-p/board-id/arcgis-pro-questions" target="_blank"&gt;Tag: "python" in "ArcGIS Pro Questions" - Esri Community&lt;/A&gt; for general questions about Python in ArcGIS Pro.&amp;nbsp;If you have encountered a bug, you may also reach out to &lt;A href="https://support.esri.com/en/contact-tech-support" target="_blank"&gt;Technical Support&lt;/A&gt;. Support will help you establish a reproducible workflow that will then help us debug and address the issue.&lt;/P&gt;&lt;P&gt;Note: To contact Technical Support, you need to be an authorized&amp;nbsp;caller. See&amp;nbsp;&lt;A href="https://community.esri.com/t5/my-esri-blog/why-can-t-i-submit-cases-or-how-i-became-an/ba-p/888179" target="_blank"&gt;Why can't I submit cases? (Or, How I became an authorized caller and reported my issue)&lt;/A&gt;&amp;nbsp;for more information.&lt;/P&gt;&lt;P&gt;Regarding your question, print is not expected to work with Script tools, print works with the standard (console) output. Tool messages are added with&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/addmessage.htm" target="_blank"&gt;AddMessage—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;and the various message and error handling functions (see side-bar in link). You can also communicate progress script tool progress by customizing the progressor using the various progressor functions, see&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/setprogressor.htm" target="_blank"&gt;SetProgressor—ArcGIS Pro | Documentation&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 17:21:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-getmessages-or-print/idc-p/1507370#M31054</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2024-07-19T17:21:57Z</dc:date>
    </item>
  </channel>
</rss>

