Scratch workspace |
|
Release 9.2
Last modified September 4, 2007 |
![]() ![]() ![]() Print all topics in : "General settings" |
The workspace where tool outputs will be placed if the default output name is used.
Accepting the default path and name for results that will not be permanently maintained places them in the scratch workspace. When the path given for the output parameter is removed and only a name is provided, tool results will be saved into your current workspace if it is set or to the location of the input data if it is not set.
If the current workspace and the scratch workspace are not set, the outputs from tools will, by default, be placed in the location of the input data if this location is not read-only. If this location is read-only, outputs will be placed in your system's default temp directory (generally C:\Documents and Settings\yourlogin\Local Settings\Temp). Another exception is the Feature Class to Coverage tool when the input is a file or personal geodatabase feature class. In this case, with no workspaces set, the output will be placed in the same location as the input field or personal geodatabase.
An overview of the command line window
ScratchWorkspace <path>
Parameters | Explanation | Datatype |
<path> | The workspace where tool outputs will be placed if the default output name is used. | Folder | Workspace |
ScratchWorkspace c:\temp\temp_output
An overview of scripting in geoprocessing
ScratchWorkspace (path)
Parameters | Explanation | Datatype |
path (Required) | The workspace where tool outputs will be placed if the default output name is used. | Folder | Workspace |
import arcgisscripting gp = arcgisscripting.create() gp.Workspace = "h:/workspace" gp.ScratchWorkspace = "c:\temp\temp_output"