Draft AutoGroup

Description
The Draft AutoGroup command changes the active Draft Layer or, optionally, the active Std Group or group-like Arch object. New Draft and Arch objects are automatically placed in this active layer or group.

This command was originally intended for groups, hence its name, but was redesigned in FreeCAD version 0.19 when a layer system was introduced. Because handling layers is now the default for the command the rest of this text will primarily focus on layers.



Usage

 * 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 selected layer becomes the active layer and 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 autogroup, or is  if no autogroup is active. To change the active autogroup use the method of the  object. To put objects in the active autogroup use the method of the Draft module.