jb55 wrote: ↑Fri Dec 12, 2025 11:00 pm
QUESTION: Is there a way to designate in a QCADCAM drawing the order in which elements will be engraved when exporting the GCode?
Probably not.
You can opt to process inner tool paths first or it is already the default.
In the same Profile it will kinda attempt to optimize the traversing between sub tool paths.
Typically a
Traveling salesman problem.
Here one of finding the shorted routes connecting tool paths endings with other tool paths starting positions.
Then I suspect that QCAD/CAM exploits some kind of '
Nearest neighbour' algorithm.
Never guaranteed to be optimal and in rare cases it might even result in the worst route.
After exploding text entities, with 44 paths, the number of all possible permutations is astronomical (2.65e+54).
That may be reduced somewhat accounting for already connected paths.
At some point, finding the optimal route may simply take longer (years) than using a not so optimal route.
It may start to matter for more than hundreds or thousands copies of the same job.
A better and novel candidate would be some '
Ant colony optimization' algorithm.
The solution for a more logical organization lies in dividing your job into several Profiles:
- Profile 1 - Boxes
- Profile 2 - Text entities
- Profile 3 - Outer contour
The order of profiles is configurable.
Remark that:
- QCAD/CAM has no method for pocketing.
- TTF text is exploded to outer contours.
- Engraving 'On path' will produce open glyphs that are 1 tool radius larger in all directions and smaller for voids.
I would then advice an inward offset for Profile 2 by defining side and milling method.
It will never be exactly the same as the filled areas with sharp corners.
For certain fonts or in isolated cases the Glyphs can be distorted too much.
Regards,
CVH