Allow field listing to be passed in to the CreateFeatureClass arcpy function

Idea created by ajroman on Sep 9, 2015
    New
    Score20
    • MikeEdwards
    • ajroman

    When creating feature classes dynamically using python code, it is very inefficient to have to call CreateFeatureClass and then call AddField multiple times to create the additional attribution.  The CreateFeatureClass tool should allow the passing in of a list of fields (and their data types, aliases, default value, etc.) in addition to supporting a template feature class.  The template option works great if you actually have a template to build from, but when building new feature classes on-the-fly that don't have a template, being able to pass in the field listing rather than have to call AddField multiple times would be a much better option.