AnsweredAssumed Answered

Should I use the "AddMessage" instead of GetMessage ?

Question asked by progis99 on Feb 12, 2015
Latest reply on Feb 12, 2015 by jskinner-esristaff

Hi All,


I am trying to  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 .





# Name:        Export PDF

# Purpose:     To export MapLayout to PDF

# Author:      Robert.Pollock

# Created:     10/02/2015

# Copyright:   (c) Robert.Pollock 2015


import arcpy.mapping, os

str = "Your PDF exported has been delivered to your folder, Thank you"

mxd = arcpy.mapping.MapDocument("E:\FY2015_projects\Mimbres Ranch River\Mimbres River Ranch2.mxd")


## Print message to complete the exported processed

print arcpy.GetMessages(print str.rjust(50, '0')


Thank you for your help