Select to view content in your preferred language

Build field map control to reorder fields

1617
0
03-04-2015 09:04 AM
BlakeTerhune
MVP Regular Contributor

We have some users that would like a way to reorder the fields of a feature class. I was hoping the field map control in the Merge tool would let you reorder but the up and down arrows in the box have no effect.

After doing some searching, all the solutions I found required some coding. I developed a Python script based on the work by Josh Werts but they want something that works without looking at code. I was wondering if I could use the logic from the Python script and populate a multivalue parameter control in Model Builder with a list of field names, the user could rearrange it and then put it back into the Python script as a list for creating the new field map (which is then run through Merge to make the final feature class).

I am pretty familiar with Python, but not so much with Model Builder. Any suggestions on the best way to accomplish this?

The process would be like:

  1. Input FC
  2. Display fields
  3. User reorders fields in control
  4. Reordered fields are used in field map
  5. Field map used in Merge to output new FC with reordered fields
0 Kudos
0 Replies