Show Navigation | Hide Navigation
You are here:
Writing geoprocessing scripts > Scripting Object: Properties and methods > Properties and Methods

OverWriteOutput method

Release 9.1
Last modified August 19, 2005
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Properties and Methods"

Related Topics

Gets the overwrite output flag (0=false, 1=true).

ReadWrite Read / Write


variable = object.OverwriteOutput

You may set your environment to allow or not allow the overwriting of existing outputs. If it is set to TRUE, then if a specified command output already exists it will be overwritten when the command executes. The previous features and attributes will be lost and the new results maintained. If it is set to FALSE, then command results will not overwrite existing features and attributes. The existing dataset will be maintained, and the command output will be renamed.

This property will tell you whether overwrites are allowed or not.

Return Value




from win32com.client import Dispatch
gp = Dispatch("esriGeoprocessing.GpDispatch.1")

gp.workspace = "H:\\Tongass\\forestry.mdb"
gp.erase_analysis("housing", "income", "low_income")
gp.overwriteoutput = 1
gp.clip_analysis("housing", "boundary", "low_income")

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.