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
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