Borrador Arreglo

From FreeCAD Documentation
Revision as of 16:20, 16 February 2014 by Renatorivo (talk | contribs) (Created page with "==Utilizaación== # Selecciona un objeto a partir del que desees crear una matriz # Presiona el botón {{KEY|16px Matriz}}")

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

  1. Selecciona un objeto a partir del que desees crear una matriz
  2. Presiona el botón Matriz

Options

  • The array starts as orthogonal by default, you can then change its mode in the properties.

Properties

  • DatosArray Type: Specifies the type of the array, ortho or polar

For orthogonal arrays:

  • DatosInterval X: The interval between each copy on the first axis
  • DatosInterval Y: The interval between each copy on the second axis
  • DatosInterval Z: The interval between each copy on the third axis
  • DatosNumber X: The number of copies on the first axis
  • DatosNumber Y: The number of copies on the second axis
  • DatosNumber Z: The number of copies on the third axis

For polar arrays:

  • DatosAxis: The normal direction of the array circle
  • DatosCenter: The center point of the array
  • DatosAngle: The angle to cover with copies
  • DatosNumber Polar: The number of copies

Scripting

The Array tool can by used in macros and from the python console by using one of the following functions.

For rectangular array:

 array (objectslist,xvector,yvector,xnum,ynum,[zvector,znum])

For polar array:

 array (objectslist,center,totalangle,totalnum)
  • Creates an array of the objects contained in list (that can be an object or a list of objects) 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.
  • This function produces standalone copies of the base object(s)

Or

For rectangular array:

 makeArray (object,xvector,yvector,xnum,ynum)

For polar array:

 makeArray (object,center,totalangle,totalnum)
  • 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.
  • The result of this function is a parametric Draft Array object.

Example:

 import FreeCAD,Draft
 Draft.array(FreeCAD.ActiveDocument.ActiveObject,FreeCAD.Vector(2,0,0),FreeCAD.Vector(0,2,0),2,2)