Making constraint 'clear' when sketchHandler active
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Making constraint 'clear' when sketchHandler active
I think space key is good because it's easy to access. Specially if it's unused in this scope.
Support me on Patreon: https://www.patreon.com/FreeCadDevDiary
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
- adrianinsaval
- Veteran
- Posts: 5553
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Making constraint 'clear' when sketchHandler active
can you give me an example of what tool allows you to select a constraint? AFAIK none of them does anything with a preselected constraint so IMO adding a key to enable/disable this gives no benefit.
Re: Making constraint 'clear' when sketchHandler active
The idea is to add a key to enable it when not using a tool. On top of having it enabled all the time when a tool is active.adrianinsaval wrote: ↑Tue Jan 25, 2022 7:16 pm can you give me an example of what tool allows you to select a constraint? AFAIK none of them does anything with a preselected constraint so IMO adding a key to enable/disable this gives no benefit.
This is to help selecting geometries when sketch is complex and cluttered with constraints.
Support me on Patreon: https://www.patreon.com/FreeCadDevDiary
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
- adrianinsaval
- Veteran
- Posts: 5553
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Making constraint 'clear' when sketchHandler active
ah sorry for the noise, and why wouldn't it be possible to configure this key?
Re: Making constraint 'clear' when sketchHandler active
Roughly, this is handled in a very specific place in the code where key events are passed through view provider as pivy SoKeyboard values. Not as 'Qt shortcuts'.adrianinsaval wrote: ↑Tue Jan 25, 2022 7:31 pm ah sorry for the noise, and why wouldn't it be possible to configure this key?
An alternative to make this configurable would be to have a command that will toggle constraint selectability on and off. But as said, that would be toggle behavior : one key press turns off, next key press turns on, an so on.
Now, the behavior is "constraints aren't selectable while key is held pressed", which I find better for this usage.
Re: Making constraint 'clear' when sketchHandler active
OK, thought to this again and an alternative to 'Space' may be the 'Shift' key (which is roughly the lone modifier that isn't used to perform some actions already).
I tested on this morning. It works and doesn't prevent commands using 'Shift' in their shortcuts to work.
Would you prefer 'Shift' to 'Space' ?
I tested on this morning. It works and doesn't prevent commands using 'Shift' in their shortcuts to work.
Would you prefer 'Shift' to 'Space' ?
Re: Making constraint 'clear' when sketchHandler active
Personally I prefer Space.
Support me on Patreon: https://www.patreon.com/FreeCadDevDiary
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
Re: Making constraint 'clear' when sketchHandler active
Shift, Ctrl and friends are modifiers, which should be used to change the behaviour of an action in progress, such as the 45° angle restriction in Polyline. A key such as space can be used to change a certain state, such as the Polyline's continuation mode. The border between these two is not very sharp, but it exists. So you may decide how to handle it.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Making constraint 'clear' when sketchHandler active
Based on this, your preferred choice is 'Shift'.chrisb wrote: ↑Wed Jan 26, 2022 6:05 pm Shift, Ctrl and friends are modifiers, which should be used to change the behaviour of an action in progress, such as the 45° angle restriction in Polyline. A key such as space can be used to change a certain state, such as the Polyline's continuation mode. The border between these two is not very sharp, but it exists. So you may decide how to handle it.
Re: Making constraint 'clear' when sketchHandler active
I often use the space bar while editing a sketch.
It is useful for documents with multiples parts such assemblyes when doing modifications or making sketechs to get references, for example.
Sorry for the late.
Regards.
It is useful for documents with multiples parts such assemblyes when doing modifications or making sketechs to get references, for example.
Sorry for the late.
Regards.