Salome HOME
35207ee966ccf500420e1c1e9f8de25e5f01987c
[modules/shaper.git] / src / SketchPlugin / doc / lineFeature.rst
1 .. _sketchLine:
2
3 Line
4 ====
5
6 The feature Line creates a line segment by two points in the current Sketch.
7
8 To add new Line to the Sketch:
9
10 #. select in the Main Menu *Sketch - > Line* item  or
11 #. click **Line** button in Sketch toolbar:
12
13 .. image:: images/line.png
14    :align: center
15
16 .. centered::
17    **Line**  button
18
19 The following property panel appears.
20
21 .. image:: images/Line_panel.png
22   :align: center
23
24 .. centered::
25    Line
26
27 Pick 2 points (start and end) in the view to create a Line. In the case of click on an existing object constraint for
28 the point will be created automatically.
29
30 Start and end points coordinates are displayed in the property panel.
31
32 **TUI Command**:  *Sketch_1.addLine(X1, Y1, X2, Y2)*
33
34 **Arguments**:    4 values (coordinates of the start and end points).
35
36 Result
37 """"""
38
39 Created line appears in the view.
40
41 .. image:: images/Line_res.png
42            :align: center
43
44 .. centered::
45    Line created
46
47 **See Also** a sample TUI Script of a :ref:`tui_create_line` operation.