2 Horizontal distance constraint
3 ==============================
5 Horizontal Distance constraint fixes distance between two points along the horizontal axis.
7 The constraint can be defined between two points such as point object, line or arc end point, center of circle or arc.
9 To create Horizontal Distance constraint in the active Sketch:
11 #. select in the Main Menu *Sketch - > Horizontal Distance* item or
12 #. click **Horizontal Distance** button in Sketch toolbar:
14 .. image:: images/distance_h.png
18 **Horizontal Distance** button
22 .. image:: images/HorizontalDistance_panel.png
27 - **First point** is the first point selected in the view
28 - **Second point** is the second point selected in the view
29 - **Value** is a distance between the objects, could be modified to set the desirable value
30 - **Text location** is a position of the distance value label relating to extension line (in the view)
31 .. image:: images/location_left.png
33 **Left** inserts text at the left of the distance extension line.
35 .. image:: images/location_automatic.png
37 **Automatic** inserts text at the middle of the distance extension line if it has enough length, otherwise - to the left.
39 .. image:: images/location_right.png
41 **Right** inserts text to the right of the distance extension line.
43 When both objects are selected horizontal distance value is displayed in the property panel and in the view.
45 When creating the constraint, after selection of two objects at the first time:
47 - drag the horizontal distance presentation in the view to the desired position (by move mouse and click once)
48 - set desirable horizontal distance value in the input field in the view and press **Enter** or just press **Enter** to keep the current distance
50 .. image:: images/HorizontalDistance_field_view.png
54 Horizontal Distance input in the view
56 **TUI Command**: *Sketch_1.setHorizontalDistance(FirstObject, SecondObject, Value)*
58 **Arguments**: 2 objects + horizontal distance value
63 Created Horizontal Distance appears in the view.
65 .. image:: images/HorizontalDistance_res.png
69 Horizontal Distance created
71 **See Also** a sample TUI Script of a :ref:`tui_create_hdistance` operation.