Cutline Studio

How to

Convert a DXF or SVG to G-code for your CNC router

A DXF or SVG is a drawing. Your router needs G-code: a list of moves with depths, feeds and spindle speed. Turning one into the other is what CAM software does, and in Cutline Studio it takes a few minutes.

1. Open your drawing

In Cutline Studio, open the CAM tab and load your DXF or SVG. DXF lines, arcs, polylines, circles, splines and blocks are read; SVG paths, shapes and transforms are read too. Cutline joins touching segments into closed shapes, so a part drawn as separate lines still cuts as one piece. Check the size: SVGs exported at the wrong scale are the most common surprise, and you can scale the artwork before cutting.

2. Tell it what each shape is

In Basic mode, Cutline walks you through this one question at a time: which shapes are parts, which are holes, which are pockets.

3. Set the bit, depth and speeds

Enter your bit diameter and material thickness. Cutline suggests a depth per pass, feed rate, plunge rate and spindle speed for your machine; through-cuts go slightly into the spoilboard so parts come free. If you use a trim router, it tells you the dial setting.

4. Add tabs and dogbones

Tabs are small bridges left at the bottom of a profile so the part doesn't move during the last pass. Dogbones are small round-outs in inside corners so square tenons fit, since a round bit can't cut a sharp inside corner.

5. Check the toolpaths and save

Look over the toolpaths in the 2D view, press Optimize to shorten the travel between cuts, and save the G-code. Open it in your machine's sender (Candle, gSender, UGS, Carbide Motion, Mach3/Mach4) and run an air cut first if it's your first file on that machine.

Common problems

No drawing yet? Cutline can design one for you from a description. Try it free in your browser, or read about Cutline's CAM features.

FAQ

Can I convert an SVG from Inkscape to G-code?
Yes. Save it as a plain or Inkscape SVG, open it in Cutline Studio's CAM, set the cut types and depth, and save the G-code. Set the document units in Inkscape to mm or inches so the size comes through correctly.
Can I use a DXF from Fusion?
Yes. Export a sketch or a flat face as DXF from Fusion and open it in Cutline. Arcs and splines are supported.
What file does my machine need?
Most hobby routers run G-code text files with an .nc, .gcode or .tap extension. Cutline saves .nc by default for Grbl and Mach3/Mach4.

Try Cutline Studio

Design one project free in your browser, or download the 7-day free trial for Windows 10 and 11.

Try it in your browser Download free trial

← Back to Cutline Studio