|Расположение в меню|
|Черчение → Масштаб|
|Представлено в версии|
The Scale tool scales or copies selected objects around a base point.
The Scale tool can produce a copy or a Draft Clone at a defined scale. Use Draft Offset to produce a scaled copy of a wire set at a certain offset. A simple copy with no scaling can be produced with Draft Move.
Scaling one object from a reference point to a second point
How to use
- Select the objects that you wish to scale.
- Press the button, or press then 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 button. This serves as the base point of the operation.
- Set the X, Y, and Z factors, and the appropriate result options, then press or the button to finish the operation.
- To enter coordinates manually, simply enter the numbers, then press between each X, Y and Z component. You can press the 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), a clone allows you 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.
scaledlist = scale(objectslist, delta=Vector(1,1,1), center=Vector(0,0,0), copy=False, legacy=False)
- Scales the objects in
objectslistby the factors specified by the components of
delta, defined as a
FreeCAD.Vector, and using
centeras base point.
objectslistis either a single object or a list of objects.
Truecopies are created instead of modifying the original objects.
True, direct copy mode is used (outdated), otherwise a parametric copy is made.
scaledlistis returned with the original scaled objects, or with the new clones.
scaledlistis either a single object or a list of objects, depending on the input
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))