Draft AutoGroup

From FreeCAD Documentation
Revision as of 21:33, 20 November 2018 by Vocx (talk | contribs) (More concise information, and links)

Draft AutoGroup

Menu location
Draft → Utilities → AutoGroup
Workbenches
Draft, Arch
Default shortcut
None
Introduced in version
-
See also
Std Group

Description

The AutoGroup tool sets a selected Std Group, or a related element like a Draft VisGroup, Arch Site, Arch Building or Arch BuildingPart, as the active auto-group. When an auto-group is set, new objects will be automatically moved to the indicated group upon being created.

Auto-grouping works with elements created with the Draft and Arch Workbenches.

File:Draft AutoGroup example.png

How to use

  1. Select a Std Group in the tree view.
  2. Press the None button on the Draft Tray, or go to the menu Draft → Utilities → AutoGroup. If no group is selected, a drop-down menu will display possible groups, or "None".
  3. The button will change with the name of the active auto-group, for example, Group.

At least one Std Group should exist before calling this tool.

Notes:

  • To change the auto-group, select another group in the tree view and click Group. If no group is selected you have the option of choosing "None" to turn off auto-grouping.
  • When auto-grouping is active, new Draft and Arch objects will be placed in that group except when Construction mode is on, in which case the new geometry will be placed in the construction group.
  • Auto-grouping only works for objects created from the graphical user interface; objects created programmatically by macros or the Python console aren't automatically placed in groups. The user always has the possibility of programmatically doing the grouping, regardless of the auto-grouping settings.

Scripting

In python scripts, using Draft autogrouping is simply done with the command below:

import Draft
Draft.autogroup(object)