ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

RefreshCatalog

  • Summary
  • Discussion
  • Syntax
  • Code sample

Summary

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.

Syntax

RefreshCatalog (dataset)
ParameterExplanationData Type
dataset

Data element to be refreshed.

String

Code sample

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)

Related topics

  • RefreshActiveView

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2019 Esri. | Privacy | Legal