laptop and a wrench

漏洞

The topology error inspector becomes out of sync with the data after running the arcpy.management.ValidateTopology() function multiple times while editing in ArcGIS Pro.

ArcGIS Pro
漏洞 ID 编号 BUG-000167674
已提交May 21, 2024
上次修改时间December 29, 2024
适用范围ArcGIS Pro
找到的版本3.0.4
操作系统Windows OS
操作系统版本10.0 64 Bit
修正版本3.4
状态Fixed

附加信息

This issue is addressed in ArcGIS 3.4.

解决办法

Add one of the following workaround to the Python script but note sometimes the error inspect does not refresh and this results are inconsistent.

Python Workaround 1:

Changing the zoom level as mentioned in one of the community threads found during researching the issue:

 

def refresh():# 

Refresh the map view by changing the map scale.

# The map view changes by such a small amount that it isn't

# noticeable, but still causes the map view to refresh.   

   mv = aprx.activeView

   mv.camera.scale = mv.camera.scale + 0.1

 

Python Workaround 2:

Get or set the layerDefinition on the layer that is updated, through the CIM:

 

# Reference a project, map, and Layer using arcpy.mp 

p = arcpy.mp.ArcGISProject(' current' ) 

m = p.istLayers('Map') [0]

l = m.listLayers('main.cov')[0]

 

# Return the Layer's CIM definition 

l_cim = l.getDefinition( 'V2') 

 

# Push the changes back to the Layer object 

I. setDefinition( I_cim) 

 

# Save changes 

p. save( )

重现步骤

漏洞 ID: BUG-000167674

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项