Topic RSS
10:03 am
December 6, 2010
OfflineHi Everyone,
I am currently in the process of upgrading the organisations corporate GIS from ArcMap 9.2 to version 10.0.
We currently have numerous scripts generated from Model Builder and subsequently saved as Python scripts to run various Geoprocessing tasks. These were created in ArcMap 9.2, after initial investigation and testing it appears as though these scripts will not run if the system is upgraded to the newer version.
A work around is to open the model built in 9.2 into 10.0 and then re export the script to Python and the script will be exported in the new language and will now work. I'm trying to find out if there is a way to bulk update these scripts so this process will not have to be done for each script on an individual basis.
Any advice really would be appreciated.
Many thanks,
Adam
7:22 am
December 6, 2010
OfflineHi Andy,
Hope you had a good holiday ![]()
Not as yet, but hven’t looked at the buk aspect of it for a while.
I have about the asame number of scripts as you so will probably just do them one at a time. The main thng I’ve established with version 10 is that the code string that allows layers to be overwritten has changed from:
gp.overwriteoutput = 1 to
arcpy.env.overwriteOutput = True
once this has been amended manually after the script has been recreated from the original model in version 10 the scrips appear to run without any problems.
Adam
Most Users Ever Online: 9
Currently Online:
6 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
andrew.bradley: 73
markies: 35
adamrhymer: 34
alex hill: 34
aza: 33
ggould: 13
Member Stats:
Guest Posters: 3
Members: 94
Moderators: 0
Admins: 4
Forum Stats:
Groups: 1
Forums: 11
Topics: 81
Posts: 355
Newest Members: diabloiiiitems, wowgoldhuashi
Moderators:
Administrators: admin4GI (0), cn174 (33), JustinC (24), richardt (2)

Log In
Register
Home

