Select to view content in your preferred language

Add field to a large number of Feature Classes in a geodatabase?

4864
3
08-18-2010 11:39 AM
TLeed
by
Emerging Contributor
I want to add a field to a group of Feature Classes contained in a Personal Geodatabase. 

I could add multiple addfield tools to model builder, or I could batch addfield one time, but how do I put a batch addfield tool into model builder so I can add additional fields to all of the feature classes at a later date.

Thanks!
0 Kudos
3 Replies
ChrisMathers
Deactivated User
Batch in model builder is actually a condition of the inputs. If you right click on the add field tool and select to create a variable from an input then right click on the input and under its properties say that it is "A list of values." Now when you open that variable you have the ability to add in as many inputs as you need. Do this for every field you need to input from. As a warning though, this will make your output a batch output. From here out any tool you connect to that ouput will be a batch process.
0 Kudos
BBicking1
Esri Contributor
Batch in model builder is actually a condition of the inputs. If you right click on the add field tool and select to create a variable from an input then right click on the input and under its properties say that it is "A list of values." Now when you open that variable you have the ability to add in as many inputs as you need. Do this for every field you need to input from. As a warning though, this will make your output a batch output. From here out any tool you connect to that ouput will be a batch process.



Hi...

The easiest and fastest way is using Iterate Feature Classes in ArcGIS10 with your .mdb as input. The iterator's output becomes input to Add Field where you suply the Field Name plus Field Type. Make these Model Parameters for furture use of the model as a tool with a different .mdb and a different field to add. If you do that process often, stick the model in a toolbox called UtilityModels.tbx. Attached a screen shot of the model.

Barbara Bicking
Geoprocessing Team
0 Kudos
ChrisMathers
Deactivated User
Thanks Barbara, I didnt know about that tool. v10 is so awesome!
0 Kudos