Skip to content

Clear Script Settings

KaiUR edited this page May 31, 2026 · 1 revision

Clear Script Settings

File: Utility_Scripts/Clear_Script_Settings.py
Version: 1.0
Document Type: None (standalone — no CATIA document required)


Description

Removes the %APPDATA%\pycatia_scripts folder and all its contents, resetting every script's saved user presets back to factory defaults. A confirmation dialog lists all script folders that will be removed before proceeding. Each script recreates its own subfolder the next time it is run.


Requirements

Requirement Value
Python >= 3.10
wxPython Required
Open document Not required

Usage

  1. Run the script
  2. A confirmation dialog shows the list of script settings folders that will be deleted and the full folder path
  3. Click Yes to delete, No to cancel
  4. A summary message confirms how many folders were removed

What Gets Deleted

The entire %APPDATA%\pycatia_scripts folder is removed. This includes one subfolder per script that saves settings, for example:

%APPDATA%\pycatia_scripts\
├── Ellipse_Generator\
│   └── user_presets.json
├── NACA_4_Digit_Airfoil_Generator\
│   └── user_presets.json
├── NACA_5_Digit_Airfoil_Generator\
│   └── user_presets.json
│   ...

Only scripts that have been run at least once will have a subfolder here.


Notes

  • If the folder does not exist, the script reports that there is nothing to clear and exits
  • The deletion cannot be undone — scripts will revert to their hardcoded factory defaults on next run
  • CATIA does not need to be open or closed; this script is independent of CATIA

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