Draft: AutoGroup
|
|
| Menu location |
|---|
| Draft → Utilities → AutoGroup |
| Workbenches |
| Draft, Arch |
| Default shortcut |
| None |
| Introduced in version |
| - |
| See also |
| None |
Description
Descriere
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 primarily focuses on layers.
The layer menu of the Draft Tray (image updated for version 1.1)
Usage
Cum se folosește
Notes
- Când setarea AutoGroup este setată, butonul devine verde, înseamnă că este activată gruparea automată. Puteți să faceți clic pe acesta pentru a schimba grupul sau a dezactiva.
- Când gruparea automată este activă, orice nou obiect Draft sau Arch creat va fi plasat în acel grup (cu excepția cazului în care Modul de construcție a proiectului este activat, caz în care acesta merge la grupul de construcție).
- Aceasta funcționează numai atunci când creați obiecte de tip Proiect sau Arch din butoanele GUI. Nu când le folosiți din Python. Acest lucru este posibil, astfel încât scripturile Python să poată face gruparea pe care o doresc, indiferent de ce autogrupează.
Preferences
See also: Preferences Editor and Draft Preferences.
- This command can optionally also handle groups: Edit → Preferences → Draft → General → Include groups in layer list.
Scrip-Programare
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()
- Drafting: Line, Polyline, Fillet, Arc, Arc From 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, Highlight Subelements, Join, Split, Upgrade, Downgrade, Convert Wire/B-Spline, Draft to Sketch, Set Slope, Flip Dimension, Shape 2D View
- Draft Tray: Working 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, New Layer, Manage Layers, New Named Group, SelectGroup, Add to Layer, Add to Group, Add to Construction Group, Toggle Wireframe, Working Plane Proxy, Heal, Show Snap Toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Most objects: Edit
- Layer container: Add New Layer, Reassign Properties of All Layers, Merge Layer Duplicates
- Layer: Activate Layer, Reassign Properties of Layer, Select Layer Contents
- Text and label: Open Links
- Wire: Flatten
- Working plane proxy: Save Camera Position, Save Visibility of Objects
- 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, Assembly, BIM, CAM, Draft, FEM, Inspection, Material, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub
