Draft Scale/de: Difference between revisions

From FreeCAD Documentation
m (Undo revision 550700 by Maker (talk) R3, Arbeitsbereichsnamen werden nicht übersetzt)
(Updating to match new version of source page)
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>


{{Docnav/de
<div class="mw-translate-fuzzy">
|[[Draft_Rotate/de|Drehen]]
{{Docnav/de|[[Draft_Downgrade|Downgrade]]|[[Draft_Edit|Edit]]|[[Draft_Workbench|Draft]]|IconL=Draft_Downgrade.svg|IconC=Workbench_Draft.svg|IconR=Draft_Edit.svg}}
|[[Draft_Mirror/de|Spiegeln]]
</div>
|[[Draft_Workbench/de|Draft]]
|IconL=Draft_Rotate.svg
|IconR=Draft_Mirror.svg
|IconC=Workbench_Draft.svg
}}


<div class="mw-translate-fuzzy">
{{GuiCommand/de
{{GuiCommand/de
|Name=Draft Scale|Name/de=Skalieren
|Name=Draft Scale
|MenuLocation=Entwurf → Skalieren
|Name/de=Draft Skalieren
|MenuLocation=Änderung → Skalieren
|Workbenches=[[Draft_Workbench/de|Draft]], [[Arch_Workbench/de|Arch]]
|Workbenches=[[Draft_Workbench/de|Draft]], [[Arch_Workbench/de|Arch]]
|Shortcut={{KEY|S}} {{KEY|C}}
|Shortcut={{KEY|S}} {{KEY|C}}
|SeeAlso=[[Draft Clone/de|Klonen]], [[Draft Offset/de|Versetzen]]
|SeeAlso=[[Draft_SubelementHighlight/de|Draft UnterelementHervorheben]], [[Draft_Clone/de|Draft Klonen]]
}}
}}
</div>


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


Das Werkzeug [[Image:Draft_Scale.svg|24px]] '''Draft Skalieren''' skaliert oder kopiert ausgewählte Objekte von einem Basispunkt aus. Im Unterelement-Modus skaliert der Befehl ausgewählte Punkte und Kanten von [[Draft_Line/de|Draft Linien]] und [[Draft_Wire/de|Draft-Drähten]].
<div class="mw-translate-fuzzy">
Das Skalierungswerkzeug skaliert oder kopiert ausgewählte Objekte um einen Basispunkt.
</div>


The command can be used on 2D objects created with the [[Draft_Workbench|Draft Workbench]] or [[Sketcher_Workbench|Sketcher Workbench]], but also on many 3D objects such as those created with the [[Part_Workbench|Part Workbench]], [[PartDesign_Workbench|PartDesign Workbench]] or [[Arch_Workbench|Arch Workbench]].
Der Befehl kann auf 2D-Formen angewendet werden, die mit den Arbeitsbereichen [[Draft Workbench/de|Draft]] oder [[Sketcher Workbench/de|Sketcher]] erstellt wurden, kann aber auch mit vielen Arten von 3D-Objekten benutzt werden, wie denen, die mit den Arbeitsbereichen [[Part Workbench/de|Part]] oder [[Arch Workbench/de|Arch]] erzeugt wurden.


[[Image:Draft_Scale_example.png|400px]]
[[Image:Draft_Scale_example.png|400px]]
{{Caption|Scaling an object around a base point}}
{{Caption|Skalieren eines Objekts von einen Basispunkt aus}}


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


See also: [[Draft_Snap|Draft Snap]] and [[Draft_Constrain|Draft Constrain]].
Siehe auch: [[Draft_Snap/de|Draft Fangen]] und [[Draft_Constrain/de|Draft Beschränken]].


