X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2Fdoc%2FlineFeature.rst;h=a45094e7669cc4e34967b4334e16d0a26a381fd0;hb=0fcd69345a4dfdb31e252574c68bc70e123999e8;hp=a182759764b7180bad66e7af0c072a40de0fddb1;hpb=c5ec43297b55923e1cf2ee39978bf42d733ee465;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/doc/lineFeature.rst b/src/SketchPlugin/doc/lineFeature.rst index a18275976..a45094e76 100644 --- a/src/SketchPlugin/doc/lineFeature.rst +++ b/src/SketchPlugin/doc/lineFeature.rst @@ -1,10 +1,47 @@ +.. _sketchLine: +.. |line.icon| image:: images/line.png Line ==== +Line feature creates a line segment by two points in the current Sketch. -.. image:: images/Line.png +To add a new Line to the Sketch: + +#. select in the Main Menu *Sketch - > Line* item or +#. click |line.icon| **Line** button in Sketch toolbar: + +The following property panel appears: + +.. image:: images/Line_panel.png :align: center .. centered:: - Create a line + Line + +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. + +Start and end points coordinates are displayed in the property panel. + +**TUI Command**: + +.. py:function:: Sketch_1.addLine(X1, Y1, X2, Y2)* + + :param real: X1 value. + :param real: Y1 value. + :param real: X2 value. + :param real: Y2 value. + :return: Result object. + +Result +"""""" + +Created line appears in the view. + +.. image:: images/Line_res.png + :align: center + +.. centered:: + Line created + +**See Also** a sample TUI Script of :ref:`tui_create_line` operation.