Import DXF Part Outlines and Nest Them on Sheets

If your parts are drawn in CAD rather than listed in a spreadsheet, EZNESTING can read them from a DXF. Every closed outline in the drawing becomes a part: closed polylines, circles, and lines, arcs and splines that join end to end. Notches and holes stay with their part. The part's size is measured from the outline, and text placed next to it becomes its name.

It runs in the browser with nothing to install. Try it with the sample DXF: two rectangles and an L-shaped part, in millimetres.

Open the optimizer and import a DXFFree · in your browser · no signup

Prepare the DXF

  • Draw each part once, flat, at full size. One closed outline per part, laid out anywhere in the drawing.
  • Close your outlines. Closed polylines work best. Loose lines and arcs are joined when their ends meet.
  • Set the drawing units. EZNESTING reads the DXF's `$INSUNITS` header (inches, feet, mm, cm or m). Unitless files are assumed to be millimetres, and you can switch units in the dialog.
  • Label parts with text. A TEXT or MTEXT entity next to an outline becomes that part's name. Otherwise parts are named Part 1, Part 2, and so on.
  • Leave out dimensions and title blocks, or keep them on their own layers so the outlines are easy to spot.

Common ways to get a DXF: in Fusion 360, right-click a sketch and choose Save As DXF. In AutoCAD, use SAVEAS or DXFOUT. Most CAD and drawing programs, Inkscape included, can save DXF.

Import and nest

  1. Open the nesting optimizer in sheet mode.
  2. Click Import parts under the Optimize button, choose CAD drawing (DXF), and drop the file in. You can drop several files at once.
  3. Check the detected units and the list of parts. If the drawing has a rectangle on a layer named BOUNDARY, its size is shown as the sheet size.
  4. Import, set quantities for parts you need more than once, add your sheet size and kerf, and click Optimize.

In linear mode, the DXF import reads LINE entities as lengths to cut from bar or board stock.

How shaped parts are nested

A job that's all rectangles nests with guillotine cuts: every cut runs edge to edge, the way a table saw, track saw or panel saw cuts. Once a job includes a non-rectangular outline, the whole job is nested by real outlines (true-shape), so curved parts interlock and rectangles fill the gaps around them. Those layouts are for machines that cut any path: CNC routers, lasers, plasma, waterjet and knife tables.

More on how that works, with worked examples, is on DXF nesting online.

Re-importing an EZNESTING DXF

DXF files exported from EZNESTING with the CNC / CAM preset can be imported again. The importer recognizes the PARTS layer and skips the sheet outline, saw cuts and labels. A saw-lines-only export (Panel saw preset) has no part outlines, so the importer tells you to export with the CNC / CAM preset instead.

Related guides

Frequently asked questions

Which DXF entities are imported?
Closed LWPOLYLINE and POLYLINE outlines, LINE and ARC chains that close, and circles. TEXT and MTEXT near an outline label it. Curves are broken into short segments to measure the outline.
Does every outline import as a separate part?
Yes, with a quantity of 1. If your drawing shows the same part several times, you can delete the copies and raise the quantity on one, which keeps the list short.
Can it nest irregular shapes tightly?
Yes. EZNESTING nests curved and irregular DXF parts by their real outlines, so they interlock instead of each taking its bounding rectangle. A job made only of rectangles still nests with guillotine (edge-to-edge) cuts for saw work.
My parts came in 25 times too small. What happened?
The DXF was in inches but had no unit set, so it was read as millimetres. Choose inches as the source unit in the import dialog and the parts are re-measured.
Is DXF import free?
Yes. Free jobs are limited to up to 5 part sizes and 3 stock sizes per job, and each imported outline counts as one part size until you merge duplicates.