Draft AutoGroup/de: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>


{{Docnav/de
<div class="mw-translate-fuzzy">
|[[Draft_ToggleConstructionMode/de|KonstruktionsmodusUmschalten]]
{{Docnav
|[[Draft_Snap_Lock/de|EinrastenSperren]]
|[[Draft_Slope|Hang]]
|[[Draft_Workbench/de|Draft]]
|[[Draft_WorkingPlaneProxy|Arbeitsebenen-Proxy festlegen]]
|IconL=Draft_ToggleConstructionMode.svg
|[[Draft_Workbench|Entwurf]]
|IconL=Draft_Slope.svg
|IconR=Draft_Snap_Lock.svg
|IconR=Draft_WorkingPlaneProxy.svg
|IconC=Workbench_Draft.svg
|IconC=Workbench_Draft.svg
}}
}}
</div>


{{GuiCommand/de
<div class="mw-translate-fuzzy">
{{GuiCommand
|Name=Draft AutoGroup
|Name=Draft AutoGroup
|Name/de=Draft AutoGruppieren
|MenuLocation=Draft → Utilities → AutoGroup
|Empty=1
|Workbenches=[[Draft Workbench|Draft]], [[Arch Workbench|Arch]]
|Workbenches=[[Draft_Workbench/de|Draft]], [[Arch_Workbench/de|Arch]]
|SeeAlso=[[Std Group|Std Group]], [[Draft VisGroup|Entwurf VisGroup]]
|Version=0.17
|Version=0.17
|SeeAlso=[[Draft_Layer/de|Draft Layer]], [[Std_Group/de|Std Gruppe]]
}}
}}
</div>


<span id="Description"></span>
== Beschreibung ==
== Beschreibung ==


Der Befehl '''Draft AutoGruppieren''' ändert den aktiven [[Draft_Layer/de|Draft-Layer]] oder [[#Einstellungen|wahlweise]] die aktive [[Std_Group/de|Std Gruppe]] bzw. gruppenartige [[Arch_Workbench/de|Arch]]-Objekte. Neue [[Draft_Workbench/de|Draft-]] und [[Arch_Workbench/de|Arch]]-Objekte werden automatisch auf diesem Layer bzw. in dieser Gruppe eingefügt.
<div class="mw-translate-fuzzy">
Das Werkzeug "Autogruppe" legt eine ausgewählte [[Std Group|Std Gruppe]] oder ein verwandtes Element wie [[Draft VisGroup|Entwurf VisGruppe]], [[Arch Site|Archbauwerk]], [[Arch Building|Archbau]] oder [[Arch BuildingPart|Archbauteil]] als aktive Autogruppe fest. Wenn eine Autogruppe festgelegt ist, werden neue Objekte beim Erstellen automatisch in die angegebene Gruppe verschoben.
</div>


Dieser Befehl war ursprünglich für Gruppen gedacht, daher sein Name, wurde aber in FreeCAD-Version 0.19 überarbeitet als ein Layer-System eingeführt wurde. Da der Umgang mit Layern jetzt die Standardaufgabe des Befehls ist, liegt der Fokus dieser Seite im folgenden haupfsächlich auf Layern.
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.


[[Image:Draft_tray_menu.png]]
[[Image:Draft_tray_menu.png]]
{{Caption|Das Layer-Menü im Draft-Tray}}
<div class="mw-translate-fuzzy">
{{Caption|Entwurfskassette, die die aktive Autogruppe durch Klicken auf das Ordnersymbol und Auswahl einer Gruppe einstellt}}
</div>


<span id="Usage"></span>
==Anwendung==
==Anwendung==


# To use this command in FreeCAD version 0.19 at least one [[Draft_Layer|layer]] must exist.
# Optionally select the layer you want to make active in the [[Tree_view|Tree view]].
# Optionally select the layer you want to make active in the [[Tree_view|Tree view]].
# There are several ways to invoke the command:
# There are several ways to invoke the command:
#* Press the {{Button|[[Image:button_invalid.svg|16px]] [[Draft_AutoGroup|None]]}} button in the [[Draft_Tray|Draft Tray]]. This button can look different. If there is an active layer it will show the name of the layer and a layer icon with the {{PropertyView|Line Color}} and {{PropertyView|Shape Color}} of the layer.
#* Press the [[Image:Draft_tray_button_layer.png]] button in the [[Draft_Tray|Draft Tray]]. This button can look different. If there is an active layer it will show the name of the layer and a layer icon with the {{PropertyView|Line Color}} and {{PropertyView|Shape Color}} of the layer.
#* Select the {{MenuCommand|Utilities → [[Image:Draft_AutoGroup.svg|16px]] AutoGroup}} option from the menu.
#* If you have selected a layer: select the {{MenuCommand|[[Image:button_right.svg|16px]] Activate this layer}} option from the [[Tree_view|Tree view]] context menu.
#* If you have selected a layer: select the {{MenuCommand|[[Image:button_right.svg|16px]] Activate this layer}} option from the [[Tree_view|Tree view]] context menu.
# If you have not yet selected a layer the layer menu opens. Do one of the following:
# If you have not yet selected a layer the layer menu opens. Do one of the following:
Line 54: Line 47:
* If [[Draft_ToggleConstructionMode|Draft construction mode]] is switched on the active [[Draft_Layer|layer]] is ignored.
* If [[Draft_ToggleConstructionMode|Draft construction mode]] is switched on the active [[Draft_Layer|layer]] is ignored.


==Preferences==
<span id="Preferences"></span>
==Einstellungen==


See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]].
See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]].


