Sketcher: drive the intent in slot creation

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Piero69
Posts: 473
Joined: Thu Jul 04, 2019 1:22 pm
Location: Parma - Italy

Sketcher: drive the intent in slot creation

Post by Piero69 »

currently the slot creation in sketcher is free and you have to constrain it after. i feel very useful to have at least working horizontal and vertical constraints during the creation to drive the intent. i mean something like that:

1) click the first point
2) ability to use H or V constraint by keyboard
3) click the second point (constrained according to H or V selection)


if you skip the "step 2" the slot is free like now

what do you think?
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: Sketcher: drive the intent in slot creation

Post by chrisb »

It used to be horizontal and vertical only. It may be helpful to do something similar to the Ctrl-key with the Polyline tool: If the Ctrl key is pressed, then the old vertical/horizontal constraints are applied.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Sketcher: drive the intent in slot creation

Post by openBrain »

Something like this ?
snapSlot.gif
snapSlot.gif (339.78 KiB) Viewed 2236 times
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: Sketcher: drive the intent in slot creation

Post by chrisb »

Concerning one of your last PRs: Obviously it is not only crash fixes, that can be implemented extremely fast :D .
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Sketcher: drive the intent in slot creation

Post by openBrain »

chrisb wrote: Thu Nov 25, 2021 10:44 am Concerning one of your last PRs: Obviously it is not only crash fixes, that can be implemented extremely fast :D .
:lol: If you look at the code of the PR, you can see it's not such a big deal. ;) And my own opinion is that this feature is interesting, which also counts. :)
FYI, I choosed the Ctrl key before you said it to be in sync with the 45° snapping feature of polyline arcs. ;)
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: Sketcher: drive the intent in slot creation

Post by chrisb »

openBrain wrote: Thu Nov 25, 2021 10:47 am FYI, I choosed the Ctrl key before you said it to be in sync with the 45° snapping feature of polyline arcs. ;)
Let's take this as a proof that it is sensible to have things consistent. :D
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
drmacro
Veteran
Posts: 8872
Joined: Sun Mar 02, 2014 4:35 pm

Re: Sketcher: drive the intent in slot creation

Post by drmacro »

FWIW

The arcslot and roundedrectangle macros here result in constrained shapes that can be moved or rotated.


https://github.com/macdroid53/FreeCADScripts
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
freedman
Veteran
Posts: 3441
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: Sketcher: drive the intent in slot creation

Post by freedman »

Could it be smart? If you drag H or V then it constrains H or V, if other then it is free. This would be tablet friendly. This probably won't be as easy but it could be the start of adding new options without key strokes.
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Sketcher: drive the intent in slot creation

Post by openBrain »

freedman wrote: Thu Nov 25, 2021 4:23 pm Could it be smart? If you drag H or V then it constrains H or V, if other then it is free. This would be tablet friendly. This probably won't be as easy but it could be the start of adding new options without key strokes.
That would be pretty easy to implement actually.
Post Reply