Modern UI

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
KVos4
Posts: 2
Joined: Sun Jan 17, 2021 9:59 pm

Re: Modern UI

Post by KVos4 »

HakanSeven12 wrote: Mon Jan 18, 2021 12:13 pm Hi
Disable start workbench. I already saw this. Its not returning a workbench object and that cause this error. Maybe I can put a pass code for it.
Hakan,

Thank you for the help.

I have disabled the start and the <None> workbench, but still get the following error log. Maybe once a pass is put into the addon this will resolve? May also just be a conflict with current version of FreeCAD?

"
13:17:33 Traceback (most recent call last):
13:17:33 File "C:\Users\Kevin\AppData\Roaming\FreeCAD\Mod\ModernUI\FCBinding.py", line 147, in selectWorkbench
13:17:33 self.createFileMenu()
13:17:33 File "C:\Users\Kevin\AppData\Roaming\FreeCAD\Mod\ModernUI\FCBinding.py", line 91, in createFileMenu
13:17:33 menu_list = workbench.listMenus()
13:17:33 File "<string>", line 70, in listMenus
13:17:33 AttributeError: 'StartWorkbench' object has no attribute '__Workbench__'
13:17:33 Traceback (most recent call last):
13:17:33 File "C:\Users\Kevin\AppData\Roaming\FreeCAD\Mod\ModernUI\FCBinding.py", line 276, in __init__
13:17:33 QtCore.Qt.TopDockWidgetArea, MenuDock())
13:17:33 File "C:\Users\Kevin\AppData\Roaming\FreeCAD\Mod\ModernUI\FCBinding.py", line 46, in __init__
13:17:33 self.setWidget(ModernMenu())
13:17:33 File "C:\Users\Kevin\AppData\Roaming\FreeCAD\Mod\ModernUI\FCBinding.py", line 67, in __init__
13:17:33 self.selectWorkbench()
13:17:33 File "C:\Users\Kevin\AppData\Roaming\FreeCAD\Mod\ModernUI\FCBinding.py", line 147, in selectWorkbench
13:17:33 self.createFileMenu()
13:17:33 File "C:\Users\Kevin\AppData\Roaming\FreeCAD\Mod\ModernUI\FCBinding.py", line 91, in createFileMenu
13:17:33 menu_list = workbench.listMenus()
13:17:33 File "<string>", line 70, in listMenus
13:17:33 AttributeError: 'StartWorkbench' object has no attribute '__Workbench__
"
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

İnteresting. I will put a pass code for start workbench tomorrow. I think that will solve the issue.
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

KVos4 wrote: Mon Jan 18, 2021 6:22 pm Maybe once a pass is put into the addon this will resolve?
Sorry for late answer. I had problems with my computer. I made a fix try it now.
mhalil wrote: Sat Jan 16, 2021 2:15 pm Sağlık olsun, ne yapalım :)
Sende bir deneyebilir misin?
FuriousBottle
Posts: 1
Joined: Sun Jan 24, 2021 2:24 am

Re: Modern UI

Post by FuriousBottle »

Hi, I love the functionality this gives, but I'm just wondering whether there's any plans to make it so that the workbenches automatically switch between each other when required? For example, if I'm working in PartDesign and draw a new sketch, I need to manually switch to the Sketcher workbench. Similarly, when I exit the sketch I need to manually go back to the PartDesign workbench.

It would be nice for workflow if these changes were automatic.

I do love what you've done so far though!
chrisb
Veteran
Posts: 53939
Joined: Tue Mar 17, 2015 9:14 am

Re: Modern UI

Post by chrisb »

Hi and welcome to the forum!
FuriousBottle wrote: Sun Jan 24, 2021 2:28 am if I'm working in PartDesign and draw a new sketch, I need to manually switch to the Sketcher workbench.
Are you posting to the right topic? If this would be the case when using Modern UI, then it would be utterly wrong. Sketches would be placed in the wrong position, outside of the active body.

Can you please clarify this and add your full FreeCAD infos?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Axter
Posts: 1
Joined: Mon Jan 25, 2021 7:54 pm

Re: Modern UI

Post by Axter »

I just install the plugin, and I have no toolbars or menus.
I also don't see anything of the new UI.
Is there anything else I can do to try to get Modern-UI working?

Installation details:
OS: Windows 10 Pro
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0

HakanSeven12 wrote: Sun Apr 05, 2020 12:21 pm How to install?
Open 'Tools -> Addon Manager'.
Select 'Modern UI' and click 'Install/update selected'.
Restart FreeCAD.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Modern UI

Post by Kunda1 »

Install version 0.19 to use this add-on
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
jtm2020hyo
Posts: 594
Joined: Wed Aug 12, 2020 1:24 am

Re: Modern UI

Post by jtm2020hyo »

Could be cool merge modern ui with linkstage3
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Modern UI

Post by Kunda1 »

jtm2020hyo wrote: Sat Feb 06, 2021 12:43 pm Could be cool merge modern ui with linkstage3
Yes, i think it would be really useful and improve it's popularity if it would be ported to LinkStage3
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

I can't solve the shortcuts issue. Same of the shortcuts are not working like del or space. Also it still under development. I want to show only 4 column of icons and move the rest of it to submenus. Also linkstage3 and ModernUI modifying dock widget so there will be bugs.

Are you thinking adding ModernUI to it is a good idea?

If you want to see ModernUI in ls3 the best way is porting it c++ and bound it's interface elements directly to freecad itself. But I only know python. I just hiding toolbars and access their widget and use them to create my widget. But a core implementation is the true way to do it.

I think you must ask realthunder for a c++ port of ModernUI :)
Post Reply