Draft Scale/tr

Description
The Draft Scale command scales or copies selected objects around a base point. In subelement mode the command scales selected points and edges of Draft Lines and Draft Wires.

The command can be used on 2D objects created with the Draft Workbench or Sketcher Workbench, but also on many 3D objects such as those created with the Part Workbench, PartDesign Workbench or Arch Workbench.



Usage
See also: Draft Snap and Draft Constrain.


 * 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:
 * 3) * Press the button.
 * 4) * Select the option from the menu.
 * 5) * Use the keyboard shortcut: then.
 * 6) If you have not yet selected an object: select an object in the 3D view.
 * 7) The  task panel opens. See Options for more information.
 * 8) If subelements have been selected: check the  checkbox to switch on subelement mode.
 * 9) Pick the base point in the 3D view, or type coordinates and press the  button.
 * 10) Enter the X, Y and Z scale factors.
 * 11) Press  or the  button to finish the command.

First task panel
The single character keyboard shortcuts mentioned here can be changed. See Draft Preferences.


 * To manually enter the coordinates for the base point enter the X, Y and Z component, and press after each. Or you can press the  button when you have the desired values. It is advisable to move the pointer out of the 3D view before entering coordinates.
 * The checkbox has no purpose for this command.
 * Press or click the  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.
 * The remaining checkboxes in this task panel are ignore by the command.
 * Press to switch Draft snapping on or off.
 * Press the 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 checkbox to lock the X, Y and Z factors to the same value. For this setting to take effect one of the scale factors has to be changed. Alternatively you can click in the inputbox with the desired scale and press  to finish the command.
 * If the 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 checkbox is checked a scaled copy of the original object is created. This only works for Draft objects that have a  property, such as Draft Wires.
 * If the 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 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  property, this option  be selected.
 * Press the button and pick two additional points in the 3D view to calculate the scale factors. This will automatically check the  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 or the  button to abort the command.

Preferences
See also: Preferences Editor and Draft Preferences.


 * To change the number of decimals used for the input of coordinates:.
 * To change the number of decimals used for the input of scale factors:.
 * To store and reuse the same copy mode setting across commands:.
 * To reselect the base objects after copying objects:.

Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To scale objects use the method of the Draft module.


 * contains the objects to be scaled. It is either a single object or a list of objects.
 * is the vector that specifies by the X, Y and Z scale factors.
 * is the center point of the scaling operation.
 * If is  copies are created instead of scaling the original objects.
 * 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.

Example: