|
Menu location |
---|
Modification → Array tools → Circular array |
Workbenches |
Draft |
Default shortcut |
None |
Introduced in version |
0.19 |
See also |
Draft OrthoArray, Draft PolarArray, Draft PathArray, Draft PathLinkArray, Draft PointArray, Draft PointLinkArray |
The Draft CircularArray command creates an array from a selected object by placing copies along concentric circumferences. The command can optionally create a Link array, which is more efficient than a regular array.
The command can be used on 2D objects created with the Draft Workbench or Sketcher Workbench, but also on many 3D objects such as those created with the Part Workbench, PartDesign Workbench or BIM Workbench.
Draft CircularArray
See also: Draft Snap.
2
. The maximum that can be entered in the task panel is 99
, but higher values are possible by changing the DataNumber Circles property of the array.3
, for example, results in a pattern with three equal 120° pie segments. Larger values for the Symmetry and the Tangential distance result in fewer or even no elements on the inner layers.See Draft OrthoArray.
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
To create a circular array use the make_array
method (introduced in version 0.19) of the Draft module. This method replaces the deprecated makeArray
method. The make_array
method can create Draft OrthoArrays, Draft PolarArrays and Draft CircularArrays. For each array type one or more wrappers are available.
The main method:
array = make_array(base_object, arg1, arg2, arg3, arg4=None, arg5=None, arg6=None, use_link=True)
The wrapper for circular arrays is:
array = make_circular_array(base_object,
r_distance=100, tan_distance=50,
number=3, symmetry=1,
axis=App.Vector(0, 0, 1), center=App.Vector(0, 0, 0),
use_link=True)
base_object
is the object to be arrayed. It can also be the Label
(string) of an object in the current document.r_distance
and tan_distance
are the radial and tangential distances between the elements.number
is the number of circular layers in the pattern, the original object counts as the first layer.symmetry
is an integer used in some calculations that affect the way the elements are distributed around the circumferences. Usual values are from 1 to 6. Higher values are not recommended and will make the elements in the inner layers disappear.axis
and center
are vectors that describe the direction of the axis of rotation, and a point through which that axis passes.use_link
is True
the created elements are App Links instead of regular copies.array
is returned with the created array object.Example:
import FreeCAD as App
import Draft
doc = App.newDocument()
tri = Draft.make_polygon(3, 600)
array = Draft.make_circular_array(tri, 1800, 1200, 4, 1)
doc.recompute()