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