Draft AutoGroup

Description
The Draft AutoGroup command automatically places new objects in the active Draft Layer or, optionally, in the active Std Group or group-like Arch object. This command was originally intended for groups, hence its name, but was redesigned in FreeCAD version 0.19 when a layer system was introduced.



Usage
''Because handling layers is now the default for the command this paragraphs only refers to "layers". But the explanation is also valid if the group option is enabled. Just read "layer or group" instead of "layer".''


 * 1) To use this command at least one Draft Layer must exist.
 * 2) Optionally select the layer you want make active in the Tree view.
 * 3) There are several ways to invoke the command:
 * 4) * Press the button in the Draft Tray. This button can look different. If there is an active layer it will show the name of the layer and a layer icon with the  and  of the layer.
 * 5) * Select the option from the menu.
 * 6) If you have not yet selected a layer: select a layer from the layer menu that opens.
 * 7) The button in the Draft Tray is updated.

Preferences
See also: Preferences Editor and Draft Preferences.


 * This command can optionally also handle groups:.

Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.

If the Draft Workbench is active the FreeCADGui application object has a property. This object has an  property, which contains the name of the active auto-group, or is  if no auto-group is active. To change the active auto-group use the method of the  object. To put objects in the active auto-group use the method of the Draft module.