This is one of the most popular functions inside ecut. It allows you nest objects in few seconds for a CNC or plotter cutter.
This is very powerful function helps You to prepare object for plotter or CNC machine! In a ew seconds, the Nesting function can allocate selected objects on specified sheet. In the new version, you can see nesting result without the need to return to CorelDRAW! You can change parameters of nesting, and try to nest objects again and again. When the result is what you like, apply all changes and the nest will show on CorelDRAW's page.
Remember that for best results, all shapes must have no self-intersections.
You can zoom-in and zoom-out preview, select objects and change its parameters, like "use as container". You can set many containers if you want.
You can pre-nest shapes before nesting - just drag them to sheet and eCut will not move them when nest other shapes.
Bottom buttons let you to control the process.
Sheet width and height - size of material.
Use active page size - allows you to use page size as sheet size.
Reduce sheet size - you can reduce all sheet sizes (L,R,T,B).
Edge padding - allows you to set empty space between nested objects and sheet bounding box.
Minimal distance - minimal distance between two shapes that can be achieved. You can set zero distance (but if Tolerance in layout tab will be bigger than minimum distance, you may have intersection of shapes)
Allow inside - allow function to put small objects inside big ones.
Search best result - let function to make few results and show only best (slower).
Divide by color - allows function to place shapes according to their colors. (No; On different sheets; On same sheet; On same sheet without mix; Divide by layer)
Approximation - quality of approximation. (Auto; High; Middle; Low)
Fix angle - let function to prevent rotation (No, 90, 180, Do not rotate)
Origin point - nesting origin point.
Fit shapes - how to nest.
Create bounding box - create rectangles after placing.
Distance between blocks
Rotate 90 deg. after nesting
Use last select object as container - for automation, if enabled - last shape will be set as container.
Ideas to help you when working with the program:
Text nesting - always set approximation to Middle or Low, and Fix angle = 90 deg. I will force program to rotate text only on 90 degrees, and in this case result will be better.
Complex shape nesting - set approximation to Auto. Also, if you see a bad nested shape - click on it and set Fix angle = No (it can help).
If you have time - activate search best result. It will increase processing time, but will make an optimized result. For aggressive nesting, you can select any shape at preview and in popup menu set fix angle = no to all It can make the result more compact.
To set shape container - select it in preview and in popup menu set "Use as container".
Nesting - this is the only function that can be automated for use in other macros.
If you have a need to integrate nesting in your macro, it's easy enough to do - there is a separate procedure. Initialize it and you"ll be able use nesting without need to press OK button.
Below I'll show an example and list of parameters for this function. Example is for CorelDRAW X7 32bit - for any other version just change the name of the library:
Private Declare PtrSafe Function eCutPro Lib "c:/eCut/eCut/DLL/eCut17x86.dll" Alias "eCutPro" (ByVal f As Integer, ByVal f2 As Integer) As Integer
"eCut Function launcher with parameters
Public Sub FLauncher()
eCutPro 0, 1
0 - nesting number
1 - preset number