4

I have a very simple model that has a feature class iterator (recursive) that runs through a directory and sub-folders looking for line files and then projects them to UTM_16N. The only issue with the model is the destination for the output files.
image

Instead of having all the outputs going to a single destination I want them to be created in the source folder. So basically the model would dump the output in the same folder as the source file.

There are hundreds of folders each containing an individual line file and they all have the same name. The only identifier so to speak is the container folder name (counties in this case).

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked May 19, 2015 at 17:23
1
  • 2
    Best to ask a specific question. asking for advice does not fit the model of this site. See help "how to ask". gis.stackexchange.com/help/how-to-ask Commented May 19, 2015 at 18:15

1 Answer 1

2

You need a subtle change to your model. See the image below:

enter image description here

Configure Expression parameter of Calculate Value like this:

enter image description here

Set Output Dataset or FeatureClass parameter of Project tool to %output_value%

answered May 19, 2015 at 19:13
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.