list fields in a list of feature classes

1580
2
05-18-2020 05:59 PM
GavanThomas1
New Contributor

I want to get a list of all the field names, field, types and field lengths for all feature classes in a file geodatabase.

I am using ArcGIS Pro 2.5. The list should be readable with comma separated values for each row in the output list.

Any help from the community would be greatly appreciated!

GT

0 Kudos
2 Replies
JoeBorgione
MVP Emeritus

The first thing you'll want to do is get a list of the feature classes.  Be sure you have set your workspace properly. Then for each of your feature classes, get a list of fields and the associated information you are after.

Take a look at the links and see if you can figure out a workflow.  Post up any additional questions.

That should just about do it....
0 Kudos
JoshuaBixby
MVP Esteemed Contributor

See my GitHub Gist:  ArcPy: Describe Geodatabase Contents · GitHub .  It provides a basic framework you can build off of to show fields and data types.