Hello Again,
I just unzipped a new copy of the toolbox, and the script was in there(see attached)
I can go ahead and post my code, and I'll put a screenshot of how the parameters were set up as well if you want. When you open the tbx in ArcCataog it should show a script which you can double clcik and run(incidentally, what version of ArcGIS are you running? That can effect toolboxes).
#Importing Modules
import arcpy
#Declaring Variables
ID = arcpy.GetParameterAsText(0)
OutputLocation = arcpy.GetParameterAsText(1)
#Assembling Map - Selecting MXD, Dataframe, and Selecting Layer by Attribute
#Creating a Map Document Object within python, referencing the .mxd you want to work with.
mxdpath = arcpy.GetParameterAsText(2)
mxd = arcpy.mapping.MapDocument(mxdpath)
#Once you have a map document object in python, you can access its various elements, now we need to access the dataframe the layer you are using is in.
#The line of code below makes a list of all the dataframes in the map document object we made. The [0] returns the first dataframe in our map document,
#if you need to access additional dataframes, you would use a different index, we now have made a dataframe object in python and can access the layers in it
df = arcpy.mapping.ListDataFrames(mxd,"*")[0]
#Now to Create a Layer Object, the line of code below returns a list of all the layers in the dataframe, with this name. The [0] returns the first layer with that name instead of the whole list
LayerName = arcpy.GetParameterAsText(3)
Layer = arcpy.mapping.ListLayers(mxd, LayerName, df)[0]
#Selecting by Attribute, Zooming to Feature, and Setting Scale
#This line performs a select by attribute on our Layer object, using a new selection, with an SQL query of ID = the ID variable we created using getparameterAsText(0)
arcpy.SelectLayerByAttribute_management(Layer, "NEW_SELECTION" , "ID = " + ID)
scale1 = arcpy.GetParameterAsText(4)
scale2 = arcpy.GetParameterAsText(5)
scale3 = arcpy.GetParameterAsText(6)
scales = [scale1, scale2, scale3]
for scale in scales:
#Selecting by Attribute, Zooming to Feature, and Setting Scale
#This line performs a select by attribute on our Layer object, using a new selection, with an SQL query of ID = the ID variable we created using getparameterAsText(0)
arcpy.SelectLayerByAttribute_management(Layer, "NEW_SELECTION" , "ID = " + ID)
#This zooms the dataframe to the selected feature
df.zoomToSelectedFeatures()
df.scale = scale
#Clearing selected features so they do not show up selected on map
arcpy.SelectLayerByAttribute_management(Layer, "CLEAR_SELECTION")
mxdname = mxd.filePath.split("\\")[-1]
mxdname = mxdname.replace(".mxd" , "")
#Exporing map dataframe view to pdf, I have it set up to save
arcpy.mapping.ExportToPDF(mxd, OutputLocation + "/" + mxdname + "ID_" + ID + scale + ".pdf", "Page_Layout", 640, 480)
I sent a new copy of the toolbox, the two images, and the actual python script file, so you don't have to copy the code posted.