FreeCAD abortable long-running operations (PR #19796)
This FreeCAD contribution makes long-running CAD operations abortable instead of locking up the entire UI, so users can cancel a mistaken operation without waiting or killing FreeCAD and losing unsaved work. A first implementation moved the operation into a child process with a dialog to terminate it; the current approach uses OpenCascade's native support for aborting operations partway through. Submitted as PR #19796 to FreeCAD.
What it addresses
Long-running operations in FreeCAD lock up the entire UI and can't be aborted, so a mistaken operation forces the user to wait for completion or kill FreeCAD and lose unsaved work.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
FreeCAD abortable long-running operations (PR #19796)
This FreeCAD contribution makes long-running CAD operations abortable instead of locking up the entire UI, so users can cancel a mistaken operation without waiting or killing FreeCAD and losing unsaved work. A first implementation moved the operation into a child process with a dialog to terminate it; the current approach uses OpenCascade's native support for aborting operations partway through. Submitted as PR #19796 to FreeCAD.
Problem: Long-running operations in FreeCAD lock up the entire UI and can't be aborted, so a mistaken operation forces the user to wait for completion or kill FreeCAD and lose unsaved work.
Posted by @jstanley · Original source ↗
Source text · @jstanley · · Source ↗
So for my first contribution to FreeCAD I'm working on fixing this. The underlying CAD operations are done by "OpenCascade", and at first I thought OpenCascade had no support for aborting operations part of the way through. So my first implementation was to move the operation into a child process and give the user a dialog box that would allow terminating the child process. But it actually turns out OpenCascade does support aborting the operations! So now I'm working on doing it the OpenCascade way. My PR is here: https://github.com/FreeCAD/FreeCAD/pull/19796