DXF Files for Laser Cutting: Preparation Checklist and Cutting Length
A DXF file is ready for laser cutting when it is drawn at 1:1 scale in a known unit, contains only closed contours on the cutting layer, has no duplicate or overlapping lines, keeps text and dimensions off the cutting layers and sits in model space. If any of these points is wrong, the CAM system either rejects the file or cuts something different from what you intended, and the quote based on cutting length will be wrong too.
This guide gives you a checklist, shows with real numbers how errors change cutting length and machine time, and lists how to detect each problem before the file reaches the machine.
Preparation checklist
- 1:1 scale. Draw the part at its real size. A laser DXF is not a scaled drawing sheet; 100 mm in the part must be 100 drawing units in millimetres.
- Known units. Set the header variable
$INSUNITSto the unit you used (4 = millimetres, 1 = inches). If it is 0 or missing, the shop has to guess. A part drawn in inches but read as millimetres comes out 25.4 times too small. - Closed contours. Every outer contour and every hole must form a closed loop. Endpoints that should meet must actually meet. See how to check a DXF for open contours.
- No duplicate lines. Two identical lines on top of each other are cut twice. This often happens when parts are copied, exploded blocks are pasted again or a drawing is exported from several views.
- No text on cutting layers unless you want it engraved or cut. Put engraving text on its own layer and agree with the shop how it is handled. Single-line (stroke) fonts are usually needed if text is to be cut.
- Splines under control. Some CAM systems handle SPLINE entities poorly or convert them into many tiny segments. If the shop asks for it, convert splines into arcs and lines or polylines in CAD.
- Separate layers for cutting, engraving/marking and bend lines. Use clear names such as
CUT,ENGRAVE,BEND. Dimensions, title blocks and frames belong on layers that are not cut, or better, not in the file at all. - Model space only. Put the geometry in model space. Our analysis tools, and many CAM imports, ignore paper space layouts.
- Clean geometry. Remove stray points, zero-length lines and construction geometry.
How cutting length is calculated
The cutting length is the sum of all path lengths on the cutting layers. Each entity type is measured differently:
| Entity | How the length is computed |
|---|---|
| LINE | Distance between start and end point |
| ARC | Radius × sweep angle (in radians) |
| CIRCLE | 2 · π · r |
| LWPOLYLINE / POLYLINE | Sum of straight segments and bulge arcs |
| ELLIPSE, SPLINE | Numerical integration |
| INSERT (blocks) | Length of the block geometry after scaling, rotation and mirroring |
The DXF Cutting Length Calculator does exactly this, per layer. LINE, ARC, CIRCLE and bulge arcs are computed exactly; ELLIPSE and SPLINE are integrated numerically with a relative error below 1e-7. TEXT, MTEXT, DIMENSION and HATCH are not counted. You select which layers are cutting layers.
Worked example: plate with four holes
A 100 × 100 mm plate with four holes of Ø8 mm:
- Outer contour: 4 × 100 mm = 400 mm
- One hole: π × 8 mm = 25.1327 mm
- Four holes: 4 × 25.1327 mm = 100.53 mm
- Total cutting length: 400 + 100.53 = 500.53 mm
Now assume the outer rectangle was accidentally copied onto itself, so the file contains the outline twice. The geometry looks identical on screen, but the path is now:
- 400 + 400 + 100.53 = 900.53 mm
That is 400 mm more, an increase of about 80 % for this part.
Effect on time and cost
To show the effect, take an assumed feed rate of 3,000 mm/min. This is not a value for any specific machine; real feed rates depend on material, thickness, laser power and gas.
- Correct file: 500.53 mm ÷ 3,000 mm/min = 0.1668 min ≈ 10.0 s pure cutting time
- File with duplicate outline: 900.53 mm ÷ 3,000 mm/min = 0.3002 min ≈ 18.0 s
Both figures exclude piercing time, rapid traverse and lead-ins. The correct part needs 5 pierces (1 outer contour, 4 holes); the duplicate outline adds another one. If a shop quotes by cutting length or machine time, the duplicate makes the part look about 80 % more expensive. Worse, cutting the same edge twice puts extra heat into the part and can spoil the edge quality.
Bulge arcs in polylines
LWPOLYLINE and POLYLINE segments can be arcs, stored as a bulge value instead of separate ARC entities. The sweep angle is θ = 4 · atan(bulge), and the radius follows from the chord: r = chord ÷ (2 · sin(θ/2)).
Example: a segment with a chord of 20 mm and bulge = 1:
- θ = 4 · atan(1) = π (a semicircle)
- r = 20 ÷ (2 · sin(π/2)) = 10 mm
- Arc length = π × 10 = 31.42 mm
A tool that ignores bulges would report the straight chord, 20 mm, and underestimate this segment by 11.42 mm. With a bulge of 0.4142 on the same chord (θ = 90°), the arc length is 22.21 mm instead of 20 mm.
Common DXF problems and how to detect them
| Problem | Effect on the machine | How to detect it |
|---|---|---|
| Open contour (gap between endpoints) | CAM cannot assign inside/outside, kerf compensation or lead-ins; the part may not be cut out or the file is rejected | Open Contour Checker: open endpoints, gaps and branches with coordinates |
| Duplicate lines, arcs, circles or polylines | Edge cut twice: longer time, more heat, worse edge, inflated quote | Duplicate Line Checker; the cutting length calculator also shows duplicate-inclusive vs estimated deduplicated length |
| Partially overlapping lines | Overlapping section cut twice | Not detected by our duplicate checker; check visually in CAD |
| Unknown or wrong units | Part 25.4 × too small or too large | DXF Viewer: units from $INSUNITS and bounding box; compare with expected size |
| Text or dimensions on the cutting layer | Letters or dimension lines cut into the part | Viewer: switch layers on and off; text is not counted in cutting length, so check it visually |
| Splines | Some CAM imports approximate them coarsely or with very many segments | Viewer shows them; the calculator measures them by numerical integration |
| Geometry in paper space | CAM import or our analysis shows an empty drawing | Viewer shows nothing in model space |
| Stray points or tiny segments far away | Huge drawing extents, nesting confusion | Viewer: zoom to extents, check bounding box |
| Branches (three or more lines meeting at one point) | Ambiguous contour, CAM cannot decide the path | Open Contour Checker marks the contour as "needs review" |
Checking many files at once
If you receive or send DXF files in batches, the DXF Batch Preflight runs the same checks on up to 25 files (20 MB each, 100 MB total) and produces a PDF summary plus Excel, CSV and JSON reports with file hashes, parameters, tolerance, units and per-check results. Unlike the free tools, this paid service uploads the files to our server, with your explicit consent; originals are deleted automatically after 24 hours and reports after 7 days.
Limitations
- All checks are a preflight, not a manufacturability guarantee. They do not know your material, minimum hole size, kerf width or machine.
- Partial overlaps, T-junctions in the middle of a segment, self-intersections and crossing contours are not detected.
- Only model space is analysed.
- If
$INSUNITSis 0 or missing, you must choose mm or inch; we never assume millimetres. - Cutting length is pure path length. Machine time depends on feed rate, pierces, lead-ins and traverse, which are not part of the DXF.
Related guides
- How to open DXF files
- How to check a DXF for open contours
- How the calculations work: Methodology