Draft Array

Description
The Array tool creates an orthogonal (3-axes) or polar array from a selected object. If no object is selected, you will be invited to select one.



How to use

 * 1) Select an object you wish to make an array with
 * 2) Press the  button

Options

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

Properties

 * : Specifies the type of the array, ortho or polar

For orthogonal arrays:


 * : The interval between each copy on the first axis
 * : The interval between each copy on the second axis
 * : The interval between each copy on the third axis
 * : The number of copies on the first axis
 * : The number of copies on the second axis
 * : The number of copies on the third axis

For polar arrays:


 * : The normal direction of the array circle
 * : The center point of the array
 * : The angle to cover with copies
 * : 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.

array (objectslist,xvector,yvector,xnum,ynum,[zvector,znum]) for rectangular array, or array (objectslist,center,totalangle,totalnum) for polar array: 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

makeArray (object,xvector,yvector,xnum,ynum) for rectangular array, or makeArray (object,center,totalangle,totalnum) for polar array: 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 functionis 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)