I have written a code to count sheets or pages in an mxd. How would I print a message before the display of the count result? For Example: the count is 11. I want it to display "Sheet Count : 11". My code is below:
import arcpy, os, sys, string
from os import path as p
from arcpy import mapping as m
Make parameters for people to choose mxd and folder of PDFs to compare
mxdList = arcpy.GetParameterAsText(0).split(";")
pdf_path = arcpy.GetParameterAsText(1)
Use Search Cursor to go through Attribuite Table to get Sheet number info
count = 0
mxd_dict = {}
for mapDoc in mxdList:
arcpy.AddMessage(mapDoc)
mxd = arcpy.mapping.MapDocument(mapDoc)
max_list = []
for lyr in m.ListLayers(mxd):
try:
rows = arcpy.SearchCursor(lyr)
for row in rows:
max_list.append(row.Sheet_ID)
count += 1
sheet_count = max(max_list)
mxd_name = p.basename(mapDoc).split('.')[0]
mxd_dict[mxd_name] = sheet_count
except:
pass
arcpy.AddMessage (count)
Right here is probably where I need the code. Sheet Count :