Skip to content

How to count pierces and measure cut length from a DXF

Count one pierce for every closed contour on the cut layers: one for the outline and one for each hole, so a plate with four holes has five. The cut length is the perimeter of all those contours added up — lines by their length, arcs as radius × angle, circles as 2π × radius. Clean the drawing first, because a duplicated line doubles its length and a gap turns a hole into an open line; the free [DXF checker](/tools/dxf-checker) does the cleanup and shows every part's cut length and pierce count.

5 min read · Updated · By the Zorocut team
Steps
  1. Clean the drawing: one closed contour per outline and per hole, no duplicate or open lines
  2. Count the pierces: one per closed contour, so one per part plus one per hole
  3. Add up the length of every closed contour: lines, arcs, circles and polyline segments
  4. Multiply by the quantity, then compare with the DXF checker's figures

The counting rules

  • One closed contour, one pierce. Aston Precision's estimator puts it the same way: each pierce is each time the laser starts a new cut.
  • A slot, a notch or a window is one contour however long it is, so one pierce.
  • A part cut inside another part's hole is a separate part with its own pierce; Zorocut finds it by containment and lists it on its own.
  • Text, dimensions and hatches are not cut and add no pierces. Zorocut reports them as not cut, and ignores layers whose names mark dimensions, text, bend or construction lines.
  • Marking and engraving lines do not cut through, so Zorocut does not count them as pierces.
  • An open line has no inside, so it is not a part. Zorocut flags open contours as an error instead of guessing — see open contours.

How each DXF entity is measured

EntityLengthNote
LINEthe distance between its endsZorocut chains lines whose ends meet within 0.005 mm into one contour
ARCradius × included angle in radiansa 90° arc of R10 is 15.7 mm
CIRCLE2π × radiusa closed contour on its own: one pierce
LWPOLYLINE, POLYLINEthe sum of its segmentsflag 1 means closed; a bulge segment is an arc whose bulge is the tangent of a quarter of its angle (AutoCAD DXF reference)
SPLINE, ELLIPSEmeasured on arcs and lines fitted within 0.01 mm of the curvereported as approximated
INSERT (block)the block's entities, scaled and mirrored as insertedevery insert counts, not the block once
TEXT, MTEXT, DIMENSION, HATCHnot cutreported as skipped

What Zorocut and the DXF checker report

The DXF checker runs the same import as the online nester and the desktop app, in your browser: the file never leaves your computer. For every part it shows the bounding box, the cut length in metres and the number of pierces. Before it counts, it cleans: duplicate segments are removed, because they would be cut twice; zero-length segments and specks under 0.2 mm go; gaps up to 0.1 mm are closed with a warning; and every repair is listed. Open contours and contours that cross themselves are errors, and a hole smaller than the thickness you enter is a warning. The cut length covers the outline and the holes, not marking lines; Zorocut also counts each part's corners for its time model, and the quote multiplies everything by the quantity.

What the DXF number leaves out

  • Lead-ins and lead-outs: the controller adds them — CypCut sets their type, length and angle — so the real path is a little longer than the drawing.
  • Kerf compensation and micro-joints are added at the machine too; see the CypCut manual for both.
  • Shared cuts: CypCut's multi-contour cut joins a group with one connecting path to reduce the piercing times, and common-line cutting removes shared edges — both pierce less often than the drawing suggests. See common-line cutting.
  • Rapid moves between contours cost time but add no cut length. A 2023 IEOM study that predicted sheet run times used the number of pierces and the rapid-move length as separate inputs.

Counting by hand is still common. In 2022 a plasma user on PlasmaSpider found no pierce count in SheetCam's job report and suggested “I suppose you could just count them manually”. Aston's estimator asks you to type the total cut length and pierces yourself, and offers a helper that multiplies a rectangle's outline by 1.0–2.0 for complexity — a guess, where the DXF already holds the exact figure.

Sources

  1. Aston Precision, Laser Cutting Cost Estimator (feed, pierce and rate tables)
  2. Autodesk, AutoCAD 2012 DXF Reference ($INSUNITS, OCS, entities)
  3. Friendess, CypCut Laser Cutting Control System User Manual v6.5
  4. Hwang & Yang, Laser cutting time estimate for sheet metal parts by machine learning, IEOM 2023
  5. PlasmaSpider forum, SheetCam – Pricing per inch (2022-09)

Stuck on something else? Ask — the Zorocut team answers every question.

Ask a question

Nesting and quoting tips in your inbox

About one e-mail a month: nesting and quoting tips, fixes for the problems people ask about in the community, and Zorocut news.

About one e-mail a month with new cutting and quoting guides, videos and Zorocut news. We e-mail you a link to confirm first, and you can unsubscribe anytime. Privacy policy

Nest and price it in Zorocut

The spacing rule, unit check, starter speeds and quote formula from these guides are built into Zorocut Nest and the free online nester. Your DXF files stay on your computer.