Draft Réseau orthogonal
Draft OrthoArray |
Menu location |
---|
Modification → Array tools → Array |
Workbenches |
Draft |
Default shortcut |
None |
Introduced in version |
0.19 |
See also |
PolarArray, CircularArray, PathArray, PointArray, Clone |
Description
The Draft OrthoArray 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 PolarArray and CircularArray tools; to position copies along a path use PathArray; to position copies at specified points use PointArray; to create copies or clones, and manually place them use Move, Rotate, and Clone.
This command deprecates the previously existing Array, as well as the short lived, LinkArray tools.
Orthogonal array from a solid object.
Usage
- Select an object with which you wish to make an array.
- Press the Draft OrthoArray button. If no object is selected, you will be invited to select one.
- 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.
- Press OK 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
(x, 0, 0)
. - 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
(0, y, 0)
. - 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
(0, 0, z)
. - 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
1
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.
Note: 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
- DonnéesBase: specifies the object to duplicate in the array.
- DonnéesArray Type (
Enumeration
): specifies the type of array to create,"ortho"
,"polar"
, or"circular"
. - DonnéesFuse: if it is
true
, 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:
- DonnéesInterval X: specifies the interval between each copy on the X axis.
- DonnéesInterval Y: specifies the interval between each copy on the Y axis.
- DonnéesInterval Z: specifies the interval between each copy on the Z axis.
- DonnéesNumber X: specifies the number of copies on the X axis.
- DonnéesNumber Y: specifies the number of copies on the Y axis.
- DonnéesNumber Z: specifies the number of copies on the Z axis.
For polar arrays:
- DonnéesAxis: specifies the normal direction of the array circle.
- DonnéesCenter: specifies the center point of the array circle.
- DonnéesAngle: specifies the aperture of the circular arc to cover with copies; use 360 to cover an entire circle.
- DonnéesNumber Polar: specifies the number of copies to place in the circular arrangement.
- DonnéesInterval Axis: specifies the interval between each copy on the DonnéesAxis direction.
For circular arrays:
- DonnéesNumber Circles:
- DonnéesRadial distance:
- DonnéesSymmetry:
- DonnéesTangential Distance:
The number property, either X, Y, Z, or Polar, also includes the original object, so this number will be at least one.
An interval is not a simple distance, but a vector (x, y, z)
. If more than one value is non-zero, the copy will be created in the main direction, but will also be displaced in the other non-zero directions.
For example, if DonnéesInterval X is (2 m, 1 m, 1 m)
, and DonnéesNumber X is 3
, it will create 3 copies in the X direction; the first copy will be at the original position, the second will be displaced 2 m on X, 1 m on Y, and 1 m on Z; the third copy will be displaced 4 m on X, 2 m on Y, and 2 m on Z. Each array element will be moved slightly to one side (Y direction) and up (Z direction) beside the main X direction.
The DonnéesInterval Axis property works in the same way. If the original shape lies on the XY plane, creating a polar array with DonnéesInterval Axis (0, 0, z)
allows you to make spiral arrangements.
Scripting
See also: 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:
array_list = array(objectslist, arg1, arg2, arg3, arg4=None, arg5=None, arg6=None)
To create a rectangular array, use it like this:
array_list = array(objectslist, xvector, yvector, xnum, ynum)
array_list = array(objectslist, xvector, yvector, zvector, xnum, ynum, znum)
To create a polar array, use it like this:
array_list = array(objectslist, center, totalangle, totalnum)
- Creates an array from the objects contained in
objectslist
, which can be a single object or a list of objects. - In case of a rectangular array,
xvector
,yvector
, andzvector
determine the distance between the base points of each copy, in the X, Y, and Z directions; andxnum
,ynum
, andznum
are the number of copies in the respective direction. - In case of a polar array,
center
defines the center of the array circle,totalangle
is the angle of the arc in degrees to cover with copies, andtotalnum
is the number of copies to arrange around the circle, including the original object. array_list
is returned with the new copies.array_list
is either a single object or a list of objects, depending on the inputobjectslist
.
This function internally uses Draft.move()
and Draft.rotate()
with copy=True
.
Example:
import FreeCAD, Draft
Rect = Draft.makeRectangle(1500, 500)
array_list = Draft.array(Rect, FreeCAD.Vector(1600, 0, 0), FreeCAD.Vector(0, 600, 0), 3, 4)
Parametric array
The basic signature is as follows:
Array = makeArray(baseobject, arg1, arg2, arg3, arg4=None, arg5=None, arg6=None, name="Array")
To create a rectangular array, use it like this:
Array = makeArray(baseobject, xvector, yvector, xnum, ynum, name="Array")
Array = makeArray(baseobject, xvector, yvector, zvector, xnum, ynum, znum, name="Array")
To create a polar array, use it like this:
Array = makeArray(baseobject, center, totalangle, totalnum, name="Array")
- Creates an
Array
object from the givenbaseobject
. - In case of a rectangular array,
xvector
,yvector
, andzvector
determine the distance between the base points of each copy, in the X, Y, and Z directions; andxnum
,ynum
, andznum
are the number of copies in the respective direction. - In case of a polar array,
center
defines the center of the array circle,totalangle
is the angle of the arc in degrees to cover with copies, andtotalnum
is the number of copies to arrange around the circle, including the original object.
Example:
import FreeCAD, Draft
Rect = Draft.makeRectangle(1500, 500)
xvector = FreeCAD.Vector(1600, 0, 0)
yvector = FreeCAD.Vector(0, 600, 0)
Array = Draft.makeArray(Rect, xvector, yvector, 3, 4)
Tri = Draft.makePolygon(3, 600)
center = FreeCAD.Vector(-1600, 0, 0)
Array2 = Draft.makeArray(Tri, center, 360, 6)
- Drafting : Ligne, Polyligne, Congé, Arc, Arc par 3 points, Cercle, Ellipse, Rectangle, Polygone, B-spline, Courbe de Bézier cubique, Courbe de Bézier, Point, Surfaces liées, Formes à partir de texte, Hachure
- Annotation : Texte, Dimension, Étiquette, Éditeur de styles d'annotations, Widget d'échelle d'annotation.
- Modification : Déplacer,Pivoter,Échelle,Miroir, Décalage, Ajuster ou prolonger, Étirer, Cloner, Réseau orthogonal, Réseau polaire, Réseau circulaire, Réseau selon une courbe, Réseau lié selon une courbe, Réseau de points, Réseau lié selon des points, Éditer, Surligner les sous éléments, Joindre, Scinder, Agréger, Désagréger, Polyligne vers B-spline, Draft vers esquisse, Pente, Inverser le texte de la dimension, Vue 2D d'une forme
- Barre Draft : Plan de travail, Définir le style, Basculer en mode construction, Groupement automatique
- Aimantation : Verrouillage de l'aimantation, Aimantation terminaison, Aimantation milieu, Aimantation centre, Aimantation angle, Aimantation intersection, Aimantation perpendiculaire, Aimantation extension, Aimantation parallèle, Aimantation spéciale, Aimantation au plus proche, Aimantation orthogonal, Aimantation grille, Aimantation plan de travail, Aimantation dimensions, Basculer la grille
- Utilitaires : Appliquer le style, Calque, Gestionnaire de calques, Nommer un groupe, Déplacer vers un groupe, Sélection groupée, Ajouter au groupe de construction, Mode d'affichage, Proxy de plan de travail, Réparer, Barre d'aimantation
- Additionnels : Contrainte, Motif, Préférences, Préférences d'Import Export, DXF/DWG, SVG, OCA, DAT
- Menu contextuel :
- Conteneur du calque : Fusionner les calques en double, Ajouter un nouveau calque
- Calque : Groupement automatique, Sélection groupée
- Texte : Ouvir les hyperliens
- Filaire : Aplatir
- Proxy de plan de travail : Enregistrer la position de la caméra, Enregistrer l'état des objets
- Démarrer avec FreeCAD
- Installation : Téléchargements, Windows, Linux, Mac, Logiciels supplémentaires, Docker, AppImage, Ubuntu Snap
- Bases : À propos de FreeCAD, Interface, Navigation par la souris, Méthodes de sélection, Objet name, Préférences, Ateliers, Structure du document, Propriétés, Contribuer à FreeCAD, Faire un don
- Aide : Tutoriels, Tutoriels vidéo
- Ateliers : Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test