Draft Mirror/de: Difference between revisions
(Created page with "==Beschreibung==== Das Spiegelwerkzeug erstellt eine gespiegelte Kopie eines ausgewählten Objekts mit der Operation Part Mirror. Die Kopie ist, genau wie e...") |
No edit summary |
||
(80 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{Docnav|[[Draft_Drawing|Drawing]]|[[Draft_Stretch|Stretch]]|[[Draft_Module|Draft]]|IconL=Draft_Drawing.svg|IconC=Workbench_Draft.svg|IconR=Draft_Stretch.svg}} |
|||
{{Docnav/de |
|||
{{GuiCommand |
|||
|[[Draft_Scale/de|Skalieren]] |
|||
|[[Draft_Offset/de|Versatz]] |
|||
|[[Draft_Workbench/de|Draft]] |
|||
|IconL=Draft_Scale.svg |
|||
|IconR=Draft_Offset.svg |
|||
|IconC=Workbench_Draft.svg |
|||
}} |
|||
{{GuiCommand/de |
|||
|Name=Draft Mirror |
|Name=Draft Mirror |
||
| |
|Name/de=Draft Spiegeln |
||
|MenuLocation=Änderung → Spiegeln |
|||
|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]] |
|||
| |
|Workbenches=[[Draft_Workbench/de|Draft]], [[Arch_Workbench/de|Arch]] |
||
|Shortcut={{KEY|M}} {{KEY|I}} |
|||
|SeeAlso=[[Draft_Clone/de|Draft Klonen]] |
|||
}} |
}} |
||
<span id="Description"></span> |
|||
==Beschreibung==== |
|||
==Beschreibung== |
|||
Das Spiegelwerkzeug erstellt eine gespiegelte Kopie eines ausgewählten Objekts mit der Operation [[Part Mirror/de|Part Mirror]]. Die Kopie ist, genau wie ein [[Draft Clone/de|Draft Clone]], mit dem Originalobjekt verknüpft. Das bedeutet, wenn das Originalobjekt seine Form und Eigenschaften ändert, ändert sich auch die gespiegelte Form. |
|||
Der Befehl [[Image:Draft_Mirror.svg|24px]] '''Draft Spiegeln''' erstellt gespiegelte Kopien, [[Part_Mirror/de|Part-Mirror]]-Objekte, von ausgewählten Objekten. Ein [[Part_Mirror/de|Part-Mirror]]-Objekt ist parametrisch, d.h. es aktualisiert sich, wenn sich sein Quellobjekt ändert. |
|||
The Mirror tool can be used on 2D shapes created with the [[Draft Workbench|Draft Workbench]], but can also be used on many types of 3D objects such as those created with the [[Part Workbench|Part]], [[PartDesign Workbench|PartDesign]], or [[Arch Workbench|Arch Workbench]]es. |
|||
Der Befehl kann auf 2D-Objekte angewendet werden, die im Arbeitsbereich [[Draft_Workbench/de|Draft]] oder im Arbeitsbereich [[Sketcher_Workbench/de|Sketcher]] erstellt wurden, aber auch auf viele 3D-Objekte, wie jene, die in den Arbeitsbereichen [[Part_Workbench/de|Part]], [[PartDesign_Workbench/de|PartDesign]] oder [[Arch_Workbench/de|Arch]] erstellt wurden. |
|||
To create copies or clones, and manually place them use [[Draft Move|Draft Move]], [[Draft Rotate|Draft Rotate]], and [[Draft Clone|Draft Clone]]. |
|||
[[Image:Draft_Mirror_example.jpg|400px]] |
[[Image:Draft_Mirror_example.jpg|400px]] |
||
{{Caption| |
{{Caption| Ein Objekt Spiegeln}} |
||
<span id="Usage"></span> |
|||
==How to use== |
|||
==Anwendung== |
|||
# Select an object that you wish to mirror. |
|||
# Press the {{Button|[[Image:Draft Mirror.svg|16px]] [[Draft Mirror|Draft Mirror]]}} button. If no object is selected, you will be invited to select one. |
|||
# Click a first point on the 3D view, or type a [[Draft_Coordinates|coordinate]] and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} button. |
|||
# Click a second point on the 3D view, or type a [[Draft_Coordinates|coordinate]] and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} button. These points define a line, which together with the camera view, define a mirroring plane that is used to create the mirrored object. |
|||
Siehe auch: [[Draft_Snap/de|Draft Einrasten]] und [[Draft_Constrain/de|Draft Beschränken]]. |
|||
After creating the mirrored copy, its binding with the original object can be removed using the {{Button|[[Image:Tree_Part.svg|16px]] [[Part_SimpleCopy|Part Create simple copy]]}} tool. |
|||
# Wahlweise ein oder mehrere Objekte auswählen. |
|||
A mirrored copy of a Draft object can be turned into a [[Draft Wire|Draft Wire]], by using {{Button|[[Image:Draft Downgrade.svg|16px]] [[Draft Downgrade]]}} then {{Button|[[Image:Draft Upgrade.svg|16px]] [[Draft Upgrade|Draft Upgrade]]}}. |
|||
# Es gibt mehrere Möglichkeiten, den Befehl aufzurufen: |
|||
#* Die Schaltfläche {{Button|[[Image:Draft_Mirror.svg|16px]] [[Draft_Mirror/de|Spiegeln]]}} drücken. |
|||
#* Den Menüeintrag {{MenuCommand|Änderung → [[Image:Draft_Mirror.svg|16px]] Spiegeln}} auswählen. |
|||
#* Das Tastaturkürzel {{KEY|M}} dann {{KEY|I}}. |
|||
# Wurde noch kein Objekt ausgewählt: Ein Objekt in der [[3D_view/de|3D-Ansicht]] auswählen. |
|||
# Der Aufgaben-Bereich {{MenuCommand|Spiegeln}} wird geöffnet. Siehe [[#Optionen|Optionen]] für weitere Informationen. |
|||
# Den ersten Punkt der Spiegelebene in der [[3D_view/de|3D-Ansicht]] auswählen, oder die Koordinaten eingeben und die Schaltfläche {{Button|[[Image:Draft_AddPoint.svg|16px]] Punkt eingeben}} drücken. |
|||
# Den zweiten Punkt der Spiegelebene in der [[3D_view/de|3D Ansicht]] auswählen, oder die Koordinaten eingeben und die Schaltfläche {{Button|[[Image:Draft_AddPoint.svg|16px]] Punkt eingeben}} drücken. |
|||
# Die Spiegelebene wird durch die ausgewählten Punkte und die Normale der [[Draft_SelectPlane/de|Draft-Arbeitsebene]] definiert. |
|||
= |
<span id="Options"></span> |
||
==Optionen== |
|||
* Press {{KEY|X}}, {{KEY|Y}} or {{KEY|Z}} after the first point to constrain the second point on the given axis. |
|||
* To enter coordinates manually, simply enter the numbers, then press {{KEY|Enter}} between each X, Y and Z component. |
|||
* Press {{KEY|R}} or click the checkbox to toggle ''relative'' mode. If relative mode is on, the coordinates of the second point are relative to the first one; if not, they are absolute, taken from the origin (0,0,0). |
|||
* Press {{KEY|T}} or click the checkbox to toggle ''continue'' mode. If continue mode is on, the Mirror tool will restart after you give the second point, allowing you to put another object without pressing the tool button again. |
|||
* Hold {{KEY|Ctrl}} while drawing to force [[Draft_Snap|snapping]] your point to the nearest snap location, independently of the distance. |
|||
* Hold {{KEY|Shift}} while drawing to [[Draft_Constrain|constrain]] your second point horizontally or vertically in relation to the first one. |
|||
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the current command. |
|||
Die im Aufgaben-Bereich verfügbaren Einzelzeichen-Tastaturkürzel können geändert werden. Siehe [[Draft_Preferences/de|Draft-Einstellungen]]. Die hier genannten Tastenkürzel sind die Standardtastenkürzel. |
|||
==Properties== |
|||
* {{PropertyData|Source}}: specifies the object to mirror, |
|||
* {{PropertyData|Base}}: specifies the base point of the mirror plane. |
|||
* {{PropertyData|Normal}}: specifies the normal direction of the mirror plane. |
|||
* To manually enter coordinates enter the X, Y and Z component, and press {{KEY|Enter}} after each. Or you can press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button when you have the desired values. It is advisable to move the pointer out of the [[3D_view|3D view]] before entering coordinates. |
|||
==Scripting== |
|||
* Press {{KEY|R}} or click the {{MenuCommand|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. |
|||
{{Emphasis|See also:}} [[Draft API|Draft API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]]. |
|||
* Press {{KEY|G}} or click the {{MenuCommand|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 [[Draft_SelectPlane|working plane]] coordinate system. {{Version|0.20}} |
|||
* Press {{KEY|S}} to switch [[Draft_Snap|Draft snapping]] on or off. |
|||
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the command. |
|||
<span id="Notes"></span> |
|||
==Hinweise== |
|||
* Mirrored copies of [[Draft_Line|Draft Lines]], [[Draft_Wire|Draft Wires]], [[Draft_Arc|Draft Arcs]] and [[Draft_Circle|Draft Circles]] can be turned into independent editable Draft objects by using [[Draft_Downgrade|Draft Downgrade]] and then [[Draft_Upgrade|Draft Upgrade]]. |
|||
* The [[Part_SimpleCopy|Part SimpleCopy]] command can be used to create a copy of a mirrored object that is not linked to its source object. |
|||
<span id="Properties"></span> |
|||
==Eigenschaften== |
|||
Siehe auch: [[property_editor/de|Eigenschafteneditor]]. |
|||
Ein [[Part_Mirror|Part Mirror]]-Objekt ist von einem [[Part_Feature|Part Feature]]-Objekt abgeleitet und erbt alle Eigenschaften. Es besitzt zusätzlich folgende Eigenschaften: |
|||
<span id="Data"></span> |
|||
===Daten=== |
|||
{{TitleProperty|Base}} |
|||
* {{PropertyData|Source|Link}}: nennt das gespiegelte Objekt. |
|||
{{TitleProperty|Plane}} |
|||
* {{PropertyData|Base|Vector}}: bezeichnet den Ursprung der Spiegelfläche. |
|||
* {{PropertyData|Normal|Vector}}: bezeichnet die Normale auf die Spiegelfläche. |
|||
<span id="Scripting"></span> |
|||
==Skripten== |
|||
Siehe auch: [https://freecad.github.io/SourceDoc/ Autogenerierte API-Dokumentation] und [[FreeCAD_Scripting_Basics/de|FreeCAD Grundlagen Skripten]]. |
|||
Zum Spiegeln von Objekten wird die Methode {{incode|mirror}} des Draft-Moduls verwendet. |
|||
The Mirror tool can be used in [[macros|macros]] and from the [[Python|Python]] console by using the following function: |
|||
{{Code|code= |
{{Code|code= |
||
mirrored_list = mirror(objlist, p1, p2) |
mirrored_list = mirror(objlist, p1, p2) |
||
}} |
}} |
||
* |
* {{incode|objlist}} contains the objects to be mirrored. It is either a single object or a list of objects. |
||
* |
* {{incode|p1}} is the first point of the mirror plane. |
||
* {{incode| |
* {{incode|p2}} is the second point of the mirror plane. |
||
* If the [[Draft_SelectPlane|Draft working plane]] is available the alignment of the mirror plane is determined by its normal, else the view direction of the camera in the active [[3D_view|3D view]] is used. If the graphical interface is not available the Z axis is used. |
|||
** {{incode|mirrored_list}} is either a single object or a list of objects, depending on the input {{incode|objlist}}. |
|||
* {{incode|mirrored_list}} is returned with the new {{incode|Part::Mirroring}} objects. It is either a single object or a list of objects, depending on {{incode|objlist}}. |
|||
Beispiel: |
|||
Example: |
|||
{{Code|code= |
{{Code|code= |
||
import |
import FreeCAD as App |
||
import Draft |
|||
doc = App.newDocument() |
|||
place = FreeCAD.Placement(FreeCAD.Vector(1000, 0, 0), FreeCAD.Rotation()) |
|||
Polygon1 = Draft.makePolygon(3, 750) |
|||
Polygon2 = Draft.makePolygon(5, 750, placement=place) |
|||
place = App.Placement(FreeCAD.Vector(1000, 0, 0), App.Rotation()) |
|||
polygon1 = Draft.make_polygon(3, 750) |
|||
p2 = FreeCAD.Vector(2000, 1000, 0) |
|||
polygon2 = Draft.make_polygon(5, 750, placement=place) |
|||
p1 = App.Vector(2000, -1000, 0) |
|||
p2 = App.Vector(2000, 1000, 0) |
|||
line1 = Draft.make_line(p1, p2) |
|||
mirrored1 = Draft.mirror(polygon1, p1, p2) |
|||
Line2 = Draft.make_line(-p1, -p2) |
|||
mirrored2 = Draft.mirror([polygon1, polygon2], -p1, -p2) |
|||
doc.recompute() |
|||
}} |
}} |
||
{{Docnav|[[Draft_Drawing|Drawing]]|[[Draft_Stretch|Stretch]]|[[Draft_Module|Draft]]|IconL=Draft_Drawing.svg|IconC=Workbench_Draft.svg|IconR=Draft_Stretch.svg}} |
|||
{{Docnav/de |
|||
{{Draft Tools navi}} |
|||
|[[Draft_Scale/de|Skalieren]] |
|||
|[[Draft_Offset/de|Versatz]] |
|||
|[[Draft_Workbench/de|Draft]] |
|||
|IconL=Draft_Scale.svg |
|||
|IconR=Draft_Offset.svg |
|||
|IconC=Workbench_Draft.svg |
|||
}} |
|||
{{Draft Tools navi{{#translation:}}}} |
|||
{{Userdocnavi}} |
|||
{{Userdocnavi{{#translation:}}}} |
|||
{{clear}} |
Latest revision as of 19:50, 9 January 2024
Draft Spiegeln |
Menüeintrag |
---|
Änderung → Spiegeln |
Arbeitsbereich |
Draft, Arch |
Standardtastenkürzel |
M I |
Eingeführt in Version |
- |
Siehe auch |
Draft Klonen |
Beschreibung
Der Befehl Draft Spiegeln erstellt gespiegelte Kopien, Part-Mirror-Objekte, von ausgewählten Objekten. Ein Part-Mirror-Objekt ist parametrisch, d.h. es aktualisiert sich, wenn sich sein Quellobjekt ändert.
Der Befehl kann auf 2D-Objekte angewendet werden, die im Arbeitsbereich Draft oder im Arbeitsbereich Sketcher erstellt wurden, aber auch auf viele 3D-Objekte, wie jene, die in den Arbeitsbereichen Part, PartDesign oder Arch erstellt wurden.
Ein Objekt Spiegeln
Anwendung
Siehe auch: Draft Einrasten und Draft Beschränken.
- Wahlweise ein oder mehrere Objekte auswählen.
- Es gibt mehrere Möglichkeiten, den Befehl aufzurufen:
- Die Schaltfläche Spiegeln drücken.
- Den Menüeintrag Änderung → Spiegeln auswählen.
- Das Tastaturkürzel M dann I.
- Wurde noch kein Objekt ausgewählt: Ein Objekt in der 3D-Ansicht auswählen.
- Der Aufgaben-Bereich Spiegeln wird geöffnet. Siehe Optionen für weitere Informationen.
- Den ersten Punkt der Spiegelebene in der 3D-Ansicht auswählen, oder die Koordinaten eingeben und die Schaltfläche Punkt eingeben drücken.
- Den zweiten Punkt der Spiegelebene in der 3D Ansicht auswählen, oder die Koordinaten eingeben und die Schaltfläche Punkt eingeben drücken.
- Die Spiegelebene wird durch die ausgewählten Punkte und die Normale der Draft-Arbeitsebene definiert.
Optionen
Die im Aufgaben-Bereich verfügbaren Einzelzeichen-Tastaturkürzel können geändert werden. Siehe Draft-Einstellungen. Die hier genannten Tastenkürzel sind die Standardtastenkürzel.
- 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.
- 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 S to switch Draft snapping on or off.
- Press Esc or the Close button to abort the command.
Hinweise
- Mirrored copies of Draft Lines, Draft Wires, Draft Arcs and Draft Circles can be turned into independent editable Draft objects by using Draft Downgrade and then Draft Upgrade.
- The Part SimpleCopy command can be used to create a copy of a mirrored object that is not linked to its source object.
Eigenschaften
Siehe auch: Eigenschafteneditor.
Ein Part Mirror-Objekt ist von einem Part Feature-Objekt abgeleitet und erbt alle Eigenschaften. Es besitzt zusätzlich folgende Eigenschaften:
Daten
Base
- DatenSource (
Link
): nennt das gespiegelte Objekt.
Plane
- DatenBase (
Vector
): bezeichnet den Ursprung der Spiegelfläche. - DatenNormal (
Vector
): bezeichnet die Normale auf die Spiegelfläche.
Skripten
Siehe auch: Autogenerierte API-Dokumentation und FreeCAD Grundlagen Skripten.
Zum Spiegeln von Objekten wird die Methode mirror
des Draft-Moduls verwendet.
mirrored_list = mirror(objlist, p1, p2)
objlist
contains the objects to be mirrored. It is either a single object or a list of objects.p1
is the first point of the mirror plane.p2
is the second point of the mirror plane.- If the Draft working plane is available the alignment of the mirror plane is determined by its normal, else the view direction of the camera in the active 3D view is used. If the graphical interface is not available the Z axis is used.
mirrored_list
is returned with the newPart::Mirroring
objects. It is either a single object or a list of objects, depending onobjlist
.
Beispiel:
import FreeCAD as App
import Draft
doc = App.newDocument()
place = App.Placement(FreeCAD.Vector(1000, 0, 0), App.Rotation())
polygon1 = Draft.make_polygon(3, 750)
polygon2 = Draft.make_polygon(5, 750, placement=place)
p1 = App.Vector(2000, -1000, 0)
p2 = App.Vector(2000, 1000, 0)
line1 = Draft.make_line(p1, p2)
mirrored1 = Draft.mirror(polygon1, p1, p2)
Line2 = Draft.make_line(-p1, -p2)
mirrored2 = Draft.mirror([polygon1, polygon2], -p1, -p2)
doc.recompute()
- Drafting: Line, Polyline, Fillet, Arc, Arc by 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, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select 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, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
- Erste Schritte
- Installation: Herunterladen, Windows, Linux, Mac, Zusätzlicher Komponenten, Docker, AppImage, Ubuntu Snap
- Grundlagen: Über FreeCAD, Graphische Oberfläche, Mausbedienung, Auswahlmethoden, Objektname, Programmeinstellungen, Arbeitsbereiche, Dokumentstruktur, Objekteigenschaften, Hilf FreeCAD, Spende
- Hilfe: Tutorien, Video Tutorien
- Arbeitsbereiche: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework