I've added some code to the macros dialog. There is now a "Toolbar" button. Click it and it will open the Customize dialog with the macro selected for you in the combo box where the macros are listed. All you have to do is click the Add button, then Close the dialog. Then the code opens the Customize dialog with the Global workbench selected in the workbench combo box and the Macros item selected in the commands combo box. All you have to do is click the right arrow button to put the macro on the toolbar. If you don't already have a custom toolbar created, then you need to click the New button to create one first, then the right arrow.
FreeCAD must be restarted in order to apply changes to the toolbar menu. I offer the option to restart once the process is complete. This is done via the python console with:
Code: Select all
import addonmanager_utilities
addonmanager_utilities.restartFreeCAD()
I think with the guided walkthrough it will be fairly easy even for beginners, but I would like some feedback before submitting the pull request.