# Optionally select one or more objects, or one or more subelements of [[Draft_Line|Draft Lines]] or [[Draft_Wire|Draft Wires]].
# Optionally select one or more objects, or one or more subelements of [[Draft_Line|Draft Lines]] or [[Draft_Wire|Draft Wires]].
# There are several ways to invoke the command:
# There are several ways to invoke the command:
#* Press the {{Button|[[Image:Draft_Scale.svg|16px]] [[Draft_Scale|Draft Scale]]}} button.
#* Press the {{Button|[[Image:Draft_Scale.svg|16px]] [[Draft_Scale|Scale]]}} button.
#* Select the {{MenuCommand|Modification → [[Image:Draft_Scale.svg|16px]] Scale}} option from the menu.
#* Select the {{MenuCommand|Modification → [[Image:Draft_Scale.svg|16px]] Scale}} option from the menu.
#* Use the keyboard shortcut: {{KEY|S}} then {{KEY|C}}.
#* Use the keyboard shortcut: {{KEY|S}} then {{KEY|C}}.
Line 43: Line 46:
# Press {{KEY|Enter}} or the {{Button|OK}} button to finish the command.
# Press {{KEY|Enter}} or the {{Button|OK}} button to finish the command.


==Options==
<span id="Options"></span>
==Optionen==


===First task panel===
===First task panel===


The single character keyboard shortcuts mentioned here can be changed. See [[Draft_Preferences|Draft Preferences]].
The single character keyboard shortcuts available in the task panel can be changed. See [[Draft_Preferences|Draft Preferences]]. The shortcuts mentioned here are the default shortcuts.


* To manually enter the coordinates for the base point 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.
* To manually enter the coordinates for the base point 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.
Line 65: Line 69:
* Press {{KEY|Esc}} or the {{Button|Cancel}} button to abort the command.
* Press {{KEY|Esc}} or the {{Button|Cancel}} button to abort the command.


==Notes==
<span id="Notes"></span>
==Hinweise==


* The command can also scale [[Image_CreateImagePlane|Image Planes]], but not in clone mode.
* Der Befehl kann auch [[Image_CreateImagePlane/de|Bildebenen]] skalieren, aber nicht im Klon-Modus.


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


See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]].
Siehe auch: [[Preferences_Editor/de|Voreinstellungseditor]] und [[Draft_Preferences/de|Draft Einstellungen]].


* To change the number of decimals used for the input of scale factors ({{Version|0.20}}) and coordinates: {{MenuCommand|Edit → Preferences... → GeneralUnitsUnits settings → Number of decimals}}.
* To reselect the base objects after copying objects: {{MenuCommand|Edit → Preferences... → DraftGeneralSelect base objects after copying}}.
* To reselect the base objects after copying objects: {{MenuCommand|Edit → Preferences... → Draft → General settings → Draft tools options → Select base objects after copying}}.


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


See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].
Siehe auch: [https://freecad.github.io/SourceDoc/ Autogenerierte API Dokumentation] und [[FreeCAD_Scripting_Basics/de|FreeCAD Grundlagen Skripten]].


To scale objects use the {{incode|scale}} method of the Draft module.
Zum skalieren von Objekten wird die Methode {{incode|scale}} des Draft-Moduls verwendet.


{{Code|code=
{{Code|code=
Line 92: Line 98:
* {{incode|scaled_list}} is returned with the original scaled objects, or with the new copies. It is either a single object or a list of objects, depending on {{incode|objectslist}}.
* {{incode|scaled_list}} is returned with the original scaled objects, or with the new copies. It is either a single object or a list of objects, depending on {{incode|objectslist}}.


Beispiel:
Example:


{{Code|code=
{{Code|code=
Line 114: Line 120:




{{Docnav
{{Docnav/de
|[[Draft_Rotate|Rotate]]
|[[Draft_Rotate/de|Drehen]]
|[[Draft_Mirror|Mirror]]
|[[Draft_Mirror/de|Spiegeln]]
|[[Draft_Workbench|Draft]]
|[[Draft_Workbench/de|Draft]]
|IconL=Draft_Rotate.svg
|IconL=Draft_Rotate.svg
|IconR=Draft_Mirror.svg
|IconR=Draft_Mirror.svg

Latest revision as of 05:06, 9 January 2024

Draft Skalieren

Menüeintrag
Änderung → Skalieren
Arbeitsbereich
Draft, Arch
Standardtastenkürzel
S C
Eingeführt in Version
-
Siehe auch
Draft UnterelementHervorheben, Draft Klonen

Beschreibung

Das Werkzeug Draft Skalieren skaliert oder kopiert ausgewählte Objekte von einem Basispunkt aus. Im Unterelement-Modus skaliert der Befehl ausgewählte Punkte und Kanten von Draft Linien und Draft-Drähten.

Der Befehl kann auf 2D-Formen angewendet werden, die mit den Arbeitsbereichen Draft oder Sketcher erstellt wurden, kann aber auch mit vielen Arten von 3D-Objekten benutzt werden, wie denen, die mit den Arbeitsbereichen Part oder Arch erzeugt wurden.

Skalieren eines Objekts von einen Basispunkt aus

Anwendung

Siehe auch: Draft Fangen und Draft Beschränken.

  1. Optionally select one or more objects, or one or more subelements of Draft Lines or Draft Wires.
  2. There are several ways to invoke the command:
    • Press the Scale button.
    • Select the Modification → Scale option from the menu.
    • Use the keyboard shortcut: S then C.
  3. If you have not yet selected an object: select an object in the 3D view.
  4. The Scale task panel opens. See Options for more information.
  5. If subelements have been selected: check the Modify subelements checkbox to switch on subelement mode.
  6. Pick the base point in the 3D view, or type coordinates and press the Enter point button.
  7. Enter the X, Y and Z scale factors.
  8. Press Enter or the OK button to finish the command.

Optionen

First task panel

The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts.

  • To manually enter the coordinates for the base point 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 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 the Close button to abort the command.

Second task panel

  • Enter the X, Y and Z factors to define the scaling. The values must be larger than zero.
  • Check the Uniform scaling checkbox to lock the X, Y and Z factors to the same value.
  • If the Working plane orientation checkbox is checked the scale factors are relative to the working plane coordinate system, else they are relative to the global coordinate system.
  • If the Copy checkbox is checked a scaled copy of the original object is created. This only works for Draft objects that have a DatenPoints property, such as Draft Wires.
  • If the Modify subelements checkbox is checked the command will use the selected subelements instead of the whole objects. The subelements must belong to Draft Lines or Draft Wires.
  • If the Create a clone checkbox is checked scaled clones of the original objects are created. This works for all object types. For objects that are not Draft objects, or for Draft objects that do not have a DatenPoints property, this option must be selected.
  • Press the Pick from/to points button and pick two additional points in the 3D view to calculate the scale factors. This will automatically check the Uniform scaling checkbox. The X, Y and Z scale factors will therefore be equal and will be set to the distance between the base point and the 'from' point, divided by the distance between the base point and the 'to' point.
  • Press Esc or the Cancel button to abort the command.

Hinweise

  • Der Befehl kann auch Bildebenen skalieren, aber nicht im Klon-Modus.

Einstellungen

Siehe auch: Voreinstellungseditor und Draft Einstellungen.

  • To reselect the base objects after copying objects: Edit → Preferences... → Draft → General → Select base objects after copying.

Skripten

Siehe auch: Autogenerierte API Dokumentation und FreeCAD Grundlagen Skripten.

Zum skalieren von Objekten wird die Methode scale des Draft-Moduls verwendet.

scaled_list = scale(objectslist, scale=Vector(1,1,1), center=Vector(0,0,0), copy=False)
  • objectslist contains the objects to be scaled. It is either a single object or a list of objects.
  • scale is the vector that specifies by the X, Y and Z scale factors.
  • center is the center point of the scaling operation.
  • If copy is True copies are created instead of scaling the original objects.
  • scaled_list is returned with the original scaled objects, or with the new copies. It is either a single object or a list of objects, depending on objectslist.

Beispiel:

import FreeCAD as App
import Draft

doc = App.newDocument()

pts = [App.Vector(0, 0, 0), App.Vector(500, 500, 0), App.Vector(600, 0, 0)]
wire1 = Draft.make_wire(pts, closed=True)
doc.recompute()

scale1 = App.Vector(2.3, 0.75, 0)
wire2 = Draft.scale(wire1, scale1, copy=True)
doc.recompute()

scale2 = App.Vector(-2, -1.5, 0)
wires = Draft.scale([wire1, wire2], scale2, copy=True)
doc.recompute()