Salome HOME
Merge remote-tracking branch 'remotes/origin/EDF_2020_Lot2'
[modules/shaper.git] / src / SketchPlugin / doc / collinearFeature.rst
1 .. |collinear.icon|    image:: images/collinear.png
2
3 Collinear constraint
4 ====================
5
6 Collinear constraint forces lines to be collinear.
7
8 To create a Collinear constraint in the active Sketch:
9
10 #. select in the Main Menu *Sketch - > Collinear* item  or
11 #. click |collinear.icon| **Collinear** button in Sketch toolbar:
12
13 Property panel:
14
15 .. figure:: images/Collinear_panel.png
16    :align: center
17
18 Input fields:
19
20 - **First line** is the first line selected in the view.
21 - **Second line** is the second line selected in the view.
22
23 | After the lines are selected, they are translated to become collinear.
24 | The lines are marked with a special sign.
25
26 **TUI Command**:
27
28 .. py:function:: Sketch_1.setCollinear(Line1, Line2)
29
30     :param object: First object.
31     :param object: Second object.
32     :return: Result object.
33
34 Result
35 """"""
36
37 Created Collinear constraint appears in the view.
38
39 .. figure:: images/Collinear_res.png
40    :align: center
41
42    Created collinear constraint
43
44 **See Also** a sample TUI Script of :ref:`tui_create_collinear` operation.