ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Aide
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plateforme cartographique de votre organisation

ArcGIS Desktop

Un SIG professionnel complet

ArcGIS Enterprise

SIG dans votre entreprise

ArcGIS Developers

Outils de création d'applications de localisation

ArcGIS Solutions

Modèles d'applications et de cartes gratuits pour votre secteur d'activité

ArcGIS Marketplace

Téléchargez des applications et des données pour votre organisation.

  • Documentation
  • Support
Esri
  • Se connecter
user
  • Mon profil
  • Déconnexion

ArcMap

  • Accueil
  • Commencer
  • Carte
  • Analyser
  • Gérer les données
  • Outils
  • Extensions

RefreshCatalog

  • Résumé
  • Discussion
  • Syntaxe
  • Exemple de code

Résumé

Forces a refresh of the Catalog window or Catalog tree.

Discussion

The Catalog window may not always display the latest state of all information. In these cases, it is useful to refresh your content. For instance, intermediate data created within a script tool, or using other python modules to create or move data will not be automatically shown in the Catalog window.

Syntaxe

RefreshCatalog (dataset)
ParamètreExplicationType de données
dataset

Data element to be refreshed.

String

Exemple de code

RefreshCatalog example

Forces a refresh after using shutil.copytree to copy a directory.

import shutil
import arcpy

input_folder = "c:/data/hydrology"
target_folder = "c:/test/hydro_backup"

# Copy a directory tree to a backup location
shutil.copytree(input_folder, target_folder)

# Refresh the Catalog window for the new directory
arcpy.RefreshCatalog(target_folder)

Rubriques connexes

  • RefreshActiveView

ArcGIS Desktop

  • Accueil
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

A propos d'Esri

  • A propos de la société
  • Carrières
  • Blog d’Esri
  • Conférence des utilisateurs
  • Sommet des développeurs
Esri
Donnez-nous votre avis.
Copyright © 2021 Esri. | Confidentialité | Légal