操作方法

操作方法:使用 ArcGIS Pro 中的“要素类至要素类”工具对要素类中的字段进行永久性的重新排序

Last Published: December 27, 2024

摘要

In ArcGIS Pro, the fields of a feature class can be reordered in a current map in the Fields view. However, the fields cannot be permanently reordered at the database level. The attribute table below shows the fields’ order of the ‘IRL_Postcodes2’ feature class.

The field order in the attribute table

In some instances, the fields must be permanently reordered. This article describes a workaround using the Export Features tool to write the features from the feature class to a new feature class and reorder the fields in the Field Map section.

过程

Warning: 
This workaround does not preserve existing relationship classes in the output feature class containing the reordered fields. Esri recommends copying the dataset to a new geodatabase and using the new geodatabase before reordering fields to ensure changes made are not applied to the original geodatabase.
Note:
It is not possible to reorder the OBJECTID, Shape, Shape_Length, and Shape_Area fields.
  1. In ArcGIS Pro, click the Analysis tab.
  2. Under the Geoprocessing group, click Tools.
The Tools option is available in the Geoprocessing group under the Analysis tab in ArcGIS Pro.
  1. In the Geoprocessing pane, in the Find Tools search box, search for and select the Export Features tool.
The Export Features tool is displayed when searching for the tool in the Find Tools search box in the Geoprocessing pane.
  1. Specify the parameters of the tool.
    1. Select the existing feature class under Input Features.
    2. Provide a name for Output Feature Class, click Browse The Browse icon., and specify the location of the new feature class.
The Export Features tool pane to be configured
  1. Scroll down and click Fields to expand the list of the fields in the feature class.
  2. Under Field Map, hover over the desired field. An ellipsis icon displays beside the field.
The ellipsis icon displayed when hovering over a field
  1. Drag and drop the ellipsis icon of each desired field to rearrange the field. In this example, the ID field is positioned after the NAME field.
The reordered ID field in the Export Features pane
  1. Click Run.

A new feature class is created and added to the map. The table below shows the rearranged field order in the new feature class, IRL_PostcodesFieldRearranged.

The reordered fields in the attribute table

文章 ID: 000025984

接收通知并查找新问题或常见问题的解决方案

从我们全新的 AI 聊天机器人中获得简明答案和视频解决方案。

下载 Esri 支持应用程序

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项
Esri Support AI Chatbot