Salome HOME
[bos #37570] [CEA] SHAPER hdf tests are failing. Fix Sphere feature attributes order.
[modules/shaper.git] / src / SketchPlugin / doc / translationFeature.rst
index 6221fd8236aeeb6bf06bbe9c661d2407cef19cd1..596057b718b73664d95fc14f1c1e7882630da529 100644 (file)
@@ -1,61 +1,59 @@
+.. |translate.icon|    image:: images/translate.png
 
 Linear copy
 ===========
 
-Linear copy operation creates one or multiple copies of the skecth entities along a vector defined by two points.
+Linear copy operation creates one or multiple copies of the sketch entities along a vector defined by two points.
 
-To create Linear copy in the active Sketch:
+To create Linear copy in the active Sketch:
 
 #. select in the Main Menu *Sketch - > Linear copy* item  or
-#. click **Linear copy** button in Sketch toolbar:
-
-.. image:: images/translate.png
-   :align: center
-
-.. centered::
-   **Linear copy**  button
+#. click |translate.icon| **Linear copy** button in Sketch toolbar:
 
 Property panel:
 
-.. image:: images/Linear_panel.png
-  :align: center
+.. figure:: images/Linear_panel.png
+   :align: center
 
-.. centered::
    Linear copy
 
+
+.. |single_value| image:: images/translate_32x32.png
+.. |full_value| image:: images/translate_full_32x32.png
+
 Input fields:
 
 - **Segments** is the list of segments (lines, circles, arcs) selected in the view.
 - **Single value/Full value** option:
-
-  .. image:: images/translate_32x32.png
-     :align: left
-  **Single value**: step of translation is equal to the distance between the start and the end point.
-
-  .. image:: images/translate_full_32x32.png
-     :align: left
-  **Full value**: distance from the originals to the farthest copies is equal to the distance between the start and the end point.
+   | |single_value| **Single value**: step of translation is equal to the distance between the start and the end point.
+   | |full_value| **Full value**: distance from the originals to the farthest copies is equal to the distance between the start and the end point.
 - **Start point** is the initial point of translation vector.
 - **End point** is the terminal point of translation vector.
 - **Total number of objects** is the total number of objects including the original one.
 
 
-**TUI Command**: *Sketch_1.addTranslation(Objects, Point1, Point2, NumberOfObjects, FullValue)*
+**TUI Command**:
 
-**Arguments**:   list of objects + start and end points + number of objects + full value flag
+.. py:function:: Sketch_1.addTranslation(Objects, Point1, Point2, NumberOfObjects, FullValue)
+
+    :param list: A list of objects.
+    :param object: Start point.
+    :param object: End point.
+    :param integer: Number of objects.
+    :param boolean: Full value flag.
+    :return: Result object.
 
 Result
 """"""
 
 Created Linear copy appears in the view.
 
-| The original and a linear copy objects are marked with the special sign.
+| The original and a linear copy objects are marked with a special sign.
 | Copy objects are drawn with a thinner line.
 
-.. image:: images/Linear_res.png
-          :align: center
+.. figure:: images/Linear_res.png
+   :align: center
 
-.. centered::
    Linear copy created
 
-**See Also** a sample TUI Script of :ref:`tui_create_translation` operation.
+**See Also** a sample TUI Script of :ref:`tui_create_translation` operation.