* This command can optionally also handle groups: {{MenuCommand|Edit → Preferences... → Draft → General settingsGeneral Draft Settings → Show groups in layers list drop-down button}}.
* This command can optionally also handle groups: {{MenuCommand|Edit → Preferences... → Draft → General → Include groups in layer list}}.


<span id="Scripting"></span>
== Skripten ==
== Skripten ==


Siehe auch: [https://freecad.github.io/SourceDoc/ Autogenerierte API-Dokumentation] und [[FreeCAD_Scripting_Basics/de|FreeCAD Grundlagen Skripten]].
<div class="mw-translate-fuzzy">
{{Emphasis|Siehe auch:}} [[Draft_API/de|Draft API]] und [[FreeCAD_Scripting_Basics/de|FreeCAD Grundlagen Skripten]].
</div>


If the [[Draft_Workbench|Draft Workbench]] is active the FreeCADGui application object has a {{incode|draftToolBar}} property. This {{incode|draftToolBar}} object has an {{incode|autogroup}} property, which contains the name of the active autogroup, or is {{incode|None}} if no autogroup is active. To change the active autogroup use the {{incode|setAutoGroup}} method of the {{incode|draftToolBar}} object. To put objects in the active autogroup use the {{incode|autogroup}} method of the Draft module.
If the [[Draft_Workbench|Draft Workbench]] is active the FreeCADGui application object has a {{incode|draftToolBar}} property. This {{incode|draftToolBar}} object has an {{incode|autogroup}} property, which contains the name of the active autogroup, or is {{incode|None}} if no autogroup is active. To change the active autogroup use the {{incode|setAutoGroup}} method of the {{incode|draftToolBar}} object. To put objects in the active autogroup use the {{incode|autogroup}} method of the Draft module.
Line 92: Line 85:




{{Docnav/de
<div class="mw-translate-fuzzy">
|[[Draft_ToggleConstructionMode/de|KonstruktionsmodusUmschalten]]
{{Docnav
|[[Draft_Snap_Lock/de|EinrastenSperren]]
|[[Draft_Slope|Hang]]
|[[Draft_Workbench/de|Draft]]
|[[Draft_WorkingPlaneProxy|Arbeitsebenen-Proxy festlegen]]
|IconL=Draft_ToggleConstructionMode.svg
|[[Draft_Workbench|Entwurf]]
|IconL=Draft_Slope.svg
|IconR=Draft_Snap_Lock.svg
|IconR=Draft_WorkingPlaneProxy.svg
|IconC=Workbench_Draft.svg
|IconC=Workbench_Draft.svg
}}
}}
</div>


{{Draft Tools navi{{#translation:}}}}
{{Draft Tools navi{{#translation:}}}}

Latest revision as of 12:39, 22 December 2023

Draft AutoGruppieren

Menüeintrag
Keiner
Arbeitsbereich
Draft, Arch
Standardtastenkürzel
Keiner
Eingeführt in Version
0.17
Siehe auch
Draft Layer, Std Gruppe

Beschreibung

Der Befehl Draft AutoGruppieren ändert den aktiven Draft-Layer oder wahlweise die aktive Std Gruppe bzw. gruppenartige Arch-Objekte. Neue Draft- und Arch-Objekte werden automatisch auf diesem Layer bzw. in dieser Gruppe eingefügt.

Dieser Befehl war ursprünglich für Gruppen gedacht, daher sein Name, wurde aber in FreeCAD-Version 0.19 überarbeitet als ein Layer-System eingeführt wurde. Da der Umgang mit Layern jetzt die Standardaufgabe des Befehls ist, liegt der Fokus dieser Seite im folgenden haupfsächlich auf Layern.

Das Layer-Menü im Draft-Tray

Anwendung

  1. Optionally select the layer you want to make active in the Tree view.
  2. There are several ways to invoke the command:
    • Press the button in the Draft Tray. This button can look different. If there is an active layer it will show the name of the layer and a layer icon with the AnsichtLine Color and AnsichtShape Color of the layer.
    • If you have selected a layer: select the Activate this layer option from the Tree view context menu.
  3. If you have not yet selected a layer the layer menu opens. Do one of the following:
    • Select None to work without an active layer.
    • Select an existing layer to make active.
    • Select Add new Layer to create a new layer. Selecting this option will not change the active layer.
  4. If the active layer was changed the button in the Draft Tray is updated.

Notes

  • A new layer can also be created by right-clicking the layer container in the Tree view and selecting the Add new layer option from the context menu.
  • If Draft construction mode is switched on the active layer is ignored.

Einstellungen

See also: Preferences Editor and Draft Preferences.

  • This command can optionally also handle groups: Edit → Preferences... → Draft → General → Include groups in layer list.

Skripten

Siehe auch: Autogenerierte API-Dokumentation und FreeCAD Grundlagen Skripten.

If the Draft Workbench is active the FreeCADGui application object has a draftToolBar property. This draftToolBar object has an autogroup property, which contains the name of the active autogroup, or is None if no autogroup is active. To change the active autogroup use the setAutoGroup method of the draftToolBar object. To put objects in the active autogroup use the autogroup method of the Draft module.

# 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()