A reset tool for Revit's UI in case you've seemingly irrevocably lost your UI elements.
Go to file
colin c390750b24 Add README.md 2024-11-26 15:26:39 -05:00
README.md Add README.md 2024-11-26 15:26:39 -05:00
ResetRevitUI.ps1 Add ResetRevitUI.ps1 2024-11-26 15:22:25 -05:00

README.md

Revit UI Reset Tool

This repository provides a PowerShell script (ResetRevitUI.ps1) to reset the user interface settings for Autodesk Revit. It allows you to automatically close Revit, rename the UIState.dat file (which stores the UI settings), and relaunch Revit with default UI settings.

Repository

Features

  • Automatically closes Revit if it is running.
  • Renames the UIState.dat file to reset Revit UI settings.
  • Relaunches Revit with default settings, making it easier to troubleshoot UI issues.

Usage

Prerequisites

  • Windows operating system.
  • Autodesk Revit 2024 (or other recent versions).
  • Administrator privileges to run the script.

How to Use

  1. Download the Script

    • Visit the following link to download the script directly: ResetRevitUI.ps1
    • Save the script to a known location on your computer (e.g., Downloads folder).
  2. Run the PowerShell Script

    • Open PowerShell with Administrator privileges:
      • Press Windows + S, type "PowerShell", right-click on Windows PowerShell, and select Run as Administrator.
    • Navigate to the directory where you saved the script. For example:
      cd "$env:USERPROFILE\Downloads"
      
    • Execute the script:
      .\ResetRevitUI.ps1
      

    The script will:

    • Close any running instance of Revit.
    • Rename the UIState.dat file to UIState.dat.bak.
    • Relaunch Revit.

Undoing the Changes

If you want to undo the changes made by the script:

  1. Close Revit if it is running.
  2. Rename the UIState.dat.bak file back to UIState.dat:
    • Navigate to the folder %APPDATA%\Autodesk\Revit\Revit 2024 (or the relevant version).
    • Find the UIState.dat.bak file.
    • Rename it back to UIState.dat.
  3. Relaunch Revit.

Notes

  • Make sure Revit is not running important unsaved projects before running the script, as it will forcibly close Revit.
  • The script will attempt to find the latest version of Revit installed by looking in the %APPDATA% folder.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributions

Contributions are welcome! Feel free to submit a pull request or open an issue to suggest improvements or report bugs.

Contact

For any questions or suggestions, please contact Colin.