Salome HOME
Ameliorate help pages
[modules/shaper.git] / src / SketchPlugin / doc / middleFeature.rst
1 .. |middlepoint.icon|    image:: images/middlepoint.png
2
3 Middle point constraint
4 =======================
5
6 Middle point constraint forces a point to middle of a line.
7
8 To create a Middle point in the active Sketch:
9
10 #. select in the Main Menu *Sketch - > Middle point* item  or
11 #. click |middlepoint.icon| **Middle point** button in Sketch toolbar:
12
13 Property panel:
14
15 .. image:: images/Middlepoint_panel.png
16    :align: center
17
18 Input fields:
19
20 - **First object** is a point or a line selected in the view.
21 - **Second object** is a point or a line selected in the view.
22
23 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).
24
25 | After the objects are selected, the point is moved to the middle of the line.
26 | The middle points are marked with a special sign.
27
28 **TUI Command**:
29
30 .. py:function:: Sketch_1.setMiddlePoint(Point, Line)
31
32     :param object: A point.
33     :param object: A line.
34     :return: Result object.
35
36 Result
37 """"""
38
39 Created Middle point constraint appears in the view.
40
41 .. image:: images/Middlepoint_res.png
42            :align: center
43
44 .. centered::
45    Created middle point constraint
46
47 **See Also** a sample TUI Script of :ref:`tui_create_middle` operation.