1 .. _create_sketch_rectangle:
6 Rectangle feature creates a rectangle by two opposite points in the current Sketch.
8 The result is represented in form of four Lines which compose a rectangle.
9 Two lines have Vertical constraint and two others have Horizontal constraint.
11 To add a new Rectangle to the Sketch:
13 #. select in the Main Menu *Sketch - > Rectangle* item or
14 #. click **Rectangle** button in Sketch toolbar:
16 .. image:: images/rectangle.png
22 The following property panel appears:
24 .. image:: images/Rectangle_panel.png
30 Click in the view once to set the first corner, then move the mouse and click a second time to set the opposite corner.
31 If an existing object is clicked, a constraint for the point will be created automatically.
33 Start and end points coordinates are displayed in the property panel.
35 **TUI Command**: *Sketch_1.addRectangle(X1, Y1, X2, Y2)*
37 **Arguments**: 4 values (coordinates of the start and end points).
42 Created rectangle appears in the view.
44 .. image:: images/Rectangle_res.png
50 **See Also** a sample TUI Script of :ref:`tui_create_rectangle` operation.