Salome HOME
Cosmetics. Move XML files to the separate folder inside a corresponding project in VS.
[modules/shaper.git] / src / SketchPlugin / doc / middleFeature.rst
index a18747179c6c1bbe90595fa608d886dff681df6e..f39a348793e2a52203d9b6d759a399aab37b534a 100644 (file)
@@ -1,3 +1,4 @@
+.. |middlepoint.icon|    image:: images/MiddlePoint.png
 
 Middle point constraint
 =======================
@@ -7,17 +8,11 @@ Middle point constraint forces a point to middle of a line.
 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:
@@ -30,19 +25,22 @@ Note that one of two objects should be a line and the other a point (i.e. a poin
 | 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.