Draft Scale/de: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(14 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
{{GuiCommand/de|Name=Draft Scale|Name/de=Skalieren|Workbenches=[[Draft Module/de|Draft]], [[Arch Module/de|Arch]]|MenuLocation=Draft → Scale|Shortcut=S C|SeeAlso=[[Draft Clone/de|Klonen]]}} |
|||
<div class="mw-translate-fuzzy"> |
|||
{{Docnav/de|[[Draft_Downgrade|Downgrade]]|[[Draft_Edit|Edit]]|[[Draft_Module|Draft]]|IconL=Draft_Downgrade.svg|IconC=Workbench_Draft.svg|IconR=Draft_Edit.svg}} |
|||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
==Description== |
|||
{{GuiCommand/de |
|||
|Name=Draft Scale|Name/de=Skalieren |
|||
|MenuLocation=Entwurf → Skalieren |
|||
|Workbenches=[[Draft Module/de|Draft]], [[Arch Module/de|Arch]] |
|||
|Shortcut={{KEY|S}} {{KEY|C}} |
|||
|SeeAlso=[[Draft Clone/de|Klonen]], [[Draft Offset/de|Versetzen]] |
|||
}} |
|||
</div> |
|||
==Beschreibung== |
|||
This tool scales selected object(s) around a base point. If no object is selected, you will be invited to select one. It can also be used to mirror objects. |
|||
<div class="mw-translate-fuzzy"> |
|||
Das Skalierungswerkzeug skaliert oder kopiert ausgewählte Objekte um einen Basispunkt. |
|||
</div> |
|||
Das Skalierungswerkzeug kann eine Kopie oder einen [[Draft Clone/de|Entwurf klonen]] in einem definierten Maßstab erstellen. Verwende [[Draft Offset/de|Entwurf Versatz]], um eine skalierte Kopie eines Drahtsatzes mit einem bestimmten Versatz zu erstellen. Eine einfache Kopie ohne Skalierung kann mit [[Draft Move/de|Draft Move]] erstellt werden. |
|||
This tool can be used on 2D shapes created with the [[Image:Workbench_Draft.svg|16px]] [[Draft Workbench|Draft Workbench]] but can also be used on many types of 3D objects such as those created with the [[Image:Workbench_Part.svg|16px]] [[Part Workbench|Part]] or [[Image:Workbench_PartDesign.svg|16px]] [[PartDesign Workbench|PartDesign]] workbenches. |
|||
[[Image:Draft_Scale_example.jpg|400px]] |
[[Image:Draft_Scale_example.jpg|400px]] |
||
{{Caption|Scaling one object from a reference point to a second point}} |
|||
== |
==Usage== |
||
# Select objects you wish to scale |
# Select the objects that you wish to scale. |
||
# Press the {{ |
# Press the {{Button|[[Image:Draft Scale.svg|16px]] [[Draft Scale|Draft Scale]]}} button, or press {{KEY|S}} then {{KEY|C}} keys. 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]] |
# 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. This serves as the base point of the operation. |
||
# Set the X, Y, and Z factors, and the appropriate result options, then press {{KEY|Enter}} or the {{Button|OK}} button to finish the operation. |
|||
# Click another point on the 3D view, or type a [[Draft_Coordinates|coordinate]] |
|||
==Options== |
==Options== |
||
* To enter coordinates manually, simply enter the numbers, then press {{KEY| |
* To enter coordinates manually, simply enter the numbers, then press {{KEY|Enter}} between each X, Y and Z component. You can press the {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} button when you have the desired values to insert the point. |
||
* Fill in the X, Y and Z factors to define the scaling along that direction. |
|||
* The x, y and z components of the second point define the scale factor. For example, (1,1,1) would do nothing, (2,2,2) would scale 2x in all directions, (-1,1,1) would mirror in x direction. |
|||
** Click the "Uniform scaling" checkbox to lock the X, Y and Z factors to the same value. |
|||
* Pressing {{KEY|ALT}} or {{KEY|C}} or clicking the {{KEY|'''Copy'''}} button will make a copy of the objects, instead of scaling the original. If you keep {{KEY|ALT}} pressed after clicking the second point, you will be able to place more copies, until you release the {{KEY|ALT}} key. |
|||
** Click the "Working plane orientation" checkbox to lock the X, Y and Z scaling along the current [[Draft SelectPlane|Working Plane]]; otherwise, global X, Y and Z directions are used. |
|||
* Press {{KEY|CTRL}} while drawing to force [[Draft_Snap|snapping]] your point to the nearest snap location, independently of the distance. |
|||
* Three options control the result of the scaling operation: |
|||
* Pressing {{KEY|SHIFT}} will lock x and y values together, so the shape is not deformed. |
|||
** Create a clone. A [[Draft Clone|Draft Clone]] of the original object will be created. This will work for all object types. |
|||
* Press {{KEY|ESC}} or the {{KEY|'''Cancel'''}} button to abort the current command. |
|||
::{{Emphasis|Note:}} even if the scaling factors are left at their default values (1.0, 1.0, 1.0), once the clone is created you will be able to change these factors manually in the [[property editor|property editor]]. |
|||
* The resulting object is a [[Draft Clone]], which allows you to change the scale values after it has been created. |
|||
:* Modify original. The original object will have its size modified. This will only work with [[Draft Workbench|Draft]] objects and non-parametric [[Part Workbench|Part]] shapes. |
|||
* Mirroring objects works by inverting the sign of one of the directions. For example, (-1,1,1) mirrors horizontally (on the X axis), and (1,-1,1) vertically (on the Y axis). |
|||
:* Create a copy. A scaled copy of the original object will be created. This will work for all object types, but only the copies of [[Draft Workbench|Draft]] objects will be parametric. |
|||
::{{Emphasis|Note:}} a copy is a completely different object from the original shape; it will be created at the specified scale, and then will have its own set of properties. On the other hand, a [[Draft Clone|Draft Clone]] is linked to the original shape and the only property that can be changed is the scale. |
|||
==Scripting== |
==Scripting== |
||
{{Emphasis|See also:}} [[Draft API|Draft API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]]. |
|||
The Scale tool can |
The Scale tool can be used in [[macros|macros]] and from the [[Python|Python]] console by using the following function: |
||
{{Code|code= |
{{Code|code= |
||
scale ( |
scaledlist = scale(objectslist, delta=Vector(1,1,1), center=Vector(0,0,0), copy=False, legacy=False) |
||
}} |
}} |
||
* Scales the objects |
* Scales the objects in {{incode|objectslist}} by the factors specified by the components of {{incode|delta}}, defined as a {{incode|FreeCAD.Vector}}, and using {{incode|center}} as base point. |
||
** {{incode|objectslist}} is either a single object or a list of objects. |
|||
⚫ | |||
* If copy is True |
* If {{incode|copy}} is {{incode|True}} copies are created instead of modifying the original objects. |
||
⚫ | |||
* The objects (or their copies) are returned. |
|||
* {{incode|scaledlist}} is returned with the original scaled objects, or with the new clones. |
|||
** {{incode|scaledlist}} is either a single object or a list of objects, depending on the input {{incode|objectslist}}. |
|||
Example: |
Example: |
||
{{Code|code= |
{{Code|code= |
||
import FreeCAD,Draft |
import FreeCAD, Draft |
||
Draft.scale(FreeCAD.ActiveDocument.ActiveObject,FreeCAD.Vector(2,2,2)) |
|||
Polygon1 = Draft.makePolygon(3, radius=1200) |
|||
delta1 = FreeCAD.Vector(2.3, 0.75, 0) |
|||
clone_1 = Draft.scale(Polygon1, delta1, copy=True) |
|||
Polygon2 = Draft.makePolygon(5, radius=750) |
|||
delta2 = FreeCAD.Vector(-2, -1.5, 0) |
|||
clone_2 = Draft.scale([Polygon1, Polygon2], delta2, copy=True) |
|||
Draft.move(clone_2, FreeCAD.Vector(3500, 1000, 0)) |
|||
}} |
}} |
||
{{Docnav |
|||
⚫ | |||
|[[Draft_Downgrade|Downgrade]] |
|||
|[[Draft_Edit|Edit]] |
|||
|[[Draft_Module|Draft]] |
|||
|IconL=Draft_Downgrade.svg |
|||
|IconC=Workbench_Draft.svg |
|||
|IconR=Draft_Edit.svg |
|||
}} |
|||
{{Draft Tools navi{{#translation:}}}} |
|||
{{Userdocnavi{{#translation:}}}} |
|||
{{clear}} |
Revision as of 04:29, 21 February 2020
Skalieren |
Menüeintrag |
---|
Entwurf → Skalieren |
Arbeitsbereich |
Draft, Arch |
Standardtastenkürzel |
S C |
Eingeführt in Version |
- |
Siehe auch |
Klonen, Versetzen |
Beschreibung
Das Skalierungswerkzeug skaliert oder kopiert ausgewählte Objekte um einen Basispunkt.
Das Skalierungswerkzeug kann eine Kopie oder einen Entwurf klonen in einem definierten Maßstab erstellen. Verwende Entwurf Versatz, um eine skalierte Kopie eines Drahtsatzes mit einem bestimmten Versatz zu erstellen. Eine einfache Kopie ohne Skalierung kann mit Draft Move erstellt werden.
This tool can be used on 2D shapes created with the Draft Workbench but can also be used on many types of 3D objects such as those created with the Part or PartDesign workbenches.
Scaling one object from a reference point to a second point
Usage
- Select the objects that you wish to scale.
- Press the Draft Scale button, or press S then C keys. If no object is selected, you will be invited to select one.
- Click a first point on the 3D view, or type a coordinate and press the add point button. This serves as the base point of the operation.
- Set the X, Y, and Z factors, and the appropriate result options, then press Enter or the OK button to finish the operation.
Options
- To enter coordinates manually, simply enter the numbers, then press Enter between each X, Y and Z component. You can press the add point button when you have the desired values to insert the point.
- Fill in the X, Y and Z factors to define the scaling along that direction.
- Click the "Uniform scaling" checkbox to lock the X, Y and Z factors to the same value.
- Click the "Working plane orientation" checkbox to lock the X, Y and Z scaling along the current Working Plane; otherwise, global X, Y and Z directions are used.
- Three options control the result of the scaling operation:
- Create a clone. A Draft Clone of the original object will be created. This will work for all object types.
- Note: even if the scaling factors are left at their default values (1.0, 1.0, 1.0), once the clone is created you will be able to change these factors manually in the property editor.
- Modify original. The original object will have its size modified. This will only work with Draft objects and non-parametric Part shapes.
- Create a copy. A scaled copy of the original object will be created. This will work for all object types, but only the copies of Draft objects will be parametric.
- Note: a copy is a completely different object from the original shape; it will be created at the specified scale, and then will have its own set of properties. On the other hand, a Draft Clone is linked to the original shape and the only property that can be changed is the scale.
Scripting
See also: Draft API and FreeCAD Scripting Basics.
The Scale tool can be used in macros and from the Python console by using the following function:
scaledlist = scale(objectslist, delta=Vector(1,1,1), center=Vector(0,0,0), copy=False, legacy=False)
- Scales the objects in
objectslist
by the factors specified by the components ofdelta
, defined as aFreeCAD.Vector
, and usingcenter
as base point.objectslist
is either a single object or a list of objects.
- If
copy
isTrue
copies are created instead of modifying the original objects. - If
legacy
isTrue
, direct copy mode is used (outdated), otherwise a parametric copy is made. scaledlist
is returned with the original scaled objects, or with the new clones.scaledlist
is either a single object or a list of objects, depending on the inputobjectslist
.
Example:
import FreeCAD, Draft
Polygon1 = Draft.makePolygon(3, radius=1200)
delta1 = FreeCAD.Vector(2.3, 0.75, 0)
clone_1 = Draft.scale(Polygon1, delta1, copy=True)
Polygon2 = Draft.makePolygon(5, radius=750)
delta2 = FreeCAD.Vector(-2, -1.5, 0)
clone_2 = Draft.scale([Polygon1, Polygon2], delta2, copy=True)
Draft.move(clone_2, FreeCAD.Vector(3500, 1000, 0))
- 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, Start, Surface, TechDraw, Test Framework, Web