Apparently the laser in the Markerlab I'm intending to use uses only and only Chinese closed source control program (with English menus ofc) and a side effect of that is that no kind of G-Code or anything similar access is exposed. Which would be ok, if the laser control soft would have ability to cut with kerf compensation - which it does not apparently. Which leaves only the "hard way" of doing it - by providing CAD drawings with the cut width compensation taken into account.
Obviously this would be damn tedious if doing it one offset at a time and prone to lapses of attention and human errors. What follows is a description how to minimize errors (at least in the plan in my head currently) in that process and partly automate it (Autocad, in my case but most others that can take LISP macros should work somewhat similarly)
(1) Export your flat pattern as a 2D drawing. I am using Autodesk Inventor ability to move the drawing in the export process to positive quadrant of X-Y plane and replacing all lines with closed polylines. But practically all CAD programs should be capable of doing something like that. With some additional post-processing might be needed for making all existing lines into closed ploylines and for getting rid of overlapping lines (which would cause the laser to burn that line as many times as many overlapping lines you have). Outer profile and inner profiles in different layers for me and only lines to be cut on the drawing.
NOTE: Circles remain circles and are not converted to polyline (for me). They must be converted afterwards which is not a straightforward process in Autocad. This: http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/circle-to-polyline-circular-polyline-to-circle/td-p/3036078 LISP macro can be used for that and seems to work well for that purpose. Load it, select circle and issue "C2P" command from command line and the magic happens making it a polyline.
(2) A neat LISP macro: http://www.realerthanreal.com/autolisp/offsetmultiplepolylines.lsp is capable of offsetting all selected CLOSED polylines either inwards or outwards by the same offset value (that is why I had to convert regular circles to polyline circles). Obviously mine are all closed lines. I intend to cut them, after-all with a laser. You can call that command by issuing command "OffsetMultiplePolylines" from command line.
(2a) All INNER profiles will be offset inwards by half of your laser cut line width. The big bonus part is that you can select them all at once and offset them all at once avoiding errors (assuming you manage to select them all, that is why mine are on different layer, I enable only that layer, select all and offset them all, then enable outer profile and offset that separately, that one can be done with a regular offset if its already a single polyline).
(2b) OUTSIDE profile will be offset outwards by half of the laser cut line width.
Loading a macro in Autocad can be found Tools/AutoLISP/Load Application... After loading the macro it can be called from command line like regular Autocad commands.
Top - part before above described kerf compensation process, below after the kerf compensation process. Cut line width is 0.45 mm (based on measuring it roughly in the test parts) meaning the offset is 0.225 mm. If in doubt better under-estimate it than over estimate, I think. Then the holes will be a little larger than intended but if a bolt does not go through a hole if you overstimate compensation it might be an hassle). Now for such a tiny part this is easy, it would be probably even easier to do it just by regular offset deleting previous lines as you go from one side to another. But for a larger part with all the little cutouts, holes for various stuff and so on a manual process would need rather heavy concentration to not miss anything and to not apply offset somewhere twice.
At least that is the plan so far. We'll see if this will actually work in practice as well when I get around to exporting the flat...
Read more »