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:
13 There are 2 algorithms for creation of a middle constraint:
15 .. figure:: images/MiddlePoint.png
19 **By object and point** create a middle constraint by object (segment or arc) and point
21 .. figure:: images/MiddlePoint_obj.png
25 **By object** create a middle point on the object (segment or arc)
27 -------------------------------------------------------------------------------------------
30 """"""""""""""""""""""""""
33 .. figure:: images/Middlepoint_obj_point_panel.png
38 - **First object** is a point or a line selected in the view.
39 - **Second object** is a point or a line selected in the view.
41 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).
43 | After the objects are selected, the point is moved to the middle of the line.
44 | The middle points are marked with a special sign.
48 .. py:function:: Sketch_1.setMiddlePoint(Point, Line)
50 :param object: A point.
51 :param object: A line.
52 :return: Result object.
57 Created Middle point constraint appears in the view.
59 .. figure:: images/Middlepoint_obj_point_res.png
62 Created middle point constraint
65 """"""""""""""""""""""""""
68 .. figure:: images/Middlepoint_obj_panel.png
73 - **Object** is a line selected in the view.
75 | After the object are selected, will be created auxiliary point on the middle of the line.
76 | The middle points are marked with a special sign.
80 .. py:function:: SketchPoint_1 = Sketch_1.setMiddlePoint(Line)
82 :param object: A line.
83 :return: Created middle point.
88 Created Middle point constraint appears in the view.
90 .. figure:: images/Middlepoint_obj_res.png
93 Created middle point constraint
95 **See Also** a sample TUI Script of :ref:`tui_create_middle` operation.