To create a Compound in the Main Menu select New Entity - > Build - > Compound.
You can create a compound from a list of shells.
The Result will be a GEOM_Object (COMPOUND).
TUI Command: geompy.MakeCompound(ListOfShape)
Arguments: Name + List of shapes.
Example:
Our TUI Scripts provide you with useful examples of creation of Advanced Geometric Objects.