Select to view content in your preferred language

ModelBuilder: Setting Current Workspace from Input Variables

2512
2
Jump to solution
09-03-2012 03:49 PM
DarrochKaye
Deactivated User
Hi,

I have a custom model which uses three tools and data from a variety of different geodatabases, however all the input data is from the same Feature Dataset.

Is there a way to set - without creating a variable - the current workspace as the same location as the input data?

Thanks,
DK
0 Kudos
1 Solution

Accepted Solutions
DarrochKaye
Deactivated User
Hi,

I found what I was looking for. in ModelBuilder, Insert > Create Variable... > Workspace, set it as a Model Parameter so now I can specify my workspace when adding inputs etc.

Thanks for your help.
DK

View solution in original post

0 Kudos
2 Replies
JonathanQuinn
Esri Notable Contributor
You can set current and scratch workspaces for individual models if you go to Model > Model Properties > Environments, check Workspace and then click Values.  Is that what you're looking for?  If not, I think you'll have to use a variable and inline substitution, as you'll need the workspace to be dynamic, based on where the inputs are coming from.
0 Kudos
DarrochKaye
Deactivated User
Hi,

I found what I was looking for. in ModelBuilder, Insert > Create Variable... > Workspace, set it as a Model Parameter so now I can specify my workspace when adding inputs etc.

Thanks for your help.
DK
0 Kudos