Selection methods/de: Difference between revisions

From FreeCAD Documentation
No edit summary
(Created page with "Dies sollte auf der Auswahlansicht Seite stehen.''")
Line 43: Line 43:
===Objekt export===
===Objekt export===


''This should be in the [[selection view]] page.''
Dies sollte auf der [[selection view/de|Auswahlansicht]] Seite stehen.''


Select any complex object, for example, a [[PartDesign_Body|PartDesign Body]] or [[Std_Part|Std Part]], then in the [[selection_view|selection view]] select again the object, and then press {{KEY|Ctrl}} + {{KEY|C}} in the keyboard to open the {{MenuCommand|Object selection}} dialog. This allows copying the selected object together with all or only some of that object's dependency objects. For example, for a [[Std_Part|Std Part]] the possible objects to select include the [[Std_Part|Std Part]] itself, but also its Origin, its three base axes (XYZ), and its three base planes (XY, YZ, XZ).
Select any complex object, for example, a [[PartDesign_Body|PartDesign Body]] or [[Std_Part|Std Part]], then in the [[selection_view|selection view]] select again the object, and then press {{KEY|Ctrl}} + {{KEY|C}} in the keyboard to open the {{MenuCommand|Object selection}} dialog. This allows copying the selected object together with all or only some of that object's dependency objects. For example, for a [[Std_Part|Std Part]] the possible objects to select include the [[Std_Part|Std Part]] itself, but also its Origin, its three base axes (XYZ), and its three base planes (XY, YZ, XZ).

Revision as of 20:49, 2 August 2021

Überblick

Auswahlmethoden in FreeCAD ermöglichen das Auswählen von Objekten in der FreeCAD-Oberfläche: z. B. 3D Ansicht, Baumansicht, Auswahlansicht und anderen Dialogen. Einige Auswahlmethoden sind Arbeitsbereich-spezifisch und in der jeweiligen Arbeitsbereich-Dokumentation dokumentiert.

3D Ansicht

In der 3D Ansicht gibt es verschiedene Möglichkeiten, Objekte auszuwählen.

Einfache Auswahl

Die einfache Auswahl mit der Maus (standardmäßig Linksklick) und die Vorauswahl (Hover) werden auf der Seite Mausbedienung beschrieben.

Wiederholte Klicks

Mit dem ersten Klick wird ein Unterelement (Punkt, Kante oder Fläche) des Objekts unter der Maus ausgewählt. Ein zweiter Klick wählt das gesamte Objekt aus. eingeführt mit Version 0.18

Der dritte Klick erweitert die Auswahl auf das Containerobjekt Körper, Standard Teil und andere. Weitere Klicks erweitern die Auswahl in der Containerkette. eingeführt mit Version 0.19

Auswahl Befehle

Auswahlansicht

In der Auswahlansicht werden die Namen der ausgewählten Objekte angezeigt, einschließlich ihres vollständigen Namens innerhalb eines Objekts, z. B. Unnamed#Body.Box001.Face17.

Sie erlaubt auch einige Aktionen wie Std AnsichtAuswahlEinpassen, und das Senden des Objekts an die Python Konsole.

Objekt export

Dies sollte auf der Auswahlansicht Seite stehen.

Select any complex object, for example, a PartDesign Body or Std Part, then in the selection view select again the object, and then press Ctrl + C in the keyboard to open the Object selection dialog. This allows copying the selected object together with all or only some of that object's dependency objects. For example, for a Std Part the possible objects to select include the Std Part itself, but also its Origin, its three base axes (XYZ), and its three base planes (XY, YZ, XZ).

After pressing OK, the selected objects are copied into memory, and then can be pasted in the document to duplicate these objects only.

Object selection dialog that is launched from the selection view.

Baumansicht

In the tree view items can be selected, or deselected, one at a time, by holding the Ctrl key and clicking with the mouse.

A range of items can be selected by clicking on the first item, holding Shift, and clicking on the last item.

Selecting a single item will also show its properties in the property editor.

Double clicking will open any associated task panel containing actions. Make sure to close this task panel before executing another command or switching to any other workbench.

More methods are available by opening the context menu (right-click), depending on the object selected or the active workbench; see the information in tree view.

Skripterstellung

Selecting objects is inherently a graphical task and therefore it is only available when the graphical user interface is loaded.

These commands can be used in macros or from the Python console.

import FreeCADGui as Gui

Gui.Selection.addSelection
Gui.Selection.addSelectionGate
Gui.Selection.Filter

The command addSelectionGate restricts the user from selecting objects not specified in the selection string. A symbol appears when the pointer is over an item not in the specified group.

Gui.Selection.addSelectionGate("SELECT Part::Feature SUBELEMENT Edge")

See the Source documentation and Std PythonHelp for more help on using these tools.