laptop and a wrench

Erro

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

Última Publicação: March 6, 2023 ArcGIS Pro
Número de ID do Erro BUG-000155166
EnviadoJanuary 18, 2023
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Pro
Versão encontrada3.0.3
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusAs Designed

Informações Adicionais

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.

Etapas para Reproduzir

ID do Erro: BUG-000155166

Software:

  • ArcGIS Pro

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download