[GIS] Performing in-line variable substitution for path in ArcGIS ModelBuilder

arcgis-desktopmodelbuilder

I am having difficulties in finding a way to use the input path and set is as the output path for a simple Copy Features tool. I use the substitution by the workspace but it outputs the results into the default ArcGIS folder.

I am not sure how to set the workspace to hold the path of the input feature class. As the input feature class is a parameter, I cannot use a hardcoded path. Please see below:

enter image description here

Best Answer

In the first example, you can parse the path and call %Value%. In the second example (which may not apply in your case), you can write intermediate files to in_memory workspace--thus, eliminating the need for parsing the path and possibly eliminating the need for the Copy Features tool.

enter image description here

enter image description here

Related Question