+.. |middlepoint.icon| image:: images/MiddlePoint.png
Middle point constraint
=======================
To create a Middle point in the active Sketch:
#. select in the Main Menu *Sketch - > Middle point* item or
-#. click **Middle point** button in Sketch toolbar:
-
-.. image:: images/middlepoint.png
- :align: center
-
-.. centered::
- **Middle point** button
+#. click |middlepoint.icon| **Middle point** button in Sketch toolbar:
Property panel:
-.. image:: images/Middlepoint_panel.png
+.. figure:: images/Middlepoint_panel.png
:align: center
Input fields:
| After the objects are selected, the point is moved to the middle of the line.
| The middle points are marked with a special sign.
-**TUI Command**: *Sketch_1.setMiddlePoint(Point, Line)*
+**TUI Command**:
-**Arguments**: 2 objects (the first is a point, the second one is a line)
+.. py:function:: Sketch_1.setMiddlePoint(Point, Line)
+
+ :param object: A point.
+ :param object: A line.
+ :return: Result object.
Result
""""""
Created Middle point constraint appears in the view.
-.. image:: images/Middlepoint_res.png
- :align: center
+.. figure:: images/Middlepoint_res.png
+ :align: center
-.. centered::
Created middle point constraint
**See Also** a sample TUI Script of :ref:`tui_create_middle` operation.