laptop and a wrench

漏洞

Python objects pointing to the same underlying ArcObjects should be equal.

上次发布: August 25, 2014 No Product Found
漏洞 ID 编号 NIM081848
已提交June 18, 2012
上次修改时间June 5, 2024
适用范围No Product Found
找到的版本10.1
状态Will Not Be Addressed

附加信息

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.

解决办法

Temporarily set the name of the active data frame to something unique:import randomactiveDF = mxd.activeDataFrameactiveDFName = <a href="http://activeDF.name" target="_blank">activeDF.name</a># Swap in unique name<a href="http://activeDF.name" target="_blank">activeDF.name</a> = "UNIQUEDF{}".format(random.randint(1000, 10000))selectedDF = pythonaddins.GetSelectedTOCLayerOrDataFrame()# Test if they’re the sameis_dataframe_selected = (<a href="http://selectedDF.name" target="_blank">selectedDF.name</a> == <a href="http://activeDF.name" target="_blank">activeDF.name</a>)# Swap back out<a href="http://activeDF.name" target="_blank">activeDF.name</a> = activeDFName

重现步骤

漏洞 ID: NIM081848

软件:

  • No Product Found

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项