Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

APEbbers/FreeCAD-Ribbon_forked

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreeCAD Ribbon UI

An Ribbon UI for FreeCAD, based on the PyQtRibbon library (https://github.com/haiiliin/pyqtribbon). This ribbon is based the work of Geolta (https://github.com/geolta/FreeCAD-Ribbon) and HakanSeven (https://github.com/HakanSeven12/Modern-UI) for the Modern-UI workbench.

The FreeCAD ribbon provides the following functions and features:

  • Replace the default toolbars with a ribbon based on the original toolbars
  • The ribbon design is stored in a Json file for easy modification of the ribbon design.
  • A Ribbon Design dialog is provided for easy customization. (The changes are stored in the Json file). With this dialog you can:
    • Include/exclude toolbars to be used as a panel in the ribbon
    • Include/exclude workbenches
    • Create your own panels based on one or more toolbars
    • Change the order of the panels
    • Change the order of the buttons
    • Customize button text
    • Set the button size to small, medium or large
  • You can apply your own stylesheet
  • Scripts are provided to help setup your own customized Ribbon
  • Much more...

See the wiki page for more details and how to customize the Ribbon to your preference.

Installation

There are two options for installing this addon:

Custom Repository for Addon Manager

Go to Edit/Preferences/Addon-Manager and add the custom repository https://github.com/APEbbers/FreeCAD-Ribbon.git with the branch main. Now you can go to the Addon Manager (Tools/Addon-Manager) and install "FreeCAD Ribbon" (maybe you have to update your local cache first). Now restart FreeCAD and you will see a ribbon interface :)

Manual Installation

Download this repository, extract the folder and copy it to the Mod folder of FreeCAD, detailed information can be found at the FreeCAD Wiki. Now restart FreeCAD and you will see a ribbon interface :)

Uninstallation

  1. Remove the folder of this in the Mod folder of your FreeCAD installation
  2. Restart FreeCAD.
  3. When you restarted you don't see any toolbar.
  4. Create a new macro (Macro menu -> macros...-> create macro)
  5. Paste this code in to macro.
    from PySide import QtCore, QtGui, QtWidgets
    mw = FreeCADGui.getMainWindow()
    mw.menuBar().show()
    
    WBList = FreeCADGui.listWorkbenches()
    for WB in WBList:
        FreeCADGui.activateWorkbench(WB)
        for tb in mw.findChildren(QtWidgets.QToolBar):
            tb.show()
  6. Execute the macro
  7. Restart FreeCAD.

Discussion

Feel free to discuss this addon on the FreeCAD Forum.

Known Issues

  • To retrieve all toolbars and command per workbench, all workbenches must be activated. Unfortunally, this results in a longer loading time for the Ribbon Design menu. (up to a few minutes)
  • When the Assembly4 Workbench is installed, make sure that the internal assembly workbench is placed before the Assembly4 workbench. If not, the ribbon for the internal assembly will show the wrong panel named "Assembly".

License

GPL v3.0 (see LICENSE)

About

FreeCAD Ribbon UI

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Python 100.0%