draftmake.make_array Namespace Reference

Functions

def make_array (base_object, arg1, arg2, arg3, arg4=None, arg5=None, arg6=None, use_link=True)
 
def makeArray (baseobject, arg1, arg2, arg3, arg4=None, arg5=None, arg6=None, name="Array", use_link=False)
 

Function Documentation

◆ make_array()

def draftmake.make_array.make_array (   base_object,
  arg1,
  arg2,
  arg3,
  arg4 = None,
  arg5 = None,
  arg6 = None,
  use_link = True 
)
Create a Draft Array of the given object.

Rectangular array
-----------------
make_array(object,xvector,yvector,xnum,ynum,[name])
makeArray(object,xvector,yvector,zvector,xnum,ynum,znum,[name])

xnum of iterations in the x direction
at xvector distance between iterations, same for y direction
with yvector and ynum, same for z direction with zvector and znum.

Polar array
-----------
makeArray(object,center,totalangle,totalnum,[name]) for polar array, or

center is a vector, totalangle is the angle to cover (in degrees)
and totalnum is the number of objects, including the original.

Circular array
--------------
makeArray(object,rdistance,tdistance,axis,center,ncircles,symmetry,[name])

In case of a circular array, rdistance is the distance of the
circles, tdistance is the distance within circles, axis the rotation-axis,
center the center of rotation, ncircles the number of circles
and symmetry the number of symmetry-axis of the distribution.

To Do
-----
The `Array` class currently handles three types of arrays,
orthogonal, polar, and circular. In the future, probably they should be
split in separate classes so that they are easier to manage.

◆ makeArray()

def draftmake.make_array.makeArray (   baseobject,
  arg1,
  arg2,
  arg3,
  arg4 = None,
  arg5 = None,
  arg6 = None,
  name = "Array",
  use_link = False 
)
Create an Array. DEPRECATED. Use 'make_array'.