+.. |distance.icon| image:: images/distance.png
Distance constraint
===================
To create a Distance constraint in the active Sketch:
#. select in the Main Menu *Sketch - > Distance* item or
-#. click **Distance** button in Sketch toolbar:
-
-.. image:: images/distance.png
- :align: center
-
-.. centered::
- **Distance** button
+#. click |distance.icon| **Distance** button in Sketch toolbar:
Property panel:
.. centered::
Distance input in the view
-**TUI Command**: *Sketch_1.setDistance(FirstObject, SecondObject, Value, KeepOrientation)*
+**TUI Command**:
+
+.. py:function:: Sketch_1.setDistance(FirstObject, SecondObject, Value, KeepOrientation)
-**Arguments**: 2 objects + distance value + keep orientation flag
+ :param object: First object.
+ :param object: Second object.
+ :param real: Value.
+ :param boolean: Keep orientation flag.
+ :return: Result object.
Result
""""""