1

I want to make a tool with iterate feature classes that will take my shapefile folder and append each shapefile to it's corresponding feature class in a template geodatabase.

I have a folder with shapefiles "A.shp", "B.shp", and "C.shp" and a geodatabase with feature classes "A", "B" and "C".

The geodatabase needs to be a parameter because this is done to many different datasets.

  • You would use getparameterastext to set your own parameter. If you have some code that would be way helpful. – ed.hank Oct 26 '16 at 13:53
  • I'm using ModelBuilder, forgot to mention that. I wouldn't know where to begin with python. – Chris Oct 26 '16 at 14:04
  • A screenshot of the model you have so far then would be helpful. I believe the basic logic is iterate through the folder and use the append tool in no test mode to append to the feature class. You will set the input GDB as a parameter (right click on it in the model) and select input parameter. see pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/… – ed.hank Oct 26 '16 at 14:18
  • 1
  • I have the parse path collecting the folder path because the geodatabase is in the same folder. The problem I'm having is selecting multiple feature classes as the target dataset within the append tool. – Chris Oct 26 '16 at 14:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.