[Sketch] add new sketch object rounded rectangle
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/horizontal 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. As discussed I grouped the rectangle and rounded rectangle.
This commit is contained in:
committed by
abdullahtahiriyo
parent
9073517291
commit
01d2f6298f
@@ -233,6 +233,21 @@ inline void SketcherAddWorkspaceRegularPolygon<Gui::ToolBarItem>(Gui::ToolBarIte
|
||||
geom << "Sketcher_CompCreateRegularPolygon";
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void SketcherAddWorkspaceRectangles(T& geom);
|
||||
|
||||
template <>
|
||||
inline void SketcherAddWorkspaceRectangles<Gui::MenuItem>(Gui::MenuItem& geom)
|
||||
{
|
||||
geom << "Sketcher_CreateRectangle"
|
||||
<< "Sketcher_CreateOblong";
|
||||
}
|
||||
|
||||
template <>
|
||||
inline void SketcherAddWorkspaceRectangles<Gui::ToolBarItem>(Gui::ToolBarItem& geom)
|
||||
{
|
||||
geom << "Sketcher_CompCreateRectangles";
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void SketcherAddWorkspaceFillets(T& geom);
|
||||
@@ -257,8 +272,8 @@ inline void SketcherAddWorkbenchGeometries(T& geom)
|
||||
<< "Sketcher_CreateLine";
|
||||
SketcherAddWorkspaceArcs(geom);
|
||||
geom << "Separator"
|
||||
<< "Sketcher_CreatePolyline"
|
||||
<< "Sketcher_CreateRectangle";
|
||||
<< "Sketcher_CreatePolyline";
|
||||
SketcherAddWorkspaceRectangles(geom);
|
||||
SketcherAddWorkspaceRegularPolygon(geom);
|
||||
geom << "Sketcher_CreateSlot"
|
||||
<< "Separator";
|
||||
|
||||
Reference in New Issue
Block a user