Home arrow GIS Data & Resources arrow Scripts and Code arrow Python arrow Converting ArcGIS Python Scripts to 9.2
Converting ArcGIS Python Scripts to 9.2 PDF Print E-mail

Written by AGRC Administrator,

To get any 9.0 or 9.1 python geoprocessing script to work in 9.2 it appears that you must change two standard lines within your python code.
 
#1 on the line starting with "import"
  change the windows library reference

    from   
      win32com.client
    to 
      arcgisscripting
 

#2 change this entire line 

    from   
       gp= win32com.client.Dispatch("esriGeoprocessing.GPDispatch.1")
    to
       gp= arcgisscripting.create()

 


Users' Comments  
 

No comment posted

Add your comment

05, Dec. 2006
Last Updated ( 28, Sep. 2007 )
 
< Prev

AGRC Contacts | UGIC Contacts

feed image feed image

Utah GIS Portal © 2009 AGRC

Optimized for