Open raindropsfromsky opened 5 months ago
Good bug.
This happens when editing a sketch.
Make two different sketches. Make both visible and start editing one of them.
You can't select edges from the other. This makes sense.
But you can use Ctrl-A to select the other one. Then deleting gives the error. Selection should be limited to only the currently edited sketch.
I had created only one sketch in the file. I had started with Part Design WB, and I had opened that sketch for editing in the Sketcher WB. That's when I saw the error.
Even if the body has multiple sketches, CTRL+A selects all sketches only in Part Design WB; not when we are in the Sketcher WB! The Sketcher WB opens one sketch at a time, and it does not have access to the other sketches in the Part Design WB. So a CTRL+A in the Sketcher WB will not select the other sketches.
Therefore, we will never encounter the condition reflected by this error, IMHO.
Is there an existing issue for this?
Problem description
When I click in space, and then press CTRL+A, Ondsel deselects everything.
At this stage, if I hit Del, Ondsel produces this error:
ViewProviderSketch: Delete: Selection not restricted to one sketch and its subelements
Desired behavior: It should not produce any error at all, because the Delete command did not fail. (There was no selection to be deleted, and so nothing was deleted.)
Secondly, the error implies that I have selected something outside one sketch, which is completely misleading! (An error message must guide the user how to correct his mistake.)
Full version info
Subproject(s) affected?
None
Anything else?
No response
Code of Conduct