Wednesday, 2 May 2018

arcgis desktop - Using wildcard to Append multiple feature classes in ModelBuilder?


I have a folder of shapefiles and each one starts with a code. There are multiple shapefiles that start with each code, and I would like to create a model in ModelBuilder that will select the shapefiles that have the same code, and append them into the appropriate existing geodatabase feature class.



Is there a way to use a wildcard in the Append tool, like to specify that any and all files in a certain folder starting with 'XPGC*' get appended into the 'Pipe_Grade_Change' feature class? Or is there a way to use an iterator to accomplish this?



Answer



I would use Iterate Feature Classes and Collect Values as in the graphics below.


enter image description here


enter image description here


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...