Quantcast
Channel: Forums - ArcGIS for Desktop - General
Viewing all articles
Browse latest Browse all 2328

ParsePath problem in Model Builder

$
0
0
Hello,

I have a model where I am using the 'Parse Path' tool (only available in Model Builder) to extract the path of a one of the user supplied input data sets. The model goes through a number of operations and creates a new user specified features class. I want to use the path from one of the user input datasets to be default for the user supplied output using inline variable substitution. However, when the model runs, it does not seem to retain the path value. Even if I set the Parse Path as a precondition for the last output it returns a message "The process did not execute because the precondition is false"

For example if one of user input (i.e. parameter) feature classes is c:\temp\infile.shp and I use ParsePath to extract path 'to a variable named Wkspc. Then in one of the user specified output I am using output as %Wkspc%\outfile.shp. I would expect if user excepts default that the model would create the file c:\temp\outfile.shp. However, it doesnt seem to retain the path in the in-line variable.

Attached is an image of the model and the messages. Im perplexed as Ive used ParsePath several other times with no problem.

Any help would be appreciated

Thanks!

NealAttachment 31863
Attached Thumbnails
Click image for larger version

Name:	ModelGraphic.jpg‎
Views:	N/A
Size:	109.6 KB
ID:	31863  
Attached Files

Viewing all articles
Browse latest Browse all 2328

Trending Articles