![]() |
CAD/CAM cutter tool paths in Corel Draw
I'm not a sign maker, but I carve out text and silhouettes in metal using a cnc milling machine. Same concept as routing out a wood sign on a cnc router table, just a much smaller scale.
I create the tool cutter paths for my cnc milling machine with the Corel Draw inside Offset Contour function. So, if I’m milling out a rectangle pocket, I create a series of inside contours which the rotary cutter will follow. The problem with this approach to creating tool paths is that each inside contour is an "island" not connected to the others, and so the tool must rise when finished with one contour, move to the next contour, drop back down to cutting height, and continue cutting the new contour. These unwanted up-down moves take up 20% of the total run time. More importantly, each time the cutter moves down (plunge cutting) the probability of the cutter breaking goes way up (my engraving cutter is only 0.012” in diameter, equivalent to about four human hairs). CAD/CAM programs designed for this type of application can generate a spiral tool path within a closed polygon and the tool cuts out the pocket in one continuous path. I would save a lot of time if Corel Draw could generate this type of path. This would be ideal, but not something I would expect a macro to be able to perform. Another idea is to have a macro that draws connector lines between the inside contours (islands) and the outer path. If a macro could produce those kinds of lines and make the entire group a single polygon, the cutter could remain engaged in the work and save time while also reducing broken cutters. The connector lines would cause a very small amount of redundant cutting, but that’s a minor disadvantage. Does anyone have any ideas for producing continuous cutter paths using Corel Draw? |
Cutting Path
If you could include an example .cdr file of the cutting paths you wish to generate I am sure we could take a look and let you know if it is possible or not.
-Shelby |
1 Attachment(s)
Thanks - I have attached a CDR file with examples.
There are probably several possible solutions, but the attached examples should explain the desired outcome. |
1 Attachment(s)
Hi Ed.
Here's what I have so far. I'm not sure if it's what you're looking for. It takes 2 combines items and connects the inner path to the outer. Code:
Option Explicit Use this attached cdr to do initial test. -John |
John - Thanks for providing the macro!
Visually, it works great :) However, to see the path and direction the cutter will take, double-click to reveal the nodes, then tab though the nodes. The path to the inside contours is not via the connection line added by the macro. Instead, the cutter still "hops" across the gap. It looks like some intelligent re-ordering of the lines & nodes are needed so that the inside contour is cut, then exits via the connection line, and continues to cut the outside contour. Is this possible? If so, this would be a great solution! Ed |
Hi.
After trying a straight forward approach it proved really difficult. Try this workaround method and see if it works for you. -John Code:
Option Explicit |
1 Attachment(s)
Hi John - That's pretty close! I'm amazed at what you've done in a short macro.
It works well on simple objects (see attached cdr). The top object with straight lines works great. The middle drawing was a combination of two closed polygons (this is how it appears after I trace the bitmap original). The node sequence jumps from one to the other where I have the red arrows. For the bottom drawing, I broke apart the two closed polygons, performed an inside contour on each, and ran the macro on each one individually. This works except for the area in the red circle. I test the node (cutting) sequence by double-clicking to show the nodes, then tab through them to visualize how the cutter will travel. Ed |
Hi.
I think this little node reorder sub will fix any jumping nodes in all selected subpaths but I'm not sure about the problem with the bottom drawing. Can you explain what's wrong with it? Code:
Sub nodeOrder() |
DragonCNC
Hi,
I have been working on a CorelDRAW hosted CAD / CAM application for some time. It is currently a free beta. My latest product, the Artwork Optimizer is actually a DragonCNC wizard. Have at look at: http://www.DragonCNC.com Then let me know what you think. It is a licensed product, but beta licenses are free. BTW, it has the only fully automatic multi-tool pocketing toolpath generator in a product that costs less than $10,000. -James Leonard |
John - On the bottom drawing, one of the nodes in the red circle jumps to a node on the upper left of the drawing.
However, after breaking the curves apart and running your nodeOrder macro, it works perfectly. I'll perform more testing and if all works well I'll integrate this into my artwork preparation workflow for cutting. Thanks again! Ed |
All times are GMT -5. The time now is 22:19. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com