Original User: roy_hewittI wrote a long analysis script that creates a watershed map with a summary of wetlands within it's boundary. When I load the script in the python window (right click, load) the entire script runs correctly and exports the appropriate map.Code for python window (hard-coded user variables):
#userHucID = arcpy.GetParameterAsText(0) # 12 digit HUC used to clip wetlands and zoom map to extent
#userName = arcpy.GetParameterAsText(1) # User Name is used to make map file are easy to find
#boolPrint = arcpy.GetParameterAsText(2) # Should the map print automatically; default is no
userHucID = "020403030102"
userName = "Hewitt"
boolPrint = True
When I create a script tool using the same script, I get different results. Instead of zooming to the watershed it zooms to the full extent of the watershed shapefile.Code for script tool:
userHucID = arcpy.GetParameterAsText(0) # 12 digit HUC used to clip wetlands and zoom map to extent
userName = arcpy.GetParameterAsText(1) # User Name is used to make map file are easy to find
boolPrint = arcpy.GetParameterAsText(2) # Should the map print automatically; default is no
I've attached the two separate maps to give an indication of the difference in output.