Draft Groupement automatique
Draft AutoGroup |
Emplacement du menu |
---|
Draft → Utilitaires → AutoGroup |
Ateliers |
Draft, Arch |
Raccourci par défaut |
Aucun |
Introduit dans la version |
- |
Voir aussi |
Aucun |
Description
Cet outil permet de définir un groupe, ou dérivé comme Draft VisGroup, Arch Site, Arch Building ou Arch Floor , en tant que groupe automatique actif. Lorsqu'un groupe automatique est défini, tous les nouveaux objets créés dans Draft Workbench or Arch Workbench seront placés dans ce groupe.
Auto-grouping works with elements created with the Draft and Arch Workbenches.
File:Draft AutoGroup example.png
Draft Tray which sets the active auto-group by clicking on the folder icon and choosing a group
Comment l'utiliser
- Lorsque AutoGroup est défini, le bouton devient vert, cela signifie que le regroupement automatique est activé. Vous pouvez cliquer dessus pour changer le groupe ou le désactiver.
- Lorsque l'auto-groupe est actif, tout nouvel objet Draft ou Arch créé sera placé dans ce groupe (sauf si le mode Draft est activé, auquel cas il ira dans le groupe de construction).
- Cela ne fonctionne que lors de la création d'objets Draft ou Arch à partir des boutons de l'interface graphique. Pas quand on les utilise à partir de python. C'est ainsi qu'il est encore possible pour les scripts python de faire le regroupement qu'ils veulent, indépendamment de ce que dit l'autogroupage.
Script
See also: Draft API and FreeCAD Scripting Basics.
Dans les scripts python, l'utilisation de Draft autogroup se fait simplement en utilisant la commande ci-dessous:
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
- Drafting: Line, Polyline, Fillet, Arc, Arc by 3 points, Circle, Ellipse, Rectangle, Polygon, B-spline, Cubic Bézier curve, Bézier curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation styles, Annotation scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar array, Circular array, Path array, Path link array, Point array, Point link array, Edit, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select plane, Set style, Toggle construction mode, AutoGroup
- Snapping: Snap lock, Snap endpoint, Snap midpoint, Snap center, Snap angle, Snap intersection, Snap perpendicular, Snap extension, Snap parallel, Snap special, Snap near, Snap ortho, Snap grid, Snap working plane, Snap dimensions, Toggle grid
- Miscellaneous: Apply current style, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
User documentation
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub