1 .. _sketchPerpendicular:
2 .. |Perpendicular.icon| image:: images/Perpendicular.png
4 Perpendicular constraint
5 ========================
7 Perpendicular constraint fixes two lines at 90 degrees to one another.
8 For a line and a circle/arc the perpendicular constraint fixes the center of circle/arc to be on a line.
10 To create a Perpendicular constraint in the active Sketch:
12 #. select in the Main Menu *Sketch - > Perpendicular* item or
13 #. click |Perpendicular.icon| **Perpendicular** button in Sketch toolbar:
17 .. figure:: images/Perpendicular_panel.png
22 - **First object** is the first line, circle or arc selected in the view.
23 - **Second object** is the second line, circle or arc selected in the view.
25 After the objects are selected, a special sign will be added to each of them in the view.
27 If one of selected objects is circular, then another has to be a straight line.
31 .. py:function:: Sketch_1.setPerpendicular(Line1, Line2)
33 :param object: Line 1.
34 :param object: Line 2.
35 :return: Result object.
40 Created Perpendicular constraint appears in the view.
42 .. figure:: images/Perpendicular_res.png
45 Created perpendicular constraint
47 **See Also** a sample TUI Script of :ref:`tui_create_perpendicular` operation.