laptop and a wrench

Bug

Different results are returned when using the setExtent(), panToExtent(), zoomToAllLayers() ArcPy functions in ArcGIS Pro Notebook or Python windows.

Zuletzt veröffentlicht: March 6, 2023 ArcGIS Pro
Bug-ID-Nummer BUG-000155166
EingereichtJanuary 18, 2023
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS Pro
Gefunden in Version3.0.3
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
StatusAs Designed

Zusätzliche Informationen

The scripts provided to reproduce the issue works as expected. #mf.panToExtent(desc.extent) - This pans correctly and does not change scale. mf.camera.setExtent(desc.extent) - This correctly sets the map frame extent. mf.zoomToAllLayers(desc.extent) - This is wrong syntax. There are two optional input parameters that consider selection and symbol when zooming. Passing in an extent object throws an error. Also, when writing a script where the application update can be seen appropriately, the ArcGISProject('CURRENT') keyword must be used and not reference a project on a disk. If the project on a disk needs to be updated, then pass in the full path, save the changes and then open the updated project.

Schritte zur Reproduzierung

Bug-ID: BUG-000155166

Software:

  • ArcGIS Pro

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