Draft grid stays in other workbenches
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
Draft grid stays in other workbenches
Is there a way to get the draft grid to go away when you switch to another workbench?
I always end up having to go back to click it off...
I always end up having to go back to click it off...
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Re: Draft grid stays in other workbenches
You could add a shortcut to a custom button that just runs this command.
Code: Select all
Gui.runCommand("Draft_ToggleGrid")
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Re: Draft grid stays in other workbenches
After quite some trials to handle this grid I decided to switch it off completely by unchecking "Use grid" in the Draft preferences. This has the drawback that just in case I want to use it, I have to change the preferences first.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Draft grid stays in other workbenches
AH! Good to know that it can be turned off...I learn a new nook and cranny of FC every day.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Re: Draft grid stays in other workbenches
It was the last resort. I would have liked to keep it, because it comes handy, but I don't work much in Draft; so it was annoying that I always had to switch back to Draft, to switch it off.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
-
- Veteran
- Posts: 5513
- Joined: Thu Apr 05, 2018 1:53 am
Re: Draft grid stays in other workbenches
Same here.
Re: Draft grid stays in other workbenches
There is already a ticket: issue #3817. Please check if the planned behaviour is ok.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Draft grid stays in other workbenches
I have thought for a while about the grid behaviour and I think there shouldn't be a "Use grid" checkbox at all, or to be more precise: it shouldn't be necessary to have such a toggle: If a user eplicitely clicks the grid button, then it should of course be shown. If he doesn't like it he should not click it.
Currently this checkbox is only needed because otherwise the grid pops up unexpectedly. I think it is sufficient to have the first two points described by Yorik in the ticket:
Currently this checkbox is only needed because otherwise the grid pops up unexpectedly. I think it is sufficient to have the first two points described by Yorik in the ticket:
Then the "Use grid" checkbox could be omitted.If Draft -> Use grid is on and always use grid is on:
- Show the grid on entering Draft, keep the grid on leaving Draft
If Draft -> Use grid is on and always use grid is off:
- Do not show the grid on entering Draft, hide the grid on leaving Draft
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Draft grid stays in other workbenches
I have thought about this a few times over the years, and I have a question.
Does a workbench know when if has been "left" in favor of another workbench? I would guess not. Unlike closing a program there would seem to be no need for any finalizing operations when one switches workbenches.
Gene
Does a workbench know when if has been "left" in favor of another workbench? I would guess not. Unlike closing a program there would seem to be no need for any finalizing operations when one switches workbenches.
Gene
-
- Veteran
- Posts: 5513
- Joined: Thu Apr 05, 2018 1:53 am
Re: Draft grid stays in other workbenches
Yes, there is a way for a workbench to know the user has left it. I use this in DynamicData and in ThreadProfile to move the toolbar to the new workbench (which the user can disable if preferred).GeneFC wrote: ↑Wed Jul 15, 2020 4:24 pm I have thought about this a few times over the years, and I have a question.
Does a workbench know when if has been "left" in favor of another workbench? I would guess not. Unlike closing a program there would seem to be no need for any finalizing operations when one switches workbenches.
Gene