parameters: (self)
docstring: Activate the selected layer, it becomes the Autogroup.
docstring_summary: Activate the selected layer, it becomes the Autogroup.
docstring_tokens: Activate the selected layer it becomes the Autogroup .
function: def activate(self):
          """Activate the selected layer, it becomes the Autogroup."""
          if hasattr(self, "Object"):
              Gui.Selection.clearSelection()
              Gui.Selection.addSelection(self.Object)
              Gui.runCommand("Draft_AutoGroup")
function_tokens: def activate ( self ) : if hasattr ( self , "Object" ) : Gui . Selection . clearSelection ( ) Gui . Selection . addSelection ( self . Object ) Gui . runCommand ( "Draft_AutoGroup" )