Salome HOME
7a7d804bbea6b30ce97b1b4b9e3731b268721ceb
[modules/shaper.git] / src / SketchPlugin / doc / lineFeature.rst
1 .. _sketchLine:
2 .. |line.icon|    image:: images/Line.png
3
4 Line
5 ====
6
7 Line feature creates a line segment by two points in the current Sketch.
8
9 To add a new Line to the Sketch:
10
11 #. select in the Main Menu *Sketch - > Line* item  or
12 #. click |line.icon| **Line** button in Sketch toolbar:
13
14 The following property panel appears:
15
16 .. image:: images/Line_panel.png
17   :align: center
18
19 .. centered::
20    Line
21
22 Pick 2 points (start and end) in the view to create a Line. If an existing object is clicked, a constraint for the point will be created automatically.
23
24 Start and end points coordinates are displayed in the property panel.
25
26 **TUI Command**:
27
28 .. py:function:: Sketch_1.addLine(X1, Y1, X2, Y2)*
29
30     :param real: X1 value.
31     :param real: Y1 value.
32     :param real: X2 value.
33     :param real: Y2 value.
34     :return: Result object.
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 :ref:`tui_create_line` operation.