parameters: (objects=None)
docstring: makeCompoundFromSelected([objects]): Creates a new compound object from the given
      subobjects (faces, edges) or from the selection if objects is None
docstring_summary: makeCompoundFromSelected([objects]): Creates a new compound object from the given
      subobjects (faces, edges) or from the selection if objects is None
docstring_tokens: makeCompoundFromSelected ( [ objects ] ) : Creates a new compound object from the given subobjects ( faces edges ) or from the selection if objects is None
function: def makeCompoundFromSelected(objects=None):
      """makeCompoundFromSelected([objects]): Creates a new compound object from the given
      subobjects (faces, edges) or from the selection if objects is None"""
      import FreeCADGui,Part
      so = []
      if not objects:
          objects = FreeCADGui.Selection.getSelectionEx()
      if not isinstance(objects,list):
          objects = [objects]
      for o in objects:
          so.extend(o.SubObjects)
      if so:
          c = Part.makeCompound(so)
          Part.show(c)
function_tokens: def makeCompoundFromSelected ( objects = None ) : import FreeCADGui , Part so = [ ] if not objects : objects = FreeCADGui . Selection . getSelectionEx ( ) if not isinstance ( objects , list ) : objects = [ objects ] for o in objects : so . extend ( o . SubObjects ) if so : c = Part . makeCompound ( so ) Part . show ( c )