To create a Wire in the Main Menu select New Entity - > Build - > Wire
You can create a Wire from several connected edges and wires by selecting them in the object browser or ion the viewer holding Shift button.
The Result will be a GEOM_Object (WIRE).
TUI Command : geompy.MakeWire(ListOfShape).
Arguments: Name + List of connected wires or edges..
Dialog Box:
Example:
Our TUI Scripts provide you with useful examples of creation of Advanced Geometric Objects.