操作方法

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

Last Published: July 21, 2023

摘要

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 ‘UtahCounties’ feature class.

The attribute table shows the order of the fields in a feature class in ArcGIS Pro.

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, and click Browse The Browse icon. to 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 and under Output Fields, hover over the desired field. An ellipsis icon displays beside the field.
Under Field Map and under Output Fields, hovering over a field displays an ellipsis icon.
  1. Drag and drop the ellipsis icon of each desired field to rearrange the field. In this example, the pop field is positioned before the Shape_Length field.
Under Field Map, the pop field is dragged and dropped before the Shape_Length field.
  1. Click Run.

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

The attribute table shows the order of the fields in the new feature class named UtahCounties2.

文章 ID:000025984

从 ArcGIS 专家处获得帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项