How to prepare DXF files for laser cutting
A clean DXF is the cheapest quality step in laser quoting. This guide covers closed contours, duplicates, open polylines, millimetre units, curves, layers, text, and holes — then shows what AllTerra Calculator does when a file cannot be nested.
Why DXF prep matters before nesting
Nesting and costing software does not “guess” a part from a sketch. It needs closed outlines that define the metal you will cut, plus closed inner loops for holes. Messy drawings — open lines, stacked duplicates, mixed units, or decoration on the cut layer — produce wrong areas, wrong cut length, or a hard stop before nesting starts.
For job shops, that failure shows up as a delayed quote or a wrong price. Fixing the drawing once in CAD is usually faster than debugging a bad nest. The habits below are general shop practice. The AllTerra section states only what the live service at calc.1cterra.ru does today.
Closed contours are the cuttable part
A laser path for a blank needs a continuous outer boundary that returns to its start. In DXF terms that is typically a closed LWPOLYLINE or POLYLINE, or a CIRCLE / closed ellipse treated as a polygon. Open strokes alone do not define a sheet-metal blank.
A closed loop is not automatically a cut hole. Classification depends on the DXF entity and shape: a CIRCLE entity with area at least 2.5 mm² is accepted as a hole, while other closed loops of 80 mm² or less can be treated as graphics. Larger loops also face shape checks. Inspect the reported hole count; an incorrect classification changes both cut length and pierces.
Open polylines and missing closures
An almost-closed polyline with a tiny gap is still open. CAD export settings, exploded blocks, or hand-drawn arcs that never meet will leave gaps. Zoom to endpoints and close them, or use a join/close command before export. If the file contains only open geometry, nesting tools cannot invent a blank.
In AllTerra Calculator today: if the parser finds no closed polygons, the upload fails with error code dxf_no_closed_contours. The English UI message is: “The DXF file contains no closed contour — there is nothing to cut.” The underlying parser message is “No closed polygons found in DXF”.
Duplicates, overlaps, and double lines
Two identical outlines on top of each other inflate perimeter and confuse hole detection. Overlapping almost-identical contours can look fine on screen but produce self-intersections after import. Delete duplicates and check for coincident edges left from copy-paste.
Also watch for construction lines left on the same layer as the part. If they close into a loop, a tool may treat them as a second part or as an inner contour. Keep construction on a separate non-cut layer or delete it before export.
Units: work in millimetres
Laser shops in this product’s market quote and nest in millimetres. A drawing saved in inches or unitless “drawing units” without a clear millimetre scale will place parts at the wrong size. Set the CAD document to millimetres and verify a known edge length before export.
AllTerra’s nesting and costing pipeline treats geometry numbers as millimetres (sheet formats, gaps, and cut length are mm-based). There is no automatic inches-to-mm rewrite on upload. Wrong units mean wrong sheets and wrong money.
Splines, arcs, and bulges
Arcs and polyline bulges are normal in good DXF parts. Splines are harder: some importers flatten them into line segments. Prefer arcs and polylines for production outlines when you can. If you must use splines, flatten at a tolerance your shop accepts for edge quality.
AllTerra’s parser can flatten SPLINE entities when tracing outlines from line/arc soups, and it respects bulge on LWPOLYLINE / POLYLINE for curved edges. Extremely dense spline tessellation can still make files heavy — keep production drawings practical.
Layers, text, and engraving
Put cut geometry on a dedicated layer. Put dimensions, title blocks, and notes elsewhere. Text that is drawn as closed outlines can be mistaken for tiny parts or holes if it sits inside the blank. Prefer true text entities on a non-cut layer, or move them outside the part.
Open decorative strokes and geometry classified as engraving are separate from cut contours. Their presence in a drawing does not mean they are included in the cutting length or pierce count. Check the imported contour and hole counts against the drawing; a miniature image alone is not sufficient evidence of a correct manufacturing interpretation.
Holes and cut-outs
Each true cut hole needs its own closed contour inside the outer outline. Circles for fasteners should be real CIRCLE or closed polyline holes, not sketched open arcs. Slot-shaped cut-outs should be closed loops as well.
Holes add cut length and pierces. A plate with three openings is not priced like a solid blank of the same outline. In AllTerra, part area is outer area minus hole areas; perimeter for cutting combines outer and hole paths; pierce count for a part includes the outer start plus holes.
In AllTerra Calculator
Orders start from one or more DXF uploads on the order form. The server parser looks for closed polygons. Without them, nesting does not start. With them, the service classifies an outer contour, cut holes, and engraving-style geometry as described above.
- No closed polygons → error dxf_no_closed_contours (message above).
- Closed outer + qualifying inner loops → nestable part with holes.
- Small / decorative closed loops may be classified as engraving graphics, not cut holes.
- Open engraving-layer strokes may be stored as engraving lines; they do not drive cut length or pierces like holes.
After a successful parse, true-shape nesting places the outlines on your sheet format with the gap and edge rules you set. Metrics from that nest (sheets, utilisation, cut length, pierces) feed costing. See also the DXF nesting and nesting engine pages for the commercial product view.
Pre-export checklist
- Document units are millimetres; a known edge measures correctly.
- Outer outline is closed; zoom endpoints if needed.
- Every cut hole is a closed inner loop (or CIRCLE).
- No duplicate stacked contours on the cut layer.
- Dimensions and title block are not on the cut layer.
- Text is not exploding into tiny closed loops inside the blank.
- Splines flattened or replaced if your shop standard requires it.
- One clear part per file when possible; multi-part files only if your process expects them.
When the checklist passes, upload at calc.1cterra.ru and confirm the preview shows the outer shape and holes you expect before you trust the price. If the service reports no closed contour, fix the DXF — the calculator will not invent a blank.
Coordinate units diagnostic before you trust any length
Millimetre discipline is not only a document setting. It is a measurement chain from the CAD model to the nest and the purchase order. A drawing can look correct on screen while every coordinate is scaled by 25.4 because the file was modelled in inches and exported without converting values. Another common failure is a unitless file where the author intended millimetres, yet a later scale-by-10 “cleanup” left a bracket that measures 1 200 instead of 120.
Run a diagnostic that does not depend on marketing checklists. Pick one physical reference on the part: a bolt hole centre-to-centre, a flange width on a stamped sample, or a dimension called out on the customer PDF. In CAD, measure that same distance on the exported DXF geometry with the distance tool, not by reading a text note. Record three numbers: the design intent (for example 80 mm), the CAD measurement in drawing units, and the ratio intent ÷ measurement. If the ratio is about 1.0, units likely match. If the ratio is about 25.4 or 1/25.4, you are looking at an inch/millimetre mismatch. If the ratio is 10 or 0.1, suspect a decade scale error from a previous “fit to sheet” transform.
When the CAD package exposes insertion units or a DXF header units field, treat it as a hint, not a verdict. Some exporters write millimetre flags while leaving geometry in inches. Always reconcile the flag with the physical reference. If millimetres are required and geometry is wrong, scale explicitly in CAD, re-measure, then re-export. Avoid silent scale inside nesting as a habit: procurement and hole charts will diverge from the nest.
- Reference edge or hole spacing agreed with the customer drawing.
- CAD distance on the DXF entities (ignore dimension text entities).
- Ratio check against 1, 25.4, and decade factors.
- Re-export after correction; discard older DXF copies from the quote folder.
Open-contour repair without inventing geometry
An open contour is a topology problem, not a styling problem. The goal is to restore continuity that already exists in the design intent, not to sketch a new outline that “looks closed.” Invented segments change area, cut length, and fit-up with mating parts. Prefer repair steps that join existing endpoints or extend along known construction directions.
Isolate the suspect outline and measure the endpoint gap. Gap size alone does not establish whether the problem is export precision, a missing feature or an intentional opening. Compare the design drawing and approved dimensional tolerances before modifying endpoints. A join, extend or close operation can change geometry even when the visual difference is small. Use it only when the intended continuation is established, save the original, then remeasure affected dimensions and the resulting perimeter. If the intended continuation is uncertain, ask the designer for a corrected contour instead of choosing a convenient connecting segment.
Refuse repairs that invent content: freehand bridges across large gaps, replacing a broken arc with a shortening chord, or mirroring a half when the drawing is not symmetric. If the gap is a missing design feature from a paper mark-up, request a corrected source file. Rejecting files with no closed polygons is correct; inventing a blank creates a wrong quote.
- Freeze layers so only cut geometry is editable.
- List open polylines; sort by gap size at endpoints.
- Join or extend along existing tangents; never freehand large bridges.
- Re-check closure with a closed-polyline query or by attempting a region/hatch that fails on open chains.
- If closure requires new design content, request a revised DXF from the author.
Hole versus engraving classification check
Closed inner loops are not automatically cut holes. Small logos, score marks, and decorative frames can be closed yet belong to marking or engraving intent. Conversely, fastener holes drawn as open 270° arcs will never become pierces. Build a short classification pass after units and closure are clean.
For each inner closed loop ask: is it listed as a cut feature on the customer drawing; does it look like a functional opening rather than a letter counter or brand mark; and is it on a cut layer rather than marking or engraving? If any answer is no, keep it off cut accounting or move it to a non-cut layer per shop convention.
Worked check: plate 200×120 mm, four Ø9 mm holes on a 160×80 mm pattern, plus a closed 40×12 mm logo. The circles are cut holes (pierces, inner path, less net area). The logo should not be priced as a cut-out unless requested. Misclassified logos inflate pierces; omitted fastener holes underprice the job.
- Map every inner loop to a line on the customer hole chart or note “graphic only.”
- Confirm circles and slots are closed entities, not open arcs.
- Keep marking geometry on dedicated layers so cut length stays honest.
Quantity and material grouping before nesting
A DXF defines shape; the order defines quantity and stock. Group files so each batch shares one thickness, grade, and grain or finish rule. Mixing 3 mm mild steel with 3 mm stainless because thickness matches is a procurement failure even if packing looks tidy.
Use a batch table: file, revision, quantity, material, thickness, grain lock, notes. Prefer one instance per part number plus an explicit quantity—duplicated outlines risk double-counting when quantity is also entered. When parts share a sheet, align revisions; a bracket REV C with a cover REV A can fail assembly. Freeze the verified pair for the quote.
Procurement validation against the drawing
After geometry is clean, validate procurement against the DXF set: thickness, grade, coating, and available sheet formats. Synthetic case: PDF says S235, 4 mm, brushed; DXF title block still says “3 mm CR.” Stop nesting until the conflict is resolved in writing. A 4 mm assumption on a 3 mm price understates cost; a 3 mm assumption on a 4 mm process table misstates cut time. Record the decision so nest, purchase order, and traveller match.
- Thickness and grade from PDF versus DXF title block versus ERP item.
- Grain or finish direction if the part is visible or structural.
- Sheet formats that actually can be purchased for the due date.
Dimensional test after export
Reimport the exported DXF into a clean CAD session and measure overall dimensions, a hole diameter and a centre distance against the approved drawing. Apply the tolerances actually specified for those features; there is no universal blank tolerance. In a synthetic example with width 318 ±0.1 mm and hole diameter 12 ±0.1 mm, measured width 318.05 passes while diameter 11.7 fails. A nominal spacing of 100 measured as 254 indicates a scale discrepancy requiring investigation. Record the measurements and the revision used before approving the file.
Conditional CAD hygiene (generic, tool-agnostic)
Use CAD commands appropriate to your application and agreed shop convention. Keep original source files, revision identifiers and a clear separation of cutting and marking geometry. Exploding a block, flattening a spline or joining a polyline may alter curves or topology, so repeat dimension and contour checks after such operations. A region or hatch test is a useful diagnostic, not proof that every manufacturing requirement is met. The release decision should record the intended geometry and process, rather than merely whether a file opens successfully.