1 .. |angle_constr.icon| image:: images/angle_constr.png
6 Angle constraint fixes the angle between two lines.
8 | Angle between two lines is seen as an angle between two vectors.
9 | Each line is treated as a vector with start and end points equal to those of the line.
11 To create an Angle constraint in the active Sketch:
13 #. select in the Main Menu *Sketch - > Angle* item or
14 #. click |angle_constr.icon| **Angle** button in Sketch toolbar:
18 .. image:: images/Angle_panel.png
23 - **Line 1** is the first line selected in the view;
24 - **Line 2** is the second line selected in the view;
25 - **Value** is an angle between the lines, can be modified to set the desirable value;
26 - **Angle type** is a type of angle measurement:
27 .. image:: images/angle_direct.png
29 **Direct** is the least angle between two lines;
31 .. image:: images/angle_complementary.png
33 **Complementary** is 180°- Direct angle between two lines;
35 .. image:: images/angle_backward.png
37 **Backward** is 360°- Direct angle between two lines.
38 - **Text location** is the position of the angle value label relatively to the angle line (in the view):
39 .. image:: images/location_left.png
41 **Left** inserts text to the left of the angle line;
43 .. image:: images/location_automatic.png
45 **Automatic** inserts text it the middle of the angle line if it has enough length, otherwise - to the left;
47 .. image:: images/location_right.png
49 **Right** inserts text to the right of the angle line.
51 When both lines are selected, the angle value is displayed in the property panel and in the view.
53 When creating the constraint, after selection of two lines at the first time:
55 - drag the angle presentation in the view to the desired position and click once;
56 - set desirable angle value in the input field in the view and press **Enter** or just press **Enter** to keep the current angle
58 .. image:: images/Angle_field_view.png
62 Angle input in the view
66 .. py:function:: Sketch_1.setAngle(Line1, Line2, Value)
67 .. py:function:: Sketch_1.setAngleComplementary(Line1, Line2, Value)
68 .. py:function:: Sketch_1.setAngleBackward(Line1, Line2, Value)
70 :param object: Line 1.
71 :param object: Line 2.
73 :return: Result object.
78 Created Angle appears in the view.
80 .. image:: images/Angle_res.png
86 **See Also** a sample TUI Script of :ref:`tui_create_angle` operation.