.. centered::
**Edge** button
-
-The following property panel will be opened:
+
+The options to create edges:
+
+.. image:: images/edge_by_segments_32x32.png
+ :align: left
+**By edges** creates edges using already existing edges in other shapes.
+
+.. image:: images/edge_by_points_32x32.png
+ :align: left
+**By points** creates segment between two points.
+
+
+By edges
+--------
.. image:: images/Edge.png
:align: center
.. centered::
- Create edges
+ Create by edges
Select one or several edges in the viewer.
Result of the operation.
**See Also** a sample TUI Script of :ref:`tui_create_edge` operation.
+
+
+By two points
+-------------
+
+.. image:: images/EdgeByTwoPoints.png
+ :align: center
+
+.. centered::
+ Create by points
+
+Select two points in the viewer.
+
+**Apply** button creates a segment.
+
+**Cancel** button cancels the operation.
+
+**TUI Command**: *model.addEdge(Part_doc, Point_1, Point_2)*
+
+**Arguments**: Part document + two points/vertices.
+
+Result
+""""""
+
+The result of the operation will be a segment bounded by selected points:
+
+.. image:: images/CreateEdgeByPoints.png
+ :align: center
+
+.. centered::
+ Result of the operation.
+
+**See Also** a sample TUI Script of :ref:`tui_create_segment` operation.
--- /dev/null
+from salome.shaper import model
+
+model.begin()
+partSet = model.moduleDocument()
+Part_1 = model.addPart(partSet)
+Part_1_doc = Part_1.document()
+Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
+Edge_1 = model.addEdge(Part_1_doc, model.selection("VERTEX", "[Box_1_1/Back][Box_1_1/Right][Box_1_1/Top]"),
+ model.selection("VERTEX", "[Box_1_1/Front][Box_1_1/Right][Box_1_1/Bottom]"))
+model.do()
+model.end()