Draft AutoGroup: Difference between revisions

From FreeCAD Documentation
(More concise redaction. Added links.)
(More information for the use.)
Line 21: Line 21:
# Select menu Draft → Utilities → {{KEY|[[Image:Draft AutoGroup.png|16px]] [[Draft AutoGroup|AutoGroup]]}}, or click the autogroup button on the toolbar, or right-click a Group object in the tree view → Utilities → {{KEY|[[Image:Draft AutoGroup.png|16px]] [[Draft AutoGroup|AutoGroup]]}}
# Select menu Draft → Utilities → {{KEY|[[Image:Draft AutoGroup.png|16px]] [[Draft AutoGroup|AutoGroup]]}}, or click the autogroup button on the toolbar, or right-click a Group object in the tree view → Utilities → {{KEY|[[Image:Draft AutoGroup.png|16px]] [[Draft AutoGroup|AutoGroup]]}}
# Choose the desired group in the drop-down box
# Choose the desired group in the drop-down box

# Select a {{Button|[[Image:Group.svg|16px]] [[Std Group]]}} in the tree view.
# Press the {{Button|[[Image:Draft AutoGroup_off.svg|16px]] None}} button on the [[Draft Tray]]. If no group is selected, a drop-down menu will display possible groups to chose for auto-grouping, or "None".

At least one {{Button|[[Image:Group.svg|16px]] [[Std Group]]}} should exist before calling this tool.


== Options == <!--T:4-->
== Options == <!--T:4-->

Revision as of 20:09, 20 November 2018

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 menu Draft → Utilities → AutoGroup, or click the autogroup button on the toolbar, or right-click a Group object in the tree view → Utilities → AutoGroup
  2. Choose the desired group in the drop-down box
  1. Select a Std Group in the tree view.
  2. Press the None button on the Draft Tray. If no group is selected, a drop-down menu will display possible groups to chose for auto-grouping, or "None".

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

Options

  • When AutoGroup is set, the button turns green, it means autogrouping is activated. You can click on it to change the group or unset.
  • When autogrouping is active, any new Draft or Arch object created will be placed in that group (except when Draft construction mode is on, in which case it goes to the construction group).
  • This only works when creating Draft or Arch objects from the GUI buttons. Not when using them from python. This is so it is still possible for python scripts to do the grouping they want, regardless of what autogrouping says.

Scripting

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

import Draft
Draft.autogroup(object)