Draft Verschieben

From FreeCAD Documentation
Revision as of 21:10, 31 December 2021 by Roy 043 (talk | contribs)

Entwurf Verschieben

Menüeintrag
Entwurf → Verschieben
Arbeitsbereich
Entwurf, Architektur
Standardtastenkürzel
MV
Eingeführt in Version
0.7
Siehe auch
Draft SubelementHighlight

Beschreibung

Die Draft-Verschieben-Anweisung verschiebt oder kopiert die ausgewählten Objekt von einem Punkt zu einem anderen. Im Teilelementemodus verschiebt die Anweisung ausgewählte Punkte und Kanten oder kopiert in Entwurf Linie und Entwurf Draht ausgewählte Kanten .

Die Anweisung kann auf 2D-Formen, die mit dem Entwurf- oder Sketcher-Arbeitsbereich erstellt wurden, angewendet werden, aber auch auf viele 3D-Objekte, wie jenen, die mit dem Part Modul-, Part und PartDesign- oder Architektur-Arbeitsbereich erzeugt wurden.

Verschieben eines Objekts von einem Punkt zu einem anderen Punkt

Anwendung

Siehe auch: Entwurf Fang and Entwurf Beschränken.

  1. Wähle ein Objekt oder mehrere Objekte, oder ein Element oder mehrere Elemente aus Entwurf Linie oder Entwurf Draht.
  2. Es gibt mehrere Wege, die Anweisung auszuführen:
    • Die Entwurf Bewegen Schaltfläche anklicken.
    • Den Menüpunkt Modification → Move aus dem Menü wählen.
    • Die Tastenkombination: M dann V anwenden.
  3. Wenn noch kein Objekt ausgewählt wurde: ein Objekt in der 3D Ansicht auswählen.
  4. Die Move Aufgabenansicht wird geöffnet. Mehr hierzu, siehe Optionen.
  5. Wenn Objektelemente ausgewählt wurden: durch ein Modify subelements Häckchen in den Elementemodus umschalten.
  6. Wähle den ersten Punkt und den Basispunkt in der 3D Ansicht oder gib die Koordinaten ein und klicke auf die Enter point-Schaltfläche.
  7. Wähle den zweiten Punkt und den Zielpunkt in der 3D Ansicht, oder gib die Koordinaten ein und klicke auf die Enter point-Schaltfläche.

Optionen

Das jeweilige Verhalten eines Tastaturkürzels, das hier genannt wird kann geändert sein. Siehe Entwurf Einstellungen.

  • To manually enter coordinates enter the X, Y and Z component, and press Enter after each. Or you can press the Enter point button when you have the desired values. It is advisable to move the pointer out of the 3D view before entering coordinates.
  • To use polar coordinates enter a value for the Length and a value for the Angle, and press Enter after each.
  • Check the Angle checkbox to constrain the pointer to the specified angle.
  • Press H to change the focus from the X input box to the Length input box and back. Depending on the input box that receives the focus the Angle checkbox is checked or unchecked.
  • Press R or click the Relative checkbox to toggle relative mode. If relative mode is on, the coordinates of the second point are relative to the first point, else they are relative to the coordinate system origin.
  • Press G or click the Global checkbox to toggle global mode. If global mode is on, coordinates are relative to the global coordinate system, else they are relative to the working plane coordinate system. introduced in version 0.20
  • Press T or click the Continue checkbox to toggle continue mode. If continue mode is on, the command will restart after finishing. This mode really only makes sense if copy mode is switched on. Depending on the Select base objects after copying preference, either the original objects are selected for the next command call or the copies that were created last. See Preferences.
  • Press P or click the Copy checkbox to toggle copy mode. If copy mode is on, the command will create moved copies instead of moving the original objects.
  • Press D or click the Modify subelements checkbox to toggle subelement mode. If subelement mode is on, the command will use the selected subelements instead of the whole objects. The subelements must belong to Draft Lines or Draft Wires.
  • If copy mode and subelement mode are both on, and edges of Draft Wires are selected, new wires will be created from those edges.
  • Holding down Alt after picking the base point will also toggle copy mode. While Alt is held down multiple target points can be picked. Release Alt to finish the command and see the created copies. This option does not work in FreeCAD version 0.19.
  • Press S to switch Draft snapping on or off.
  • Press Esc or the Close button to abort the command.

Hinweise

  • Ein Objekt, das angehängt ist, kann nicht mit der Draft Verschieben Anweisung verschoben werden. Um es trotzdem zu verschieben, muss sein unterstützendes DatenSupport Object verschoben werden, oder seine DatenAttachment Offset geändert werden.

Einstellungen

Siehe auch: Voreinstellungseditor und Entwurf Einstellungen.

  • Um die Anzahl der Dezimalstellen für die Eingabe der Koordinaten, wie Längen und Winkel zu ändern, ist die Eigenschaft: Edit → Preferences... → General → Units → Units settings → Number of decimals einzustellen.
  • Um den Fokus beim Öffnen der Aufgabenansicht auf Length zu legen, ist die Eigenschaft: Edit → Preferences... → Draft → General settings → Draft tools options → Set focus on Length instead of X coordinate anzupassen. Beachte, dass der Zeiger in der 3D Ansicht bewegt werden muss, um die Auswirkung sehen zu können.
  • Um die gleiche Kopiermethode über alle Anweisungen zu speichern und wieder zu verwenden, ist die Eigenschaft: Edit → Preferences... → Draft → General settings → Draft tools options → Global copy mode einzustellen.
  • Um die Origialobjekte nach dem Kopieren zu markieren, ist die Eigenschaft: Edit → Preferences... → Draft → General settings → Draft tools options → Select base objects after copying einzustellen.

Skripten

Siehe auch: Autogenerated API documentation und FreeCAD Grundlagen Skripten.

Um Objekte zu verschieben, benutze die move-Methode des Entwurfmodules.

moved_list = move(objectslist, vector, copy=False)
  • objectslist enthält die zu verschiebenden Objekte. Es kann ein einzelnes Objekt oder es können mehrere Objekte sein.
  • vector ist der Versatz.
  • Wenn copy True ist, werden Kopien erstellt, anstatt die Originale der Objekte zu verschieben.
  • moved_list gibt die verschobenen Originale oder die neuen Kopien aus. Es ist ein einzelnes Objekt oder eine Liste von Objekten, abhängig von objectslist.

Beispiel:

import FreeCAD as App
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)

Draft.move(polygon1, App.Vector(500, 500, 0))
Draft.move(polygon1, App.Vector(500, 500, 0))
Draft.move(polygon2, App.Vector(1000, -1000, 0))
Draft.move(polygon3, App.Vector(-500, -500, 0))

list1 = [polygon1, polygon2, polygon3]

vector = App.Vector(-2000, -2000, 0)
list2 = Draft.move(list1, vector, copy=True)
list3 = Draft.move(list1, -2*vector, copy=True)

doc.recompute()