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 .
Thanks
#-------------------------------------------------------------------------------
# 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")
arcpy.mapping.ExportToPDF(mxd,r"E:\workspace\PDF\MimbresRiverRanch34x44")
## Print message to complete the exported processed
print arcpy.GetMessages(print str.rjust(50, '0')
Thank you for your help
Solved! Go to Solution.
Hi Robert,
If you want to just add a message that the PDF has been exported, I would recommend using arcpy.AddMessage. The GetMessage should be used when you want to return a geoprocessing tool message.
Hi Robert,
If you want to just add a message that the PDF has been exported, I would recommend using arcpy.AddMessage. The GetMessage should be used when you want to return a geoprocessing tool message.