Share

Monte Carlo

[Desktop Automation]

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

object_packer = tray:createpacker(tray.packingid_montecarlo)

Properties

This section describes packer-specific properties of the Monte Carlo packer.

Property Read/write Type Description
packing_quality read/write Number Is an integer number ranging from -8 (lowest packing density) to +8 (highest packing density). The higher the packing quality the more time is needed for the packing process. The default value is 0.
z_limit read/write Number z_limit is the height in mm of the platform space that can contain the parts (the distance from the platform floor to the upper point of the packable region). It is a non-negative real number which should not exceed the platform height: z_limit<=MachineSizeZ. If the parameter value does not satisfy these conditions, the default value is used instead. The default value is the platform height MachineSizeZ.
start_from_current_positions read/write Boolean Observing the parts' current position is desirable when this packer is used after other arrangement means, for example. By default, this is set to false, meaning the packer is free to find a new arrangement from scratch.

Back to top

Methods

Name Syntax Description
pack Result = packer:pack() Pack the tray with the chosen algorithm. Returns an error code.

Back to top

Packing results error codes

0 Packing finished without problems.
1 Packing finished. There was not enough space in the tray to fit all items.
2 Packing finished. Some items were too large and could not be fitted in the tray.
3 All parts were too large. None could be fitted into the tray.
4 There were no parts to pack.
5 Starting the packing from the current item positions was not possible. Possible solutions:
    a) increase the packing quality
    b) try smaller values of the parameters min_dist and/or border_spacing_xy;
    c) do not start from current positions
  (set start_from_current_positions to false or drop this parameter)
13 unspecified error. Please contact the support team.

Back to top

Was this information helpful?