Draft OrthoArray/en

Description
The tool creates an orthogonal (3-axes) array from a selected object.

This tool can be used on 2D shapes created with the Draft Workbench but can also be used on many types of 3D objects such as those created with the Part Workbench or PartDesign Workbench. It works on all objects that have a Part TopoShape. It can also create App Links instead of simple copies.


 * To create polar and circular arrays directly, use the corresponding and  tools
 * To position copies along a path use
 * To position copies at specified points use
 * To create copies or clones, and manually place them use, , and.

This command deprecates the previously existing, as well as the short lived, tools.



Usage

 * 1) Select an object with which you wish to make an array.
 * 2) Press the  button. If no object is selected, you will be invited to select one.
 * 3) The task panel is launched, where you can select the number of elements in each X, Y, Z direction; and the interval between each created element.
 * 4) Press  to complete the operation.

Once the array in created, you can select it in the tree view, so you can change its properties in the property editor, including changing the number of the elements, or even changing its type to "polar" or "circular".

Each element in the array is an exact clone of the original object, but the entire array is considered a single unit in terms of properties and appearance.

Options

 * Interval X: the values of displacement for the copies in the X direction. To create strictly rectangular arrays, the Y and Z values should be zero.
 * Interval Y: the values of displacement for the copies in the Y direction. To create strictly rectangular arrays, the X and Z values should be zero.
 * Interval Z: the values of displacement for the copies in the Z direction. To create strictly rectangular arrays, the X and Y values should be zero.
 * Number of elements: the elements in the X, Y, and Z directions. A copy of the original object is produced, so this number must be at least in every direction.
 * Fuse: if it is checked, the resulting objects in the array will fuse together if they touch each other. This only works if "Link array" is unchecked.
 * Link array: if it is checked, the resulting array will be a "Link array". This array internally uses App Link objects, so it is more efficient when handling many copies of complex shapes. However, in this case, the objects cannot be fused together.

if a Link array is created, this object cannot be converted to a regular array. And similarly, a regular array cannot be converted to a Link array. Therefore, you must choose the type of array that you want at creation time.

Properties
For all types of arrays:
 * : specifies the type of array to create,, , or.
 * : specifies the object to duplicate in the array.
 * : it defaults to ; if it is, and the copies intersect with each other, they will be fused together into a single shape. This only works if the initial array was not a "Link array".

For orthogonal arrays:
 * : specifies the interval between each copy on the X axis.
 * : specifies the interval between each copy on the Y axis.
 * : specifies the interval between each copy on the Z axis.
 * : specifies the number of copies on the X axis.
 * : specifies the number of copies on the Y axis.
 * : specifies the number of copies on the Z axis.

For polar arrays:
 * : specifies the aperture of the circular arc to cover with copies; use 360 to cover an entire circle.
 * : specifies the normal direction of the array circle.
 * : specifies the center point of the array circle.
 * : specifies the interval between each copy on the direction.
 * : specifies the number of copies to place in the circular arrangement.

For circular arrays:
 * : the number of circular layers to create. It must be at least one.
 * : the distance from one element in a circular layer to the next element in another layer.
 * : a number that indicates the symmetry lines in the circular layers. This number changes the distribution of the objects and making it very large may eliminate the central layers of copies.
 * : the distance from one element in a circular layer to the next element in the same layer.

Link arrays
In addition to the previous properties, these properties only appear when the array is originally created as a Link array.


 * : it is the total number of objects in the array including the original object.
 * : it defaults to ; if it is it will show every element of the array in the tree view.


 * : specifies the scale of the resulting array, as if it were a Clone.
 * : it defaults to if it is, will be able to be transformed.

Scripting
Draft API and FreeCAD Scripting Basics.

The Array tool can be used in macros and from the Python console by using two different functions, depending on if you wish to obtain standalone copies of your base object, or a parametric array object that stays linked to the original object.

Simple array
The basic signature is as follows:

To create a rectangular array, use it like this:

To create a polar array, use it like this:


 * Creates an array from the objects contained in, which can be a single object or a list of objects.
 * In case of a rectangular array,, , and determine the distance between the base points of each copy, in the X, Y, and Z directions; and , , and  are the number of copies in the respective direction.
 * In case of a polar array, defines the center of the array circle,  is the angle of the arc in degrees to cover with copies, and  is the number of copies to arrange around the circle, including the original object.
 * is returned with the new copies.
 * is either a single object or a list of objects, depending on the input.

This function internally uses and  with.

Example:

Parametric array
The basic signature is as follows:

To create a rectangular array, use it like this:

To create a polar array, use it like this:


 * Creates an object from the given.
 * In case of a rectangular array,, , and determine the distance between the base points of each copy, in the X, Y, and Z directions; and , , and  are the number of copies in the respective direction.
 * In case of a polar array, defines the center of the array circle,  is the angle of the arc in degrees to cover with copies, and  is the number of copies to arrange around the circle, including the original object.
 * If is  the resulting array will be a Link array, and will have additional properties.

Example: