Sketcher: oblique rectangle and parallelogram tool

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!
Post Reply
Piero69
Posts: 473
Joined: Thu Jul 04, 2019 1:22 pm
Location: Parma - Italy

Sketcher: oblique rectangle and parallelogram tool

Post by Piero69 »

i feel useful that also the rectangle tool is driven by "ctrl key" to choose horizontal/vertical or oblique creation just like the forthcoming
implemention in slot tool.

Also, in sketcher is missing a tool to make a generic parallelogram

i know both them could be workarounded (moro or less) by a polyline but a direct command is doubtless better
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Sketcher: oblique rectangle and parallelogram tool

Post by openBrain »

Piero69 wrote: Thu Dec 02, 2021 8:17 am i feel useful that also the rectangle tool is driven by "ctrl key" to choose horizontal/vertical or oblique creation just like the forthcoming
implemention in slot tool.
This would need rectangle to be drawn with perpendicular constraints instead of direct horizontal/vertical ones, which is a bit less solver efficient.
Given that, should we move to this for all rectangle, or add oblique rectangle as a variant ?
User avatar
Shalmeneser
Veteran
Posts: 9475
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Sketcher: oblique rectangle and parallelogram tool

Post by Shalmeneser »

Sketcher_CreateRectangle + Sketcher_RemoveAxesAlignment = oblique rectangle
Parallelogram : never used
Piero69
Posts: 473
Joined: Thu Jul 04, 2019 1:22 pm
Location: Parma - Italy

Re: Sketcher: oblique rectangle and parallelogram tool

Post by Piero69 »

oblique rectangle as a variant is the best solution i think
openBrain wrote: Thu Dec 02, 2021 9:57 am
Piero69 wrote: Thu Dec 02, 2021 8:17 am i feel useful that also the rectangle tool is driven by "ctrl key" to choose horizontal/vertical or oblique creation just like the forthcoming
implemention in slot tool.
This would need rectangle to be drawn with perpendicular constraints instead of direct horizontal/vertical ones, which is a bit less solver efficient.
Given that, should we move to this for all rectangle, or add oblique rectangle as a variant ?
Piero69
Posts: 473
Joined: Thu Jul 04, 2019 1:22 pm
Location: Parma - Italy

Re: Sketcher: oblique rectangle and parallelogram tool

Post by Piero69 »

yes i know, but it's more long... three steps for an intent

1) sketch a rectangle
2) remove aligment
3) insert an angular constraint

with oblique rectangle as variant in the tool you sketch and then dimension the angle saving one step
Shalmeneser wrote: Thu Dec 02, 2021 11:14 am Sketcher_CreateRectangle + Sketcher_RemoveAxesAlignment = oblique rectangle
Parallelogram : never used
drmacro
Veteran
Posts: 8870
Joined: Sun Mar 02, 2014 4:35 pm

Re: Sketcher: oblique rectangle and parallelogram tool

Post by drmacro »

Piero69 wrote: Thu Dec 02, 2021 1:49 pm ...saving one step
...
So, you save what? 100 milliseconds? :roll:

Sorry, I just don't get the need for such savings. :?

Yes, I get it, I'm just an old crank and humbug. :mrgreen:
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
chrisb
Veteran
Posts: 53939
Joined: Tue Mar 17, 2015 9:14 am

Re: Sketcher: oblique rectangle and parallelogram tool

Post by chrisb »

I too am against such tools for rather special use cases. Furthermore there is a tool to remove the axis alignment.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
obelisk79
Veteran
Posts: 1063
Joined: Thu Sep 24, 2020 9:01 pm

Re: Sketcher: oblique rectangle and parallelogram tool

Post by obelisk79 »

Seems like a parallelogram is a bit of a fringe requirement to be added as a tool. Perhaps you could write a simple macro function to do this, and share with the community, rather than it be added as a permanent function.
Post Reply