Sketcher CreateRectangle: Difference between revisions

From FreeCAD Documentation
(Marked this version for translation)
(Usage WIP)
Line 37: Line 37:


<!--T:5-->
<!--T:5-->
# There are several ways to invoke the tool:
* After pressing the [[File:Sketcher_CreateRectangle.svg|24px]] '''Create rectangle''' toolbar button, click once to set the first corner, then move the mouse and click a second time to set the opposite corner.
#* Press the {{Button|[[Image:Sketcher_CreateRectangle.svg|16px]] [[Sketcher_CreateRectangle|Rectangle]]}} button.
* Pressing {{KEY|Esc}} or clicking the right mouse button cancels the function.
#* Select the {{MenuCommand|Sketcher → Sketcher geometries → [[Image:Sketcher_CreateRectangle.svg|16px]] Create rectangle}} option from the menu.
#* Right-click in the Sketch view and select the {{MenuCommand|[[Image:Sketcher_CreateRectangle.svg|16px]] Create rectangle}} option from the context menu.
#* The keyboard shortcut: {{KEY|G}} then {{KEY|R}}.
# The '''Rectangle parameters''' section ({{Version|0.22}}) is added at the top of the [[Sketcher_Dialog|Sketcher Dialog]].
# Optionally press the {{KEY|U}} key, or check the '''Rounded corners''' checkbox, to apply round corners to the rectangle.
# Optionally press the {{KEY|J}} key, or check the '''Frame''' checkbox, to add a second rectangle with a constant offset to the first rectangle.
# Optionally press the {{KEY|M}} key, or select from the dropdown list in the parameters section, to change the tool '''Mode''':
#* [[Image:Sketcher_CreateRectangle.svg|16px]] '''Corner, length & width''':
#* [[Image:Sketcher_CreateRectangle_Center.svg|16px]] '''Center, length & width''':
#* [[Image:Sketcher_CreateRectangle3Points.svg|16px]] '''3 corners''':
#* [[Image:Sketcher_CreateRectangle3Points_Center.svg|16px]] '''Center and 2 corners''':



==Notes== <!--T:12-->
==Notes== <!--T:12-->


<!--T:13-->
<!--T:13-->
* When launched the rectangle tools add a '''Rectangle parameters''' section at the top of the Sketcher [[Task_panel|Task panel]] ({{Version|0.22}}). It contains:
# A '''Mode''' spinbox to chose one of the modes to draw the rectangle:
#* Corner, length & width
#* Center, length & width
#* 3 corners
#* Center and two corners
# A '''Rounded corners''' checkbox to apply round corners to the rectangle.
# A '''Frame''' checkbox to add a contour with a constant offset to the (rounded) rectangle.
* All three buttons in this selection now launch the same tool but with different preset combinations of mode and options that can still be altered after the first click.
* All three buttons in this selection now launch the same tool but with different preset combinations of mode and options that can still be altered after the first click.
* If '''Rounded corners''' is enabled, the offset is inward, and the offset value is larger than the corner radius, the offset contour will be created without fillets.
* If '''''' is enabled, the offset is inward, and the offset value is larger than the corner radius, the offset contour will be created without fillets.
* The modes '''3 corners''', and '''Center and two corners''' create parallelograms rather than rectangles.
* The modes '''3 corners''', and '''Center and two corners''' create parallelograms rather than rectangles.



Revision as of 13:54, 8 February 2024

Sketcher CreateRectangle

Menu location
Sketch → Sketcher geometries → Create rectangle
Workbenches
Sketcher
Default shortcut
G R
Introduced in version
-
See also
Sketcher Rounded rectangle, Sketcher Polyline

Description

This tool draws a rectangle by picking two opposite points. When starting the tool, the mouse pointer changes to a white cross with a red rectangle icon. The coordinates of the pointer are shown beside it in blue in real time.

To define a rectangle via a center point and an edge point, use the Centered rectangle tool.

Usage

  1. There are several ways to invoke the tool:
    • Press the Rectangle button.
    • Select the Sketcher → Sketcher geometries → Create rectangle option from the menu.
    • Right-click in the Sketch view and select the Create rectangle option from the context menu.
    • The keyboard shortcut: G then R.
  2. The Rectangle parameters section (introduced in version 0.22) is added at the top of the Sketcher Dialog.
  3. Optionally press the U key, or check the Rounded corners checkbox, to apply round corners to the rectangle.
  4. Optionally press the J key, or check the Frame checkbox, to add a second rectangle with a constant offset to the first rectangle.
  5. Optionally press the M key, or select from the dropdown list in the parameters section, to change the tool Mode:
    • Corner, length & width:
    • Center, length & width:
    • 3 corners:
    • Center and 2 corners:


Notes

  • All three buttons in this selection now launch the same tool but with different preset combinations of mode and options that can still be altered after the first click.
  • If ' is enabled, the offset is inward, and the offset value is larger than the corner radius, the offset contour will be created without fillets.
  • The modes 3 corners, and Center and two corners create parallelograms rather than rectangles.