Draft Array/es: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
⚫ | |||
{{GuiCommand/es|Name=Draft_Array|Name/es=Draft Array|Workbenches=[[Draft Module/es|Boceto]], [[Arch Module/es|Arquitectura]]|MenuLocation=Boceto → Matriz}} |
{{GuiCommand/es|Name=Draft_Array|Name/es=Draft Array|Workbenches=[[Draft Module/es|Boceto]], [[Arch Module/es|Arquitectura]]|MenuLocation=Boceto → Matriz}} |
||
Line 7: | Line 8: | ||
[[Image:Draft_Array_example.jpg|400px]] |
[[Image:Draft_Array_example.jpg|400px]] |
||
<div class="mw-translate-fuzzy"> |
|||
==Utilizaación== |
==Utilizaación== |
||
# Selecciona un objeto a partir del que desees crear una matriz |
# Selecciona un objeto a partir del que desees crear una matriz |
||
# Presiona el botón {{KEY|[[Image:Draft Array.png|16px]] [[Draft Array/es|Matriz]]}} |
# Presiona el botón {{KEY|[[Image:Draft Array.png|16px]] [[Draft Array/es|Matriz]]}} |
||
</div> |
|||
==Scripting== |
==Scripting== |
||
The Array tool can by used in [[macros]] and from the python console by using one of the following functions, depending if you wish to obtain simple, standalone copies of your base object, or a parametric array object, that stays linked to the original object. |
The Array tool can by used in [[macros]] and from the python console by using one of the following functions, depending if you wish to obtain simple, standalone copies of your base object, or a parametric array object, that stays linked to the original object. |
||
<div class="mw-translate-fuzzy"> |
|||
==Opciones== |
==Opciones== |
||
* La matriz se inicia como ortogonal por defecto, puedes cambiar su modo en las propiedades. |
* La matriz se inicia como ortogonal por defecto, puedes cambiar su modo en las propiedades. |
||
</div> |
|||
{{Code|code= |
{{Code|code= |
||
array (objectslist,xvector,yvector,xnum,ynum,[zvector,znum]) |
array (objectslist,xvector,yvector,xnum,ynum,[zvector,znum]) |
||
}} |
}} |
||
<div class="mw-translate-fuzzy"> |
|||
==Propiedades== |
==Propiedades== |
||
* {{PropertyData|Array Type}}: Especifica el tipo de matriz orto o polar |
* {{PropertyData|Array Type}}: Especifica el tipo de matriz orto o polar |
||
</div> |
|||
{{Code|code= |
{{Code|code= |
||
array (objectslist,center,totalangle,totalnum) |
array (objectslist,center,totalangle,totalnum) |
||
}} |
}} |
||
<div class="mw-translate-fuzzy"> |
|||
Ejemplo: |
Ejemplo: |
||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
Para matrices polares: |
Para matrices polares: |
||
Line 35: | Line 45: | ||
* {{PropertyData|Angle}}: El ángulo a cubrir con las copias |
* {{PropertyData|Angle}}: El ángulo a cubrir con las copias |
||
* {{PropertyData|Number Polar}}: El número de copias |
* {{PropertyData|Number Polar}}: El número de copias |
||
</div> |
|||
Para matrices ortogonales: |
Para matrices ortogonales: |
||
Line 40: | Line 51: | ||
makeArray (object,xvector,yvector,xnum,ynum) |
makeArray (object,xvector,yvector,xnum,ynum) |
||
}} |
}} |
||
<div class="mw-translate-fuzzy"> |
|||
For polar array: |
|||
==Archivos de guión== |
|||
La herramienta Matriz se puede utilizar en [[macros/es|macros]] y desde la consola de Python utilizando la siguiente función: |
|||
</div> |
|||
{{Code|code= |
{{Code|code= |
||
makeArray (object,center,totalangle,totalnum) |
makeArray (object,center,totalangle,totalnum) |
||
}} |
}} |
||
<div class="mw-translate-fuzzy"> |
|||
* Creates an array of the given object with, in case of rectangular array, xnum of iterations in the x direction at xvector distance between iterations, and same for y direction with yvector and ynum. In case of polar array, center is a vector, totalangle is the angle to cover (in degrees) and totalnum is the number of objects, including the original. |
|||
Para matrices ortogonales: |
|||
* The result of this function is a parametric Draft Array object. |
|||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
Para matrices polares: |
Para matrices polares: |
||
</div> |
|||
{{Code|code= |
{{Code|code= |
||
import FreeCAD,Draft |
import FreeCAD,Draft |
||
Line 54: | Line 72: | ||
}} |
}} |
||
{{clear}} |
{{clear}} |
||
⚫ |
Revision as of 20:37, 2 August 2018
Draft Array |
Ubicación en el Menú |
---|
Boceto → Matriz |
Entornos de trabajo |
Boceto, Arquitectura |
Atajo de teclado por defecto |
Ninguno |
Introducido en versión |
- |
Ver también |
Ninguno |
Descripción
La herramienta Matriz crea matrices ortogonalea (3 ejes) o polares a partir de los objetos seleccionados. Si no se selecciona ningún objeto, te solicitará que selecciones uno.
Utilizaación
- Selecciona un objeto a partir del que desees crear una matriz
- Presiona el botón Matriz
Scripting
The Array tool can by used in macros and from the python console by using one of the following functions, depending if you wish to obtain simple, standalone copies of your base object, or a parametric array object, that stays linked to the original object.
Opciones
- La matriz se inicia como ortogonal por defecto, puedes cambiar su modo en las propiedades.
array (objectslist,xvector,yvector,xnum,ynum,[zvector,znum])
Propiedades
- DatosArray Type: Especifica el tipo de matriz orto o polar
array (objectslist,center,totalangle,totalnum)
Ejemplo:
Para matrices polares:
- DatosAxis: La dirección normal a la circunferencia de la matriz
- DatosCenter: El punto centro de la matriz
- DatosAngle: El ángulo a cubrir con las copias
- DatosNumber Polar: El número de copias
Para matrices ortogonales:
makeArray (object,xvector,yvector,xnum,ynum)
Archivos de guión
La herramienta Matriz se puede utilizar en macros y desde la consola de Python utilizando la siguiente función:
makeArray (object,center,totalangle,totalnum)
Para matrices ortogonales:
Para matrices polares:
import FreeCAD,Draft
Draft.array(FreeCAD.ActiveDocument.ActiveObject,FreeCAD.Vector(2,0,0),FreeCAD.Vector(0,2,0),2,2)