1 .. |distance_v.icon| image:: images/distance_v.png
3 Vertical distance constraint
4 ============================
6 Vertical Distance constraint fixes the distance between two points along the vertical axis.
8 The constraint can be defined between two points such as point object, line or arc end point, center of circle or arc.
10 To create a Vertical Distance constraint in the active Sketch:
12 #. select in the Main Menu *Sketch - > Vertical Distance* item or
13 #. click |distance_v.icon| **Vertical Distance** button in Sketch toolbar:
17 .. image:: images/VerticalDistance_panel.png
22 - **First point** is the first point selected in the view;
23 - **Second point** is the second point selected in the view:
24 - **Value** is a distance between the objects, can be modified to set the desirable value;
25 - **Text location** is a position of the distance value label relating to extension line (in the view):
26 .. image:: images/location_left.png
28 **Left** inserts text to the left of the distance extension line:
30 .. image:: images/location_automatic.png
32 **Automatic** inserts text in the middle of the distance extension line if it has enough length, otherwise - to the left
34 .. image:: images/location_right.png
36 **Right** inserts text to the right of the distance extension line.
38 When both objects are selected, the vertical distance value is displayed in the property panel and in the view.
40 When creating the constraint, after selection of two objects for the first time:
42 - drag the Vertical distance presentation in the view to the desired position and click once;
43 - set desirable vertical distance value in the input field in the view and press **Enter** or just press **Enter** to keep the current distance.
45 .. image:: images/VerticalDistance_field_view.png
49 Vertical Distance input in the view
53 .. py:function:: Sketch_1.setVerticalDistance(FirstObject, SecondObject, Value)
55 :param object: First object.
56 :param object: Second object.
58 :return: Result object.
63 Created Vertical Distance appears in the view.
65 .. image:: images/VerticalDistance_res.png
69 Vertical Distance created
71 **See Also** a sample TUI Script of :ref:`tui_create_vdistance` operation.