Automate Field Creation

Discussion created by nfergusn on Jul 25, 2011
Latest reply on Oct 27, 2011 by jskinner-esristaff
I'm trying to figure out a way to easily create hundreds of fields across different feature classes in the same geodatabase. I have a break down of the schema (field type, name, scale, precision, etc.) and just need to find a way to automate the entire process. I tried creating an xml file via an xml map using excel, but it won't allow you to create nested xml files. I next tried using model builder (see attached graphic) to get the field value from an Access Database table and use the value to Add a field to the appropriate Feature class but for some reason it doesn't seem to want to accept all of the values that are being passed in from the table. I'm hoping someone can help me figure out an easy solution, or can point out what I'm doing wrong. Thanks in advance!