1 .. |middlepoint.icon| image:: images/middlepoint.png
3 Middle point constraint
4 =======================
6 Middle point constraint forces a point to middle of a line.
8 To create a Middle point in the active Sketch:
10 #. select in the Main Menu *Sketch - > Middle point* item or
11 #. click |middlepoint.icon| **Middle point** button in Sketch toolbar:
15 .. image:: images/Middlepoint_panel.png
20 - **First object** is a point or a line selected in the view.
21 - **Second object** is a point or a line selected in the view.
23 Note that one of two objects should be a line and the other a point (i.e. a point, a line or an arc end point, a center of a circle or an arc).
25 | After the objects are selected, the point is moved to the middle of the line.
26 | The middle points are marked with a special sign.
30 .. py:function:: Sketch_1.setMiddlePoint(Point, Line)
32 :param object: A point.
33 :param object: A line.
34 :return: Result object.
39 Created Middle point constraint appears in the view.
41 .. image:: images/Middlepoint_res.png
45 Created middle point constraint
47 **See Also** a sample TUI Script of :ref:`tui_create_middle` operation.