Current workspace


Specifies the workspace for the current session. The location from which inputs are taken and outputs are placed when running tools.

Usage tips

Command line syntax

An overview of the command line window

Workspace <workspace or feature dataset>


Parameters Explanation Datatype
<workspace or feature dataset> The location from which inputs are taken and outputs are placed when running tools. Folder | Workspace

Data types for geoprocessing tool parameters

Command line example

workspace d:\myWorkspace
	OR
workspace d:\myWorkspace.mdb

Scripting syntax

An overview of scripting in geoprocessing

Workspace (workspace or feature dataset)


Parameters Explanation Datatype
workspace or feature dataset (Required) The location from which inputs are taken and outputs are placed when running tools. Folder | Workspace

Data types for geoprocessing tool parameters

Script example

import arcgisscripting
gp = arcgisscripting.create()

gp.workspace = "h:/workspace"

See Also