<?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: Should I use the &amp;quot;AddMessage&amp;quot; instead of GetMessage ? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/should-i-use-the-quot-addmessage-quot-instead-of/m-p/97780#M7599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to just add a message that the PDF has been exported, I would recommend using arcpy.AddMessage.&amp;nbsp; The &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-functions/getmessage.htm"&gt;GetMessage &lt;/A&gt;should be used when you want to return a geoprocessing tool message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2015 15:32:27 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2015-02-12T15:32:27Z</dc:date>
    <item>
      <title>Should I use the "AddMessage" instead of GetMessage ?</title>
      <link>https://community.esri.com/t5/python-questions/should-i-use-the-quot-addmessage-quot-instead-of/m-p/97779#M7598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to&amp;nbsp; write a script to call a variable to inform that your exported has been completed. Please take a take a look at here to see if this is correct or not .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#-------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;# Name:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Export PDF&lt;/P&gt;&lt;P&gt;# Purpose:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To export MapLayout to PDF&lt;/P&gt;&lt;P&gt;# Author:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Robert.Pollock&lt;/P&gt;&lt;P&gt;# Created:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10/02/2015&lt;/P&gt;&lt;P&gt;# Copyright:&amp;nbsp;&amp;nbsp; (c) Robert.Pollock 2015&lt;/P&gt;&lt;P&gt;#-------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;import arcpy.mapping, os&lt;/P&gt;&lt;P&gt;str = "Your PDF exported has been delivered to your folder, Thank you"&lt;/P&gt;&lt;P&gt;mxd = arcpy.mapping.MapDocument("E:\FY2015_projects\Mimbres Ranch River\Mimbres River Ranch2.mxd")&lt;/P&gt;&lt;P&gt;arcpy.mapping.ExportToPDF(mxd,r"E:\workspace\PDF\MimbresRiverRanch34x44")&lt;/P&gt;&lt;P&gt;## Print message to complete the exported processed&lt;/P&gt;&lt;P&gt;print arcpy.GetMessages(print str.rjust(50, '0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 15:14:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/should-i-use-the-quot-addmessage-quot-instead-of/m-p/97779#M7598</guid>
      <dc:creator>DEAF_PROBERT_68</dc:creator>
      <dc:date>2015-02-12T15:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use the "AddMessage" instead of GetMessage ?</title>
      <link>https://community.esri.com/t5/python-questions/should-i-use-the-quot-addmessage-quot-instead-of/m-p/97780#M7599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to just add a message that the PDF has been exported, I would recommend using arcpy.AddMessage.&amp;nbsp; The &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-functions/getmessage.htm"&gt;GetMessage &lt;/A&gt;should be used when you want to return a geoprocessing tool message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 15:32:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/should-i-use-the-quot-addmessage-quot-instead-of/m-p/97780#M7599</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2015-02-12T15:32:27Z</dc:date>
    </item>
  </channel>
</rss>

