Ah I think I found the issue. I edit and save the Python module outside FreeCAD. This updated file does not get imported when I rerun my macro. So no matter what I change I get the same behaviour. When I quit and restart FreeCAD everything is fine because then the updated module is imported. So in the end it has nothing to do with “edit>run” versus “execute”. Is there a way to reset the macro and module files in FreeCAD without restarting?