Open DWG and DXF files for CNC
CAD drawings arrive as DWG or DXF. A CNC router needs closed 2D shapes at the right size. Here is how to get from the drawing to toolpaths without redrawing it.
1. DWG or DXF?
DWG is AutoCAD's own format; DXF is the open exchange format almost every program reads and writes. GCarve opens both. If you can choose, ask for DXF: it is the most predictable, and you can ask for it from any CAD or drawing program.
2. Check the units
The most common problem is a drawing that comes in 25 times too big or too small because millimetres were read as inches. GCarve reads the unit stored in the file and says what it used in the status line. When a file has no unit it assumes inches, unless the drawing would then be wider than 12 feet, in which case it reads it as millimetres, and it says which it did. If that is wrong, select everything and type the width you expect.
3. Layers and text
Layers come in as layers, so you can show, hide and lock them, or give a toolpath only the "CUT" layer. Text in the file becomes editable text in GCarve's standard font at its size and place.
4. Clean it up
CAD drawings often have lines that nearly meet, doubled-up lines and tiny leftovers. A pocket or profile needs closed shapes. Check Vectors finds open, duplicate and tiny vectors and selects them; Join and Close fix the open ones.
5. What does not come in
Pictures, viewports and 3D solids are skipped, and GCarve tells you how many of each. Hatch fills are skipped when the drawing also has their outlines (they would double every cut); a file that has only fills, as some logo exports do, is read from the outlines of the fills.
How GCarve does it
File ▸ Open / Import (or drop the file on the window) reads DWG and DXF, as well as SVG, PDF, Illustrator, EPS, HPGL plot files (.plt) and LightBurn (.lbrn2). Vectors ▸ Check Vectors finds the open and duplicate lines. When the cutting is planned, File ▸ Export Vectors writes the shapes back out as DWG, DXF or SVG for a customer or another program.
See also importing PDF and Illustrator files and GCarve as a VCarve alternative.
Questions
Can GCarve open DWG files?
Yes. Open or drop an AutoCAD .dwg file and GCarve reads its 2D geometry (lines, arcs, circles, polylines, splines, ellipses, blocks and text) with its layers. You can also export your vectors back out as DWG, DXF or SVG.
Why do my DXF dimensions come in at the wrong size?
DXF files do not always say what unit they use. GCarve reads the unit in the file and tells you when there is none and what it assumed (inches, or millimetres when the drawing would be absurdly large in inches). If the drawing is the wrong size, select everything and type the real width, or re-save the file with its units set.
What is left out when I open a DWG or DXF?
Pictures, viewports and 3D solids are skipped, and GCarve lists what it skipped. Hatch fills are skipped too when their outlines are in the file; a file with only fills is read from the fill outlines. The outlines are what a router cuts.
Do I need AutoCAD to make a DXF?
No. Fusion, Inkscape, LibreCAD, FreeCAD, Illustrator and most drawing programs save DXF, and DXF is the safest format to ask a customer for.
Try it on your own job: GCarve is free, runs in your browser with a free account, and has free desktop apps.
Open GCarve free