current and scratch workspaces

01-29-2017 06:23 AM
New Contributor

Why is it important to specify the current and scratch workspaces during the initial environment setup?

0 Kudos
1 Reply
MVP Esteemed Contributor

Overall, I think the Using the current and scratch workspace environments documentation covers it.

Additionally, there are two features designed to make specifying input and output datasets much easier: the current workspace and scratch workspace environment settings.

  • The current and scratch workspace settings, like all geoprocessing environments, are saved with your map document.

The main idea behind the current workspace is that you set the workspace once, then use only the base name when entering input and output paths

The primary purpose for the scratch workspace environment is for use by ModelBuilder. ModelBuilder needs a workspace to write intermediate datasets—datasets that are of no use once a model is run. Although its primary purpose is for ModelBuilder, there may be times when you want to set it for tool dialog boxes. Or, more likely, you set the scratch workspace to use in ModelBuilder and forgot to reset it before executing a tool using its dialog box.