laptop and a wrench

漏洞

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

上次发布: March 6, 2023 ArcGIS Pro
漏洞 ID 编号 BUG-000155166
已提交January 18, 2023
上次修改时间June 5, 2024
适用范围ArcGIS Pro
找到的版本3.0.3
操作系统Windows OS
操作系统版本10.0 64 Bit
状态As Designed

附加信息

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.

重现步骤

漏洞 ID: BUG-000155166

软件:

  • ArcGIS Pro

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项