X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2Fdoc%2FmiddleFeature.rst;h=01a536a9ccde346075cbdff2bb7b7edf06278775;hb=629889bb85c8e4d8446651e8b597f20c14714aa1;hp=075b57a460887ce777aedc1e3166096c9d0365a6;hpb=1c74a4ef1b175266becd65969077f12af764e7e2;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/doc/middleFeature.rst b/src/SketchPlugin/doc/middleFeature.rst index 075b57a46..01a536a9c 100644 --- a/src/SketchPlugin/doc/middleFeature.rst +++ b/src/SketchPlugin/doc/middleFeature.rst @@ -1,10 +1,47 @@ +.. |middlepoint.icon| image:: images/middlepoint.png -Middle constraint -================= +Middle point constraint +======================= +Middle point constraint forces a point to middle of a line. -.. image:: images/MiddlePoint.png - :align: center +To create a Middle point in the active Sketch: + +#. select in the Main Menu *Sketch - > Middle point* item or +#. click |middlepoint.icon| **Middle point** button in Sketch toolbar: + +Property panel: + +.. image:: images/Middlepoint_panel.png + :align: center + +Input fields: + +- **First object** is a point or a line selected in the view. +- **Second object** is a point or a line selected in the view. + +Note that one of two objects should be a line and the other a point (i.e. a point, a line or an arc end point, a center of a circle or an arc). + +| After the objects are selected, the point is moved to the middle of the line. +| The middle points are marked with a special sign. + +**TUI Command**: + +.. py:function:: Sketch_1.setMiddlePoint(Point, Line) + + :param object: A point. + :param object: A line. + :return: Result object. + +Result +"""""" + +Created Middle point constraint appears in the view. + +.. image:: images/Middlepoint_res.png + :align: center .. centered:: - Create a middle constraint + Created middle point constraint + +**See Also** a sample TUI Script of :ref:`tui_create_middle` operation.