Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

What would be the most efficient way to export attribute tables from multiple feature class files stored in a file geodatabase? Export to .txt or .csv. Is there any sort of batch process? Or python script?

I have hundreds of files within this geodatabase and really need to automate this process.

share|improve this question
2  
Take a look at: gis.stackexchange.com/a/42445/8104 –  Aaron Apr 8 at 13:49

1 Answer 1

With Python, you can use arcpy.ListDatasets to create an object to loop through all the features in your file geodatabase, setting the workspace to the geodatabase first. Then, for each feature use arcpy.MakeTableView_management to create a table view that can then be used by arcpy.TableToExcel_conversion to export the tables to Excel. All of these documentation pages should provide you with enough code snippets to get you there.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.