Draft AutoGroup/es
Jump to navigation
Jump to search
Outdated translations are marked like this.
Ubicación en el Menú |
---|
Draft → Utilities → AutoGroup |
Entornos de trabajo |
Draft, Arch |
Atajo de teclado por defecto |
Ninguno |
Introducido en versión |
- |
Ver también |
Contents |
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.
Draft Tray which sets the active auto-group by clicking on the folder icon and choosing a group
Usage
- Select a
Std Group,
Construction group, or
Draft VisGroup in the tree view.
- Press the
None button, or go to the menu Draft → Utilities →
AutoGroup. If no group is selected, a drop-down menu will display eligible groups to use, or "None".
- The button will change with the name of the active auto-group, for example,
Group.
Notes:
- The
AutoGroup button is present in the Draft Tray toolbar, which only appears in the Draft and Arch Workbenches.
- At least one of
Std Group,
Construction group, or
Draft VisGroup must exist before using this tool.
- 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
See also: Draft API and FreeCAD Scripting Basics.
Adding objects to the active auto-group can be done in macros and from the Python console by using the following function:
autogroup(obj)
- Puts the
obj
element in the current auto-group. - If auto-grouping is disabled (the group is
None
), or if Construction mode is active, or ifobj
is already in the auto-group, the function doesn't do anything. - The function will fail if
obj
is already in another group that is different from the auto-group. - The function only does something if the graphical interface is active, as the auto-group can only be chosen from the graphical interface.
Example:
import FreeCAD, Draft
Polygon1 = Draft.makePolygon(3, 500)
Polygon2 = Draft.makePolygon(3, 1000)
Polygon3 = Draft.makePolygon(5, 1500)
FreeCAD.ActiveDocument.addObject("App::DocumentObjectGroup", "Group")
# Use the graphical interface to set "Group" for auto-grouping
Draft.autogroup(Polygon1)
Draft.autogroup(Polygon2)
Draft.autogroup(Polygon3)
Draft
- Basics: Coordinates, Constraining, Snapping (Near, Extension, Parallel, Grid, Endpoint, Midpoint, Perpendicular, Angle, Center, Ortho, Intersection, Special, Dimensions, Working plane)
- Drawing: Line, Wire, Circle, Arc, Ellipse, Polygon, Rectangle, Text, Dimension, BSpline, Point, ShapeString, Facebinder, Bezier Curve, Label
- Modifying: Move, Rotate, Offset, Trimex, Upgrade, Downgrade, Scale, Edit, Wire to BSpline, Add point, Delete point, Shape 2D View, Draft to Sketch, Array, Path Array, Point Array, Clone, Drawing, Mirror, Stretch
- Utilities: Set working plane, Finish line, Close line, Undo line, Toggle construction mode, Toggle continue mode, Apply style, Toggle display mode, Add to group, Select group contents, Toggle snap, Toggle grid, Show snap bar, Heal, Flip Dimension, VisGroup, Slope, AutoGroup, Set Working Plane Proxy, Add to Construction group
- Additional: Preferences, Import-Export Preferences (DXF/DWG, SVG, OCA, DAT); Draft API
User documentation

- Installation: Windows, Linux, Mac; Getting started
- Basics: About FreeCAD, Workbenches, Preferences, Document structure, Interface Customization, Properties, Mouse Model; Tutorials
- Workbenches: Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Plot, Points, Raytracing, Reverse Engineering, Robot, Ship, Sketcher, Spreadsheet, Start, Surface workbench, TechDraw, Test Framework, Web
- Scripting: Introduction to Python, FreeCAD scripting tutorial, FreeCAD Scripting Basics, How to install macros, Gui Command, Units Modules: Builtin modules, Workbench creation, Installing more workbenches Meshes: Mesh Scripting, Mesh Module Parts: The Part Module, Topological data scripting, PythonOCC, Mesh to Part Coin scenegraph: The Coin/Inventor scenegraph, Pivy Qt interface: PySide, Using the FreeCAD GUI, Dialog creation Parametric objects: Scripted objects Other: Code snippets, Line drawing function, Embedding FreeCAD, FreeCAD vector math library, Power users hub, Python, Macros, FreeCAD Scripting Basics, Topological data scripting