Draft AutoGroup |
Menu location |
---|
Draft → Utilities → AutoGroup |
Workbenches |
Draft, Arch |
Default shortcut |
None |
Introduced in version |
- |
See also |
None |
Acest instrument permite setarea unui grup sau derivat ca Proiect VisGroup, Arch Site, Arch Building sau Arch Floor , ca grup activ automat. Când este setat un grup auto, toate obiectele noi create în Draft Workbench sau Arch Workbench vor fi plasate în acel grup.
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.
The layer menu of the Draft Tray
See also: Preferences Editor and Draft Preferences.
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
În script-urile python, folosirea Draft de auto-grupare se face pur și simplu cu comanda de mai jos:
# This code only works if the Draft Workbench is active!
import FreeCAD as App
import FreeCADGui as Gui
import Draft
doc = App.newDocument()
polygon1 = Draft.make_polygon(5, radius=1000)
polygon2 = Draft.make_polygon(3, radius=500)
polygon3 = Draft.make_polygon(6, radius=220)
layer = Draft.make_layer()
Gui.draftToolBar.setAutoGroup(layer.Name)
Draft.autogroup(polygon1)
Draft.autogroup(polygon2)
Draft.autogroup(polygon3)
doc.recompute()