How to make the file tab to remember the WB used

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
triplus
Posts: 9278
Joined: Mon Dec 12, 2011 4:45 pm

Re: How to make the file tab to remember the WB used

Postby triplus » Thu Feb 13, 2020 4:03 pm

As this question came up twice in the past couple of months i actually went ahead and implemented a small module (made a prototype earlier today), but now i see that @openBrain beat me to it with a macro.

Better luck next time i guess. ;)
triplus
Posts: 9278
Joined: Mon Dec 12, 2011 4:45 pm

Re: How to make the file tab to remember the WB used

Postby triplus » Thu Feb 13, 2020 6:11 pm

Anyway, better to have two solutions compared to one. Tomorrow i will clean up the prototype and publish it. Would do that today but can't come up with a reasonable module name.
dxp.dev
Posts: 210
Joined: Tue Dec 11, 2018 12:57 pm

Re: How to make the file tab to remember the WB used

Postby dxp.dev » Thu Feb 13, 2020 6:35 pm

And the link to the feature request post : https://forum.freecadweb.org/viewtopic.php?f=8&t=43345
Imperial system makes no sense, go metric ! ! !
User avatar
dcapeletti
Posts: 434
Joined: Wed Jul 23, 2014 2:27 pm

Re: How to make the file tab to remember the WB used

Postby dcapeletti » Fri Feb 14, 2020 10:10 pm

Absolutely right, I think it should be integrated into FreeCAD.
User avatar
salp
Posts: 219
Joined: Thu Nov 21, 2013 11:58 pm
Location: Putnam, NY

Re: How to make the file tab to remember the WB used

Postby salp » Fri Feb 14, 2020 11:39 pm

This is a great macro.

Thank you.
triplus
Posts: 9278
Joined: Mon Dec 12, 2011 4:45 pm

Re: How to make the file tab to remember the WB used

Postby triplus » Sat Feb 15, 2020 11:17 am

openBrain
Posts: 3440
Joined: Fri Nov 09, 2018 5:38 pm

Re: How to make the file tab to remember the WB used

Postby openBrain » Sat Feb 15, 2020 12:13 pm

salp wrote:
Fri Feb 14, 2020 11:39 pm
This is a great macro.

Thank you.
Welcome. I opened a dedicated thread in the Python section so feedback & updates are easier to manage.
dcapeletti wrote:
Fri Feb 14, 2020 10:10 pm
Absolutely right, I think it should be integrated into FreeCAD.
I think it's possible because it won't create a big overhead in the code. Let's ask who knows :
wmayer wrote: Ping
@wmayer : where do you think it would be better integrated in the mainline code ? As a mod ? Or directly somewhere like MainWindow.cpp ? Thx for insight.
wmayer
Site Admin
Posts: 15497
Joined: Thu Feb 19, 2009 10:32 am

Re: How to make the file tab to remember the WB used

Postby wmayer » Sat Feb 15, 2020 1:32 pm

@wmayer : where do you think it would be better integrated in the mainline code ? As a mod ? Or directly somewhere like MainWindow.cpp ? Thx for insight.
I think the best would be to put it to the FreeCAD-addons repo.
openBrain
Posts: 3440
Joined: Fri Nov 09, 2018 5:38 pm

Re: How to make the file tab to remember the WB used

Postby openBrain » Sat Feb 15, 2020 2:52 pm

wmayer wrote:
Sat Feb 15, 2020 1:32 pm
I think the best would be to put it to the FreeCAD-addons repo.
The question was more about porting the feature into the "core" code (probably in C++). ;) Do you think it's not worth having this as a native feature (optionally enabled) ?
dxp.dev
Posts: 210
Joined: Tue Dec 11, 2018 12:57 pm

Re: How to make the file tab to remember the WB used

Postby dxp.dev » Sun Feb 16, 2020 3:05 pm

RemBench just got added to the Add-on Manager, and it works well on my side.

Once installed and FC restarted, just activate or de-activate it from the "Accessories" menu bar.


Thanks for that !



OS: macOS Mojave (10.14)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19566 (Git)
Build type: Release
Branch: master
Hash: 9960b673997a926c101b8b61a65e8d3796664c01
Python version: 3.8.1
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)
Imperial system makes no sense, go metric ! ! !