POST
|
I contacted ESRI Tech Support and they confirmed that variables can't be used as inputs to a process. So you have to use Calculate Value with some python code to generate an intermediary output, which gives you more freedom to parse out particular substrings from a filename, anyway. Working version shown below. Thanks, everyone, for your help.
... View more
07-31-2015
10:12 AM
|
1
|
0
|
1265
|
POST
|
I can try that, but my path names are nowhere near 255 characters long.
... View more
07-22-2015
05:19 PM
|
0
|
0
|
1068
|
POST
|
It's Parse Path, set to Parse Type = NAME. I renamed it because I was playing around with parsing some paths and such. The exact output value should be, e.g. 840_0810 (UTM easting/northing values that were used to create the filenames). So 840_0810.txt should get turned into 840_0810_XYZ.shp (which works correctly in the simpler model I mentioned), which should then get clipped by 840_0810.shp (a polygon shapefile created prevsiously) to create 840_0810_CLIP.shp.
... View more
07-22-2015
02:30 PM
|
0
|
1
|
1068
|
POST
|
Yep, tried that, too. Both using %INPUT_FOLDER% as a variable and just manually entering the path. It's still saying %filename%.shp doesn't exist.
... View more
07-22-2015
01:48 PM
|
0
|
3
|
1068
|
POST
|
I've already got a precondition between the parsed filename and the ASCII 3D to Feature Class process. EDIT: I've also tried making the parsed filename a precondition to the Clip process. Neither worked.
... View more
07-22-2015
01:25 PM
|
0
|
7
|
1068
|
POST
|
I'm trying to build a model that will iterate through a series of xyz text files, and clip each text file using a similarly named shapefile on a one-to-one basis. So example01.txt has a corresponding polygon shapefile, example01.shp, which will be used to clip it. So I've parsed out the filename, example01, but when I try to use that as the Clip Feature in the Clip tool, the model refuses to start, claiming that %filename%.shp does not exist. What am I missing? Is there a way to do this? I've already tested a simpler model that will convert the text files to multipoint shapefiles, and that works on its own. But I can't get Arc to recognize that it needs to evaluate the filename variable prior to checking for the existence of the shapefile. Thanks.
... View more
07-22-2015
12:44 PM
|
0
|
10
|
4386
|
Title | Kudos | Posted |
---|---|---|
1 | 07-31-2015 10:12 AM |
Online Status |
Offline
|
Date Last Visited |
01-09-2021
02:08 PM
|