Draft AutoGroup/es

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 page will primarily focus on layers.



Usage

 * 1) To use this command in FreeCAD version 0.19 at least one layer must exist.
 * 2) Optionally select the layer you want to 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) * If you have selected a layer: select the option from the Tree view context menu.
 * 6) If you have not yet selected a layer the layer menu opens. Do one of the following:
 * 7) * Select to work without an active layer.
 * 8) * Select an existing layer to make active.
 * 9) * Select to create a new layer. Selecting this option will not change the active layer.
 * 10) If the active layer was changed 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.