[implemented] [Sketcher] add feature to restrict direction when copying

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!
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

[implemented] [Sketcher] add feature to restrict direction when copying

Post by uwestoehr »

Hi Abdullah,
a few days ago you kindly added the feature for https://wiki.freecadweb.org/Sketcher_RectangularArray that one can press SHIFT to restrict the direction to steps of 10°.

This is super useful and I would like to have this also for
https://wiki.freecadweb.org/Sketcher_Copy
Is this possible?

abdullah wrote: .
User avatar
chennes
Veteran
Posts: 3914
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: [Sketcher] add feature to restict direction when copying

Post by chennes »

Good idea -- though I think I'd prefer steps of 45° for this use, or potentially even just restrict to purely horizontal or vertical motion. The image manipulation programs I use work like that.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: [Sketcher] add feature to restict direction when copying

Post by uwestoehr »

chennes wrote: Sun Oct 10, 2021 2:34 am Good idea -- though I think I'd prefer steps of 45° for this use, or potentially even just restrict to purely horizontal or vertical motion. The image manipulation programs I use work like that.
I recently needed 30° (180 / 6). With steps of 15° one can get 30° as well as 45° and thus please everybody.

Purely horizontal or vertical is for sure the main use case, but there are often also other uses cases.
carlopav
Veteran
Posts: 2062
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: [Sketcher] add feature to restict direction when copying

Post by carlopav »

uwestoehr wrote: Sun Oct 10, 2021 3:29 am
I recently needed 30° (180 / 6). With steps of 15° one can get 30° as well as 45° and thus please everybody.
+1
follow my experiments on BIM modelling for architecture design
mario52
Veteran
Posts: 4696
Joined: Wed May 16, 2012 2:13 pm

Re: [Sketcher] add feature to restrict direction when copying

Post by mario52 »

Hi

or comboBox or doubleSpinbox

preRequested00.png
preRequested00.png (18.64 KiB) Viewed 2287 times

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: [Sketcher] add feature to restrict direction when copying

Post by abdullah »

git commit git commit 6e4a09f569cfd4df0219ad799a646ceb882a251f

CTRL, 5 degrees (it is still large enough for a good snap, it is still good for 45 degrees, 10, 15, 30, 20 and 40 degrees).

I modified the Array one too for coherence.
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: [Sketcher] add feature to restrict direction when copying

Post by abdullah »

mario52 wrote: Sun Oct 10, 2021 9:49 am Hi

or comboBox or doubleSpinbox

mario
This could be an alternative for the rectangular array as it already has a dialog. For the simple copy there is no dialog. It is intended to be "quick" "ctrl+c ctrl+v" alike.
User avatar
ragohix769
Posts: 568
Joined: Sat Jul 18, 2020 7:04 am
Location: Rome - Italy

Re: [Sketcher] add feature to restict direction when copying

Post by ragohix769 »

carlopav wrote: Sun Oct 10, 2021 8:22 am
uwestoehr wrote: Sun Oct 10, 2021 3:29 am
I recently needed 30° (180 / 6). With steps of 15° one can get 30° as well as 45° and thus please everybody.
+1
+1 too, very useful, IMHO.

I tried in the daily this new feature using CTRL to copy/array but only by 10°, so cannot be done 45° easily.
After #ElonMuskBuyTwitter I'm no more on Twitter, that's really enough :-(
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same :-)
mario52
Veteran
Posts: 4696
Joined: Wed May 16, 2012 2:13 pm

Re: [Sketcher] add feature to restrict direction when copying

Post by mario52 »

Hi
abdullah wrote: Tue Oct 12, 2021 7:47 am
ok just one suggestion

thanks for you work

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: [Sketcher] add feature to restrict direction when copying

Post by abdullah »

mario52 wrote: Tue Oct 12, 2021 3:42 pm ok just one suggestion
Which are always welcome!! :)
Post Reply