NEW FEATURE ! Sketcher Tool Settings.

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
paddle
Veteran
Posts: 1391
Joined: Mon Feb 03, 2020 4:47 pm

NEW FEATURE ! Sketcher Tool Settings.

Post by paddle »

Hey guys!
I'm very excited to present you this new Sketcher feature that I made the last few days. It was hard to explain, but I think with a video it will make a lot of sens instantly :)
phpBB [video]


Create a fully constrained rectangle without it : 25 seconds
Create a fully constrained rectangle with it : 5 seconds

Let me know what you think.

Github branch : https://github.com/PaddleStroke/FreeCAD ... ToolWidget
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: NEW FEATURE ! Sketcher Tool Settings.

Post by adrianinsaval »

Nice job, I doubt I'll use the positioning ones but the length and width I'll probably use every time. Does it work with centered and rounded rectangles too?
The title of "tool settings" isn't good IMO as we aren't really changing settings but constraining the created geometry. How about pre-constraining as a title?
Also wasn't there a thread for this feature already? IMO it's not good to fragmentate the discussion too much
User avatar
paddle
Veteran
Posts: 1391
Joined: Mon Feb 03, 2020 4:47 pm

Re: NEW FEATURE ! Sketcher Tool Settings.

Post by paddle »

Yes there's another thread, but it's old and full of out of topic. There wasn't any interesting content on it so I guessed it was better to drop it.

For now only rectangle and centered rectangle. I'm currently debugging for round corner rectangle. And will do circle, line, point after.
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: NEW FEATURE ! Sketcher Tool Settings.

Post by chrisb »

Moved from Developer forum.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Haavard
Posts: 217
Joined: Wed Feb 17, 2021 10:48 pm

Re: NEW FEATURE ! Sketcher Tool Settings.

Post by Haavard »

Awesome job! Would love to see this developed further and merged in master.
User avatar
paddle
Veteran
Posts: 1391
Joined: Mon Feb 03, 2020 4:47 pm

Re: NEW FEATURE ! Sketcher Tool Settings.

Post by paddle »

Haavard wrote: Thu Jan 13, 2022 4:01 pm Awesome job! Would love to see this developed further and merged in master.
Thanks !


Update on advancement :

The tool ready and working for :
- point
- line
- circle
- arc
- arc by 3 points
- rectangle
- rectangle by center
- round corner rectangle
- circle by 3 points
- Polygone

Missing :
- elipse
- arc of elipse/hyperbola/parabola
- slot (I'm waiting that my branch on slots is integrated to avoid conflicts)
- lineset
- fillet (not sure it can be done with current fillet architecture)

Low hanging fruit for tomorrow: lineset. For Elipse and the arcs it's seems harder and perhaps not worth it.
Last edited by paddle on Thu Jan 13, 2022 8:21 pm, edited 1 time in total.
balrobs
Posts: 449
Joined: Fri Apr 24, 2020 8:58 pm

Re: NEW FEATURE ! Sketcher Tool Settings.

Post by balrobs »

adrianinsaval wrote: Thu Jan 13, 2022 12:48 pm Nice job, I doubt I'll use the positioning ones but the length and width I'll probably use every time.
+1
I think that the tool interface could be cleaned up a bit
Tool_settings.jpg
Tool_settings.jpg (18.79 KiB) Viewed 5291 times
and maybe better words could be found (instead of "of the boxe" I would prefer "of rectangle")
IMHO the tool has a great potential and could help save a lot of time.
Thank you for coding it!
freedman
Veteran
Posts: 3436
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: NEW FEATURE ! Sketcher Tool Settings.

Post by freedman »

Very nice! I like the way it expands only when needed and is a time saver.
User avatar
paddle
Veteran
Posts: 1391
Joined: Mon Feb 03, 2020 4:47 pm

Re: NEW FEATURE ! Sketcher Tool Settings.

Post by paddle »

Thanks!

Polyline was tougher than I thought! The tool is more complex than I thought, it can make arc apparantly, even if I didn't understand how yet.

Beside it enters a mode that I don't understand when you press M (with a perpendicular line). But here with the settings widget grabbing keyboard focus the m gets writen in the spinbox :/
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: NEW FEATURE ! Sketcher Tool Settings.

Post by chrisb »

The M key is very important, as that's what makes polyline so powerful. See Sketcher Polyline.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply