1 .. _create_sketch_rectangle:
6 .. |rectangle.icon| image:: images/Rectangle.png
8 Rectangle feature creates a rectangle by two opposite points in the current Sketch.
10 The result is represented in form of four Lines which compose a rectangle.
11 Two lines have Vertical constraint and two others have Horizontal constraint.
13 To add a new Rectangle to the Sketch:
15 #. select in the Main Menu *Sketch - > Rectangle* item or
16 #. click |rectangle.icon| **Rectangle** button in Sketch toolbar:
18 The following property panel appears:
20 .. figure:: images/Rectangle_panel.png
25 Click in the view once to set the first corner, then move the mouse and click a second time to set the opposite corner.
26 If an existing object is clicked, a constraint for the point will be created automatically.
28 Start and end points coordinates are displayed in the property panel.
32 .. py:function:: Sketch_1.addRectangle(X1, Y1, X2, Y2)
34 :param real: X1 value.
35 :param real: Y1 value.
36 :param real: X2 value.
37 :param real: Y2 value.
38 :return: Result object.
43 Created rectangle appears in the view.
45 .. figure:: images/Rectangle_res.png
50 **See Also** a sample TUI Script of :ref:`tui_create_rectangle` operation.