laptop and a wrench

Bug

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

Zuletzt veröffentlicht: August 25, 2014 No Product Found
Bug-ID-Nummer NIM081848
EingereichtJune 18, 2012
Zuletzt geändertJune 5, 2024
Gilt fürNo Product Found
Gefunden in Version10.1
StatusWill Not Be Addressed

Zusätzliche Informationen

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.

Workaround

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

Schritte zur Reproduzierung

Bug-ID: NIM081848

Software:

  • No Product Found

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln