跳到正文
DEV Community· socks·· 42 分鐘前AI 評分30

切割工場每週遇到的五種 DXF 故障及診斷方法

Five DXF Failures Cutting Shops See Every Week and How to Diagnose Each One

AI 導讀

DXF 文件常因版本不符、曲線類型不支援、重複線條、輪廓缺口或比例及單位錯誤,無法正常匯入或切割。指南列出各類故障的症狀、診斷方法和常見修正方式,包括檢查 $ACADVER、$INSUNITS 及檔案中的圖元。實用做法是先花五分鐘診斷:只有一項故障便自行修正,問題較多或完全無法開啟則外判清理。

正文

A customer emails a DXF, you need a quote by this afternoon, and the file either won't import into your nesting software or imports as a mess. Most of these files fail in one of five ways. If you can name the fault in a couple of minutes, you know whether the fix takes thirty seconds or most of an hour.

This guide covers each fault, how to diagnose it, and the usual fix.

Before anything else: open the file in a text editor

An ASCII DXF is plain text. Open it in any text editor and use search. This tells you more in ten seconds than clicking around in a CAD window. If the file looks like random symbols, it is a binary DXF. Some nesting packages reject binary DXF outright, so resaving as ASCII is your first fix.

1. Version mismatch: the file won't open at all

Symptoms: The import fails, shows an "unsupported format" error, or brings in an empty drawing.

Diagnose: Search the text for $ACADVER. The line after it holds a version code such as AC1009 (very old), AC1015, or AC1032 (recent). Older nesting software often only reads older codes. Some strict importers also choke on very old files that lack sections they expect.

Fix: Open the file in any CAD program that reads it and save a copy as an older DXF version. Older, simpler versions usually import most reliably. If nothing you have will open it, the file may be truncated. Check whether it ends with EOF. If it doesn't, ask the customer to send it again.

2. Splines and ellipses your software can't cut

Symptoms: Curves vanish on import, or turn into hundreds of tiny segments. The torch or head stutters along them, and the edge comes out faceted.

Diagnose: Search for SPLINE and ELLIPSE. If either appears many times, you have found the problem. Files drawn for 3D modelling or exported from design programs are full of them.

Fix: Convert splines to arcs and lines within a tolerance that suits your process. Something around 0.01–0.05 mm is typical for laser. Plasma can usually accept a looser tolerance. Arcs give smooth motion and a clean edge. Thousands of short lines give neither.

3. Duplicate and overlapping lines

Symptoms: Your software's cut length looks too high, perhaps double what you expected. On the table, some edges get cut twice. That means extra burn, a wider kerf, dross, and wasted consumables.

Diagnose: Count the entities. Search for LINE and ARC occurrences, or use your CAD program's selection count. A simple bracket with 40 edges should not contain 160 entities. Another check: drag a single visible line aside and see whether an identical one is still underneath.

Fix: Run a delete-duplicates or overlap cleanup in your CAD program, then join the remaining segments into closed polylines. Recheck the cut length afterwards. If it dropped sharply, your quote would have been wrong too.

4. Gaps and open contours

Symptoms: The nesting software doesn't recognise the part as a closed shape. It won't apply kerf compensation, can't decide which side is inside, or refuses to place lead-ins.

Diagnose: Most nesting and CAD tools can highlight open endpoints. If yours can't, try joining everything into one polyline. If the join stops partway, the gap is where it stopped. Gaps are often tiny, such as 0.001 mm, and invisible at normal zoom.

Fix: Join with a small gap tolerance, or extend and trim the ends until they meet. Then confirm each part is one closed outline and each hole is its own closed loop.

5. Wrong scale or units

Symptoms: The part imports 25.4 times too big or too small. Or it's off by a factor of 10 or 1000 because someone drew in centimetres or metres.

Diagnose: Search for $INSUNITS. A value of 1 means inches, 4 means millimetres, and 0 means unitless, which is the risky one. Then measure something you can verify, such as a hole the customer specified or the overall size on their PDF. Never trust the scale of a unitless file.

Fix: Scale by the right factor (25.4, 10, or 1000). Set the units explicitly, then measure again before you nest.

Also check: things that should not be cut

Dimensions, text, title blocks, centre lines, and 3D entities left on the same layer as the geometry will all try to become cut paths. Delete them or move them to a non-cutting layer. Check that every entity sits flat at Z = 0.

When fixing it yourself isn't worth it

Most of these fixes are quick once you know the fault. The expensive case is the file that has three or four faults at once: splines, duplicates, gaps, and unitless scale all together. That file can eat most of an hour of someone who should be running a machine or quoting the next job.

The arithmetic is simple. Take your shop's hourly rate and multiply it by the time a bad file actually costs, including the re-quote when the first cut length turns out wrong. If that number is higher than the price of having someone else clean the file, outsource the bad ones and keep the easy fixes in-house.

A practical rule: give a file five minutes of diagnosis using the checks above. If it shows one fault, fix it yourself. If it shows several, or won't open at all, send it out.

This article was written with AI (Claude) for Automaton.

If you'd rather not fix it yourself

Automaton converts and cleans DWG, DXF, PDF (exported from CAD), STEP and IGES files for laser, plasma and waterjet cutting. It handles files that won't open, are in the wrong format, or are full of stray lines and gaps. You email the file and get a watermarked preview showing the measured size, holes and cut length. You pay only if the preview is right, at a fixed $15 per drawing, and the cleaned file comes back by email. Scans and photos are answered by a person rather than quoted automatically. Details: CAD drawings converted or cleaned.

來源:DEV Community · dev.to