Rectangle
Purpose
Draws an axis-parallel rectangle over two opposite corners.
Access
- Key: R.
- Ribbon: group Draw Rectangle (2); in the triangle next to it Rectangle (3 points, rotated), slot and curved slot.
- Classic toolbar: button Rectangle (4).
- Command search : Rectangle.

Procedure
- Click the first corner (1).
- The preview follows the mouse; the input field shows width and height (ΔX/ΔY) or diagonal and angle (polar).
- Click the opposite corner (2) — or type the width, Tab, type the height, Enter. Negative values extend to the left or downwards.

A rectangle with a side shorter than 0.01 mm is not created. With the checkbox Create dimension while drawing set, width and height dimension are created along.
Options
With the tool the small movable window ▭ Rectangle opens; it also applies to Rectangle (3 points, rotated) and closes with the tool. The × in the window ends the tool.

- Diagonals crosswise: two diagonals are drawn along as real lines in colour and layer of the rectangle and put into a group Rectangle with diagonals together with it (Rechteck mit Diagonalen in the German interface).
- As separate lines (exploded): the rectangle is immediately resolved into four lines (as with Explode); the dimensions then hang on two edges. With diagonals no group is created in this case — exploded means everything separate.
- Diagonal line width: line width of the diagonals (0 = hairline, at most 10).
The three settings are saved with the program settings.
If the switch ⛓ Live constraints in the header bar is on, the rectangle drawn as separate lines also receives the constraints it satisfies exactly: Horizontal or Vertical for each side (Live constraints). The diagonals stay free; a rectangle as one element receives no constraints.
Welded corners
With As separate lines (exploded) the four lines are welded at the corners at once — whether you click the opposite corner or type width and height; with Diagonals crosswise the ends of the diagonals are included. This happens in the same Undo step as the rectangle and regardless of the checkbox Auto-weld active. If you then drag a corner by its grip, the adjoining lines follow; you can separate them with Unweld.
A rectangle as one element has no corners to weld; with Diagonals crosswise the ends of the diagonals are welded to its corners.
If an existing element, such as a line, ends in a corner of such a rectangle (as lines or with diagonals), it is welded as well — even with auto-weld switched off; the reach is the same as for auto-weld. Even with very small rectangles every corner remains a joint of its own — corners lying close together are not merged.
Related commands
- Rectangle (3 points) — rectangle in any orientation
- Line, Circle