Salome HOME
Merge remote-tracking branch 'remotes/origin/EDF_2020_Lot2'
[modules/shaper.git] / src / SketchPlugin / doc / collinearFeature.rst
index 91be05197f9f614de0c55249bc73f667efa4d8a3..ffa767acd860438f3642cf63b4efa2dc13bfb9c7 100644 (file)
@@ -1,3 +1,4 @@
+.. |collinear.icon|    image:: images/collinear.png
 
 Collinear constraint
 ====================
@@ -7,17 +8,11 @@ Collinear constraint forces lines to be collinear.
 To create a Collinear constraint in the active Sketch:
 
 #. select in the Main Menu *Sketch - > Collinear* item  or
-#. click **Collinear** button in Sketch toolbar:
-
-.. image:: images/collinear.png
-   :align: center
-
-.. centered::
-   **Collinear**  button
+#. click |collinear.icon| **Collinear** button in Sketch toolbar:
 
 Property panel:
 
-.. image:: images/Collinear_panel.png
+.. figure:: images/Collinear_panel.png
    :align: center
 
 Input fields:
@@ -28,19 +23,22 @@ Input fields:
 | After the lines are selected, they are translated to become collinear.
 | The lines are marked with a special sign.
 
-**TUI Command**: *Sketch_1.setCollinear(Line1, Line2)*
+**TUI Command**:
 
-**Arguments**:  2 line objects
+.. py:function:: Sketch_1.setCollinear(Line1, Line2)
+
+    :param object: First object.
+    :param object: Second object.
+    :return: Result object.
 
 Result
 """"""
 
 Created Collinear constraint appears in the view.
 
-.. image:: images/Collinear_res.png
-          :align: center
+.. figure:: images/Collinear_res.png
+   :align: center
 
-.. centered::
    Created collinear constraint
 
 **See Also** a sample TUI Script of :ref:`tui_create_collinear` operation.