Skip to content

Clear CATIA Temp Files

KaiUR edited this page May 28, 2026 · 1 revision

Clear CATIA Temp Files

File: Utility_Scripts/Clear_CATIA_Temp_Files.py
Version: 1.0
Document Type: None required


Description

Deletes accumulated files from the CATTemp and CATReport folders for selected CATIA V5 versions. Scans C:\ProgramData\DassaultSystemes\CATEnv\ for installed versions and resolves the CATTemp and CATReport paths from each environment file. A dialog lets you choose which versions and which folder types to clear. Files inside the selected folders are deleted; the folders themselves are preserved.

Use when CATIA is sluggish or reporting unusual behaviour due to accumulated temporary output.


Requirements

Requirement Value
Python >= 3.10
wxPython >= 4.2.5
pycatia Not required
Open document Not required

Usage

  1. Close CATIA before running this script
  2. Run the script
  3. Select the versions to clear (all selected by default)
  4. Choose which folder types to clear: CATTemp, CATReport, or both (both selected by default)
  5. Click Clear
  6. A results summary is shown listing how many files were deleted per version and folder

Notes

  • CATIA must be closed before clearing — files in use cannot be deleted and will be reported as errors
  • The folders themselves (CATTemp, CATReport) are kept; only their contents are removed
  • If a folder path cannot be found for a version, that entry is skipped and reported
  • Individual files that cannot be deleted (e.g. locked by another process) are reported as errors; the rest are still deleted

Home


Getting Started


Contributing


Any Document Scripts


Drawing Document Scripts


Part Document Scripts


Shape Generation Scripts


Process Document Scripts


Product Document Scripts


Utility Scripts


Legal

Clone this wiki locally