ArcMap Model Builder & Python Scripting | Data Interoperability | Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
ArcMap Model Builder & Python Scripting
January 13, 2012
10:03 am
adamrhymer
Member
Forum Posts: 34
Member Since:
December 6, 2010
Offline

Hi 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

April 27, 2012
2:34 pm
andrew.bradley
Member
Forum Posts: 73
Member Since:
January 23, 2009
Offline

Hi Adam

Did you ever get anywhere with this?

I have about 10 scripts running each evening written in python from v 9.3.1 We’ll be upgrading to v10 this summer and will have to overcome similar problems

regards, Andy

April 30, 2012
7:22 am
adamrhymer
Member
Forum Posts: 34
Member Since:
December 6, 2010
Offline

Hi Andy,

Hope you had a good holiday Smile

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

Forum Timezone: UTC 0

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)

Comments are closed.

TOP
file:///C:/Documents%20and%20Settings/Clare%20Nolan/My%20Documents/WWW/gi4housing/default-src.css