[Feature Request] - Add "duplicate selected object" in contextual menu

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
DeeJayOne
Posts: 332
Joined: Thu Sep 05, 2019 9:18 am

Re: [Feature Request] - Add "duplicate selected object" in contextual menu

Post by DeeJayOne »

user1234 wrote: Sat Aug 13, 2022 2:24 pm
DeeJayOne wrote: Fri Aug 12, 2022 7:40 pm I'm not sure to well understand how to use the shortcuts assignement.

- I thought if I put an already shortcut assigned (CTRL+C, CTRL+D), it should appear in the "currently assigned to" text box.
- I have tried to put some different shortcuts (CTRL+D, CTRL+SHIFT+D, CTRL+ALT+D) but the "assign" button still stay grayed.
There seems something wrong. For me it works as expected. But as far as i know in 0.19 there were some issues. What version do you have?

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: French/France (fr_FR)
L'important est de ne pas arrêter de poser des questions. La curiosité a sa propre raison d'exister
The important thing is not to stop questioning. Curiosity has its own reason for existing.
Albert Einstein
user1234
Veteran
Posts: 3335
Joined: Mon Jul 11, 2016 5:08 pm

Re: [Feature Request] - Add "duplicate selected object" in contextual menu

Post by user1234 »

Is that maybe a windows issue? For me it woks as expected. Here when i define duplication at first with Ctrl+D and after this i try it with Ctrl+C. I get a warning and see what is assigned (current and to be assigned).

2022-08-13_17-17.png
2022-08-13_17-17.png (61.42 KiB) Viewed 748 times

Greetings
user1234
User avatar
DeeJayOne
Posts: 332
Joined: Thu Sep 05, 2019 9:18 am

Re: [Feature Request] - Add "duplicate selected object" in contextual menu

Post by DeeJayOne »

user1234 wrote: Sat Aug 13, 2022 3:20 pm Is that maybe a windows issue? For me it woks as expected. Here when i define duplication at first with Ctrl+D and after this i try it with Ctrl+C. I get a warning and see what is assigned (current and to be assigned).
I have checked with other FreeCAD version but in each case, it doesn't work from my Windows 10 computer :
- FC v0.17
- FC v0.18.4
- FC v0.19.3
- FC v0.20.0
- FC v0.21-30058
L'important est de ne pas arrêter de poser des questions. La curiosité a sa propre raison d'exister
The important thing is not to stop questioning. Curiosity has its own reason for existing.
Albert Einstein
user1234
Veteran
Posts: 3335
Joined: Mon Jul 11, 2016 5:08 pm

Re: [Feature Request] - Add "duplicate selected object" in contextual menu

Post by user1234 »

DeeJayOne wrote: Sat Aug 13, 2022 3:34 pm I have checked with other FreeCAD version but in each case, it doesn't work from my Windows 10 computer
Thanks for the testing for different FreeCAD versions. Maybe an other windows user can confirm it.

Just aside: i searched a little bit and found a PR about the shortcut handling. Nothing windows specific, but maybe it solves it.

https://github.com/FreeCAD/FreeCAD/pull/6506


Greetings
user1234
User avatar
paddle
Veteran
Posts: 1392
Joined: Mon Feb 03, 2020 4:47 pm

Re: [Feature Request] - Add "duplicate selected object" in contextual menu

Post by paddle »

chrisb wrote: Fri Aug 12, 2022 7:49 pm
user1234 wrote: Fri Aug 12, 2022 6:09 pm I does exactly the same as copy/paste.
No, it is at least in one point sort of better: duplicating a sketch inside of a body places the copy inside of the body, while copy paste places it always on top level.

I agree with user1234. This duplicate function should not exist. Duplicating an object should be done by copy/paste. I guess it's a shortcut to copy/paste, but it's way faster to use ctrlC ctrlV than to activate a command with the mouse anyway. Though having the shortcut ctrl D doing a ctrlC ctrlV would make sens.

Now this raise the question that copy paste commands are bad. Copy pasting a sketch is very confusing for new comers. Issues :
- first it opens the dependency selector, which should not be required in 95% of cases.
- Then it copys on top level while it should copy on selected body.

See this post : https://forum.freecadweb.org/viewtopic.php?f=10&t=65899

@zackw is currently working on that actually.
Post Reply