Draft Scale/es: Difference between revisions
(Created page with "Ejemplo:") |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
{{GuiCommand |
{{GuiCommand|Name=Draft Scale|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]|MenuLocation=Draft → Scale|Shortcut=S C|SeeAlso=[[Draft Clone|Draft Clone]]}} |
||
==Descripción== |
==Descripción== |
||
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. |
|||
Esta herramienta escala los objetos seleccionados con respecto a un punto base. Si no se han seleccionado objetos, te invitará a seleccionarlos. |
|||
[[Image:Draft_Scale_example.jpg|400px]] |
[[Image:Draft_Scale_example.jpg|400px]] |
||
Line 16: | Line 16: | ||
==Opciones== |
==Opciones== |
||
* |
* To enter coordinates manually, simply enter the numbers, then press {{KEY|ENTER}} between each X, Y and Z component. |
||
* |
* 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. |
||
* |
* 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. |
||
* |
* Press {{KEY|CTRL}} while drawing to force [[Draft_Snap|snapping]] your point to the nearest snap location, independently of the distance. |
||
* |
* Pressing {{KEY|SHIFT}} will lock x and y values together, so the shape is not deformed. |
||
* |
* Press {{KEY|ESC}} or the {{KEY|'''Cancel'''}} button to abort the current command. |
||
* |
* The resulting object is a [[Draft Clone]], which allows you to change the scale values after it has been created. |
||
* 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). |
|||
==Programación== |
==Programación== |
Revision as of 10:46, 19 June 2014
Draft Scale |
Menu location |
---|
Draft → Scale |
Workbenches |
Draft, Arch |
Default shortcut |
S C |
Introduced in version |
- |
See also |
Draft Clone |
Descripción
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.
Utilización
- Selecciona los objetos que quieres escalar
- Presiona el botón Escala, o presiona las teclas S y C
- Indica un primer punto en la vista 3D, o escribe unas coordenadas
- Indica otro punto en la vista 3D, o escribe unas coordenadas
Opciones
- To enter coordinates manually, simply enter the numbers, then press ENTER between each X, Y and Z component.
- 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.
- Pressing ALT or C or clicking the Copy button will make a copy of the objects, instead of scaling the original. If you keep ALT pressed after clicking the second point, you will be able to place more copies, until you release the ALT key.
- Press CTRL while drawing to force snapping your point to the nearest snap location, independently of the distance.
- Pressing SHIFT will lock x and y values together, so the shape is not deformed.
- Press ESC or the Cancel button to abort the current command.
- The resulting object is a Draft Clone, which allows you to change the scale values after it has been created.
- 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).
Programación
La herramienta de Escalar se puede utilizar en macros y desde la consola de Python utilizando la siguiente instrucción:
scale (objects,vector,[center,copy,legacy])
- Escala los objetos contenidos en objects (que pueden ser una lista de objetos o un objeto) por los factores de escala definidos por el vector dado (en direcciones X, Y y Z) con respecto al centro dado.
- Si legacy es True, se utiliza el modo directo (antiguo), en caso contrario se crea una copia paramétrica.
- Si copy es True, los objetos en realidad no se mueven sino que se crean copias en su lugar.
- Devuelve los objetos (o sus copias).
Ejemplo:
import FreeCAD,Draft
Draft.scale(FreeCAD.ActiveDocument.ActiveObject,FreeCAD.Vector(2,2,2))