chrisb wrote: ↑
Sat Nov 04, 2017 11:59 pm
HoWil wrote: ↑
Sat Nov 04, 2017 7:09 pm
Why not selecting everything with Ctrl-A and press Del.
That was my intention.
abdullah wrote: ↑
Sat Nov 04, 2017 3:39 pm
- Deleting is very slow on complex sketches. Even more if constraints are linked through expressions. It can get to several minutes to just delete the content of the sketch (e.g. to start over again).
- Why would I want to delete all the content? To start over again. Maybe you have already a lot of operations depending on that sketch you tried to modify but it went south. Now you want to just start over again in that sketch.
The only problem with the current methods of deleting elements is time. Because they are designed for a partial deletion, each and every single element must be deleted at a time, involving an update of all the sketch. In complex sketches (with broken expressions) this can be as much as 15-20 minutes to delete some 60 constraint elements in a i7 computer (sometimes including several times the annoying modal pop-up about "duplicated constraint"). I think it is possible to improve the general method for deletion (now geometry elements and constraints have unique id, which could be exploited to improve it). It is in my list. However I do not have the time now for it.
Anyway, you provided me with the feedback I was expecting. A UI command is too much for it. I have created and I am testing a command that can be run from the python console, even out of sketch edit mode, that can achieve this cheap deletion of geometry. It would be something like:
Code: Select all
ActiveSketch = App.ActiveDocument.getObject('Sketch061')
About Ctrl+A, mea culpa, it is by default assigned to the probably least useful shortcut in all FreeCAD, Internal Alignment Constraint. Something that clearly does not need a shortcut, because I guess almost nobody has ever used it manually (maybe only people who tested ellipses a couple of years ago) and for sure nobody uses it manually in a normal workflow. I think that "Ctrl+A" for selection is also locale dependent (maybe somebody not english, german, french can confirm this point). Probably it is best to rethink the whole sketch shortcuts first
(it is something anybody could do, for example people from UX if they are interested). I would tend to think that Drafts WB way of shortcuts (e.g. C,L for clone) is a very elegant way of solving the issue. It may make sense to drop all CTRL or CTRL+SHIFT shortcuts. I think we need some kind of harmonisation here. Here we do not need a coder/developer. We need somebody with a sense of ergonomics.
(marketing mode on)So if you are reading this and you would like to contribute to your favourite CAD software, maybe you could start a thread in UX subforum (I think it belongs there) to make FreeCAD a little bit more yours. Remember actual users are suffering frustrated with the current shortcuts of the Sketcher. You can make the difference. Thousands of happy users will show you gratitude for it. It is within the reach of your hands. Do not let this opportunity pass you by and open the thread right now. (marketing mode off).