Salome HOME
Cosmetics. Move XML files to the separate folder inside a corresponding project in VS.
[modules/shaper.git] / src / SketchPlugin / doc / tangentFeature.rst
index 0c461b554933a2efaa6e565c62a54ef17d70dac4..a7540de3bd95fc67b427fb9b40172c4518195455 100644 (file)
@@ -1,3 +1,4 @@
+.. |tangent.icon|    image:: images/Tangent.png
 
 Tangent constraint
 ==================
@@ -7,17 +8,11 @@ Tangent constraint fixes a circle (or an arc) and a line so that a line is tange
 To create a Tangent in the active Sketch:
 
 #. select in the Main Menu *Sketch - > Tangent* item  or
-#. click **Tangent** button in Sketch toolbar:
-
-.. image:: images/tangent.png
-   :align: center
-
-.. centered::
-   **Tangent**  button
+#. click |tangent.icon| **Tangent** button in Sketch toolbar:
 
 Property panel:
 
-.. image:: images/Tangent_panel.png
+.. figure:: images/Tangent_panel.png
    :align: center
 
 Input fields:
@@ -29,19 +24,22 @@ Note that one of two objects should be a line.
 
 After the objects are selected, a special sign will be added close to the tangency point in the view.
 
-**TUI Command**: *Sketch_1.setTangent(Line, CircleOrArc)*
+**TUI Command**:
 
-**Arguments**:  2 objects (the first is a line, the second one is a circle or an arc)
+.. py:function:: Sketch_1.setTangent(Line, CircleOrArc)
+
+    :param object: A line.
+    :param object: A circle or an arc.
+    :return: Result object.
 
 Result
 """"""
 
 Created Tangent constraint appears in the view.
 
-.. image:: images/Tangent_res.png
-          :align: center
+.. figure:: images/Tangent_res.png
+   :align: center
 
-.. centered::
    Created tangent constraint
 
 **See Also** a sample TUI Script of :ref:`tui_create_tangent` operation.