Salome HOME
Task #3231: Sketcher Offset of a curve
[modules/shaper.git] / src / SketchPlugin / doc / parallelFeature.rst
1 .. |parallel.icon|    image:: images/parallel.png
2
3 Parallel constraint
4 ===================
5
6 Parallel constraint fixes two lines as parallel to one another.
7
8 To create a Parallel constraint in the active Sketch:
9
10 #. select in the Main Menu *Sketch - > Parallel* item  or
11 #. click |parallel.icon| **Parallel** button in Sketch toolbar:
12
13 Property panel:
14
15 .. image:: images/Parallel_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 **||** sign will be added to each of them in the view.
24
25 **TUI Command**:
26
27 .. py:function:: Sketch_1.setParallel(Line1, Line2)
28
29     :param object: Line 1.
30     :param object: Line 2.
31     :return: Result object.
32
33 Result
34 """"""
35
36 Created Parallel constraint appears in the view.
37
38 .. image:: images/Parallel_res.png
39            :align: center
40
41 .. centered::
42    Created parallel constraint
43
44 **See Also** a sample TUI Script of :ref:`tui_create_parallel` operation.