<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Build field map control to reorder fields in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/build-field-map-control-to-reorder-fields/m-p/869663#M3373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After doing some searching, all the solutions I found required some coding. I developed a Python script based on the work by &lt;A href="http://joshwerts.com/blog/2014/04/17/arcpy-reorder-fields/"&gt;Josh Werts&lt;/A&gt; 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 &lt;A href="http://resources.arcgis.com/en/help/main/10.2/0021/00210000000r000000.htm"&gt;multivalue parameter control&lt;/A&gt; 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).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pretty familiar with Python, but not so much with Model Builder. Any suggestions on the best way to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process would be like:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Input FC&lt;/LI&gt;&lt;LI&gt;Display fields&lt;/LI&gt;&lt;LI&gt;User reorders fields in control&lt;/LI&gt;&lt;LI&gt;Reordered fields are used in field map&lt;/LI&gt;&lt;LI&gt;Field map used in Merge to output new FC with reordered fields&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2015 17:04:01 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2015-03-04T17:04:01Z</dc:date>
    <item>
      <title>Build field map control to reorder fields</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/build-field-map-control-to-reorder-fields/m-p/869663#M3373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After doing some searching, all the solutions I found required some coding. I developed a Python script based on the work by &lt;A href="http://joshwerts.com/blog/2014/04/17/arcpy-reorder-fields/"&gt;Josh Werts&lt;/A&gt; 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 &lt;A href="http://resources.arcgis.com/en/help/main/10.2/0021/00210000000r000000.htm"&gt;multivalue parameter control&lt;/A&gt; 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).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pretty familiar with Python, but not so much with Model Builder. Any suggestions on the best way to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process would be like:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Input FC&lt;/LI&gt;&lt;LI&gt;Display fields&lt;/LI&gt;&lt;LI&gt;User reorders fields in control&lt;/LI&gt;&lt;LI&gt;Reordered fields are used in field map&lt;/LI&gt;&lt;LI&gt;Field map used in Merge to output new FC with reordered fields&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 17:04:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/build-field-map-control-to-reorder-fields/m-p/869663#M3373</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-03-04T17:04:01Z</dc:date>
    </item>
  </channel>
</rss>

