The attribute table does not refresh to reflect changes after updating using UpdateCursor or InsertCursor.
上次发布: August 16, 2019ArcGIS Pro
漏洞 ID 编号
BUG-000111652
已提交
February 14, 2018
上次修改时间
June 5, 2024
适用范围
ArcGIS Pro
找到的版本
2.1
操作系统
Windows OS
操作系统版本
10.0 64 Bit
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
Add cursor.updateRow(row) as the last line of the code:
aprx = arcpy.mp.ArcGISProject("CURRENT")
m=aprx.listMaps("Map")[0]
fc = m.listLayers()[0]
fields = ['value']
with arcpy.da.UpdateCursor(fc, fields) as cursor:
for row in cursor:
row[0] = 'd'
cursor.updateRow(row)
解决办法
Click the Refresh button on the bottom right corner of the attribute table to manually refresh the view.