Sketcher CreateRectangle: Difference between revisions

From FreeCAD Documentation
(Marked this version for translation)
No edit summary
(34 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{Page_in_progress}}
<translate>
<translate>


Line 18: Line 19:
|Workbenches=[[Sketcher_Workbench|Sketcher]]
|Workbenches=[[Sketcher_Workbench|Sketcher]]
|Shortcut={{KEY|G}} {{KEY|R}}
|Shortcut={{KEY|G}} {{KEY|R}}
|SeeAlso=[[Sketcher_CreateOblong|Sketcher Rounded rectangle]], [[Sketcher_CreatePolyline|Sketcher Polyline]]
|SeeAlso=[[Sketcher_CreatePolyline|Sketcher CreatePolyline]]
}}
}}


Line 24: Line 25:


<!--T:3-->
<!--T:3-->
The [[Image:Sketcher_CreateRectangle.svg|24px]] [[Sketcher_CreateRectangle|Sketcher CreateRectangle]] tool creates a rectangle. {{Version|0.22}}: The tool has four modes, two of which can also produce parallelograms. Rounded corners and creating an offset copy are optional features.
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.

<!--T:11-->
To define a rectangle via a center point and an edge point, use the [[Sketcher_CreateRectangle_Center|Centered rectangle]] tool.


</translate>
</translate>
Line 34: Line 31:
<translate>
<translate>


==Usage== <!--T:4-->
==Usage== <!--T:4-->


See also: [[Sketcher_Workbench#Drawing_aids|Drawing aids]].
<!--T:5-->
* 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.
* Pressing {{KEY|Esc}} or clicking the right mouse button cancels the function.


Pos-OVP = Positional [[Sketcher_Preferences#General|On-View-Parameters]]. {{Version|0.22}}<br>
==Notes== <!--T:12-->
Dim-OVP = Dimensional On-View-Parameters. {{Version|0.22}}


<!--T:13-->
<!--T:5-->
# There are several ways to invoke the tool:
* 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:
#* Press the {{Button|[[Image:Sketcher_CreateRectangle.svg|16px]] [[Sketcher_CreateRectangle|Rectangle]]}} button.
# A '''Mode''' spinbox to chose one of the modes to draw the rectangle:
#* Select the {{MenuCommand|Sketcher → Sketcher geometries → [[Image:Sketcher_CreateRectangle.svg|16px]] Create rectangle}} option from the menu.
#* Corner, length & width
#* Right-click in the [[3D_view|3D view]] and select the {{MenuCommand|[[Image:Sketcher_CreateRectangle.svg|16px]] Create rectangle}} option from the context menu.
#* Center, length & width
#* Use the keyboard shortcut: {{KEY|G}} then {{KEY|R}}.
#* 3 corners
# The cursor changes to a white cross with the current tool mode icon.
#* Center and two corners
# The '''Rectangle parameters''' section ({{Version|0.22}}) is added at the top of the [[Sketcher_Dialog|Sketcher Dialog]].
# 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.
# Optionally press the {{KEY|U}} key or check the '''Rounded corners''' checkbox to apply fillets to the rectangle. {{Version|0.22}}
# Optionally press the {{KEY|J}} key or check the '''Frame''' checkbox to create a second offset shape. {{Version|0.22}}
* 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.
# Optionally press the {{KEY|M}} key or select from the dropdown list in the parameters section to change the tool mode:
* 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.
#* [[Image:Sketcher_CreateRectangle.svg|16px]] '''Corner, width, height''':
* The modes '''3 corners''', and '''Center and two corners''' create parallelograms rather than rectangles.
#*# Pick the first corner of the rectangle. Or with Pos-OVP: enter its X and/or Y coordinate.
#*# Pick the opposite corner of the rectangle. Or with Dim-OVP: enter the width and/or height of the rectangle.
#* [[Image:Sketcher_CreateRectangle_Center.svg|16px]] '''Center, width, height''': {{Version|0.22}}
#*# Pick the center of the rectangle. Or with Pos-OVP: enter its X and/or Y coordinate.
#*# Pick a corner of the rectangle. Or with Dim-OVP: enter the width and/or height of the rectangle.
#* [[Image:Sketcher_CreateRectangle3Points.svg|16px]] '''3 corners''': {{Version|0.22}}
#*# Pick the first corner of the rectangle. Or with Pos-OVP: enter its X and/or Y coordinate.
#*# Pick the endpoint of the first edge of the rectangle. Or with Dim-OVP: enter the length and/or angle of the first edge. The angle is relative to the X axis of the sketch.
#*# Pick the third corner, opposite the first, of the rectangle. Or with Dim-OVP: enter the length and/or angle of the second edge. The angle is relative to the first edge. Only if this angle is 90° will the result be a rectangle.
#* [[Image:Sketcher_CreateRectangle3Points_Center.svg|16px]] '''Center, 2 corners''': {{Version|0.22}}
# If '''Rounded corners''' is selected: Pick a point to determine the fillet radius. Or with Dim-OVP: enter it.
# If '''Frame''' is selected: Pick a point to determine the offset distance. Or with Dim-OVP: enter it. If the offset is inward and larger than the radius, the offset shape will not have fillets.
# The geometry is created and applicable Pos-OVP and Dim-OVP based constraints are added.
# If the tool runs in [[Sketcher_Workbench#Continue_modes|continue mode]]:
## Optionally keep creating rectangles.
## To finish, right-click or press {{KEY|Esc}}, or start another geometry or constraint creation tool.





Revision as of 14:44, 24 March 2024

This documentation is a work in progress. Please don't mark it as translatable since it will change in the next hours and days.

Sketcher CreateRectangle

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

Description

The Sketcher CreateRectangle tool creates a rectangle. introduced in version 0.22: The tool has four modes, two of which can also produce parallelograms. Rounded corners and creating an offset copy are optional features.

Usage

See also: Drawing aids.

Pos-OVP = Positional On-View-Parameters. introduced in version 0.22
Dim-OVP = Dimensional On-View-Parameters. introduced in version 0.22

  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 3D view and select the Create rectangle option from the context menu.
    • Use the keyboard shortcut: G then R.
  2. The cursor changes to a white cross with the current tool mode icon.
  3. The Rectangle parameters section (introduced in version 0.22) is added at the top of the Sketcher Dialog.
  4. Optionally press the U key or check the Rounded corners checkbox to apply fillets to the rectangle. introduced in version 0.22
  5. Optionally press the J key or check the Frame checkbox to create a second offset shape. introduced in version 0.22
  6. Optionally press the M key or select from the dropdown list in the parameters section to change the tool mode:
    • Corner, width, height:
      1. Pick the first corner of the rectangle. Or with Pos-OVP: enter its X and/or Y coordinate.
      2. Pick the opposite corner of the rectangle. Or with Dim-OVP: enter the width and/or height of the rectangle.
    • Center, width, height: introduced in version 0.22
      1. Pick the center of the rectangle. Or with Pos-OVP: enter its X and/or Y coordinate.
      2. Pick a corner of the rectangle. Or with Dim-OVP: enter the width and/or height of the rectangle.
    • 3 corners: introduced in version 0.22
      1. Pick the first corner of the rectangle. Or with Pos-OVP: enter its X and/or Y coordinate.
      2. Pick the endpoint of the first edge of the rectangle. Or with Dim-OVP: enter the length and/or angle of the first edge. The angle is relative to the X axis of the sketch.
      3. Pick the third corner, opposite the first, of the rectangle. Or with Dim-OVP: enter the length and/or angle of the second edge. The angle is relative to the first edge. Only if this angle is 90° will the result be a rectangle.
    • Center, 2 corners: introduced in version 0.22
  7. If Rounded corners is selected: Pick a point to determine the fillet radius. Or with Dim-OVP: enter it.
  8. If Frame is selected: Pick a point to determine the offset distance. Or with Dim-OVP: enter it. If the offset is inward and larger than the radius, the offset shape will not have fillets.
  9. The geometry is created and applicable Pos-OVP and Dim-OVP based constraints are added.
  10. If the tool runs in continue mode:
    1. Optionally keep creating rectangles.
    2. To finish, right-click or press Esc, or start another geometry or constraint creation tool.