Selection API

The selection submodule is part of the FreeCADGui module. Example: import FreeCADGui sel = FreeCADGui.Selection.getSelection