Draft Scale: Difference between revisions
mNo edit summary |
(More information on how to use) |
||
Line 22: | Line 22: | ||
<!--T:5--> |
<!--T:5--> |
||
# Select objects you wish to scale |
# Select objects you wish to scale. |
||
# Press the {{ |
# Press the {{Button|[[Image:Draft Scale.svg|16px]] [[Draft Scale]]}} button, or press {{KEY|S}} then {{KEY|C}} keys. |
||
# 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. |
||
# |
# Change the X factor, Y factor, or Z factor and press {{KEY|Enter}} or the {{Button|OK}} button to finish the scaling. |
||
==Options== <!--T:6--> |
==Options== <!--T:6--> |
Revision as of 17:37, 13 November 2018
Draft Scale |
Menu location |
---|
Draft → Scale |
Workbenches |
Draft, Arch |
Default shortcut |
S C |
Introduced in version |
- |
See also |
Draft Clone, Draft Offset |
Description
The Scale tool scales selected objects around a base point. If no object is selected, you will be invited to select one.
How to use
- Select objects you wish to scale.
- Press the Draft Scale button, or press S then C keys.
- 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.
- Change the X factor, Y factor, or Z factor and press Enter or the OK button to finish the scaling.
Options
- To enter base point coordinates manually, simply enter the numbers, then press ENTER between each X, Y and Z component.
- Fill in the X, Y and Z scaling value to define the scaling.
- Checking the "Uniform scaling" option will lock the X, Y and Z to the same value
- The "Relative to Working Plane" option will consider X, Y and Z scaling values to be taken along he current Working Plane. Otherwise, global X, Y and Z directions are used.
- The result of the scaling operation can be:
- A Draft Clone of the original objects, which doesn't modify the original objects, but allow you to change the scaling factor manually later on (works for all object types)
- The original objects have their size modified (will only work with Draft objects or non-parametric Part shapes)
- A scaled copy of the base objects is produced (will work for all object types, but only the copies of Draft objects will be parametric)
Scripting
The Scale tool can by used in macros and from the python console by using the following function:
scale (objects,vector,[center,copy,legacy])
- Scales the objects contained in objects (that can be a list of objects or an object) of the given scale factors defined by the given vector (in X, Y and Z directions) around the given center.
- If legacy is True, direct (old) mode is used, otherwise a parametric copy is made.
- If copy is True, the actual objects are not moved, but copies are created instead.
- The objects (or their copies) are returned.
Example:
import FreeCAD,Draft
Draft.scale(FreeCAD.ActiveDocument.ActiveObject,FreeCAD.Vector(2,2,2))