While constructing I miss often that one cannot insert directly rounded rectangles. As it is, one needs first to insert a rectangle, then go to fillet mode, then click 4 times, then set equal constraint, then often also replace the vertical/horiztontal constraints since a rectangle must not necessarily be parallel to a sketch axis
As solution this PR adds rounded rectangles in one step. This saves a lot of time since this object is e.g. often used for milled rectangular pockets, for 3D-printed pads etc.
Since the slot is a special case of a rounded rectangle and the use cases are similar as well, I grouped the lot and rounded rectangle.
Here is a screencast how I implemented it: I asses the 4 auxiliary lines because in practice one wants to place the rectangle within 2 marks. So the rounded rectangle should be as usable as the normal rectangle - the first and the final click defines the dimensions of the rectangle.
The only minor thing that I cannot resolve is that the radius of the corners during the preview/seeking is incorrect. I spent a lot of time in debugging and the coordinates are correct, but the display is not. Any hint is welcome. The code is in CommandCreateGeo.cpp in line 6694 ff.
abdullah wrote: .