Share

2D

[Desktop Automation]

An instance of this object is returned by the function of the LUATray:

object_packer = tray:createpacker(tray.packingid_2d)

Properties

The 2D packer uses borderspacingxy but not defaultpartrotation, borderspacingz, and minimaldistance of the general packer properties.

Property Read/write Type Description
anglecount read/write Integer Integer from 0 to 7; the packer tries part orientations rotated in increments of 360/anglecount to find better fits. The default value is 0.
coarsening read/write Integer Integer from 1 to 9; a multiplier for rastersize to determine the final raster size the packer works with. The default value is 1.
packeonlyselected read/write Boolean When true, only parts are packed which were selected. The default value is false.
placeoutside read/write Boolean When true, parts are moved outside the tray if they could not be moved. The default value is false.
rastersize read/write Number Ranges from 0.1 to 10 mm, the side lengths of cubes in the initial raster to analyze parts and buildspace. The default value is 1.
sorttype read/write Integer The 2D packer packs every part individually in a sequential order. The packing starts in one corner and is stopped when either all parts are packed, or when no more space is available. The parts are sorted before packing. The sorting can either by size (sorttype=0) or by height (sorttype=1). The size refers to the effective 2D raster size of the corresponding part. The default value is 0.

Back to top

Methods

Name Syntax Description
pack Result = packer:pack() Pack the tray with the desired algorithm

Back to top

Was this information helpful?