File formats Numerical accuracy

Reading and writing NC1 and STEP files, measured on 14,164 real shop files

A new CadCraft reader and writer for steel fabrication files handles DSTV NC1 and STEP. It is in development and not in a released app yet. This report gives the measured results on production files from steel fabrication jobs, and says how each number was checked.

  • Status: in development
  • Measured December 1, 2026
  • 14,005 of 14,005NC1 files read with every line accounted for
  • 14,005 of 14,005NC1 files written back byte for byte
  • 159 of 159STEP files read and written back byte for byte
  • 159 of 159re-written STEP files confirmed by an independent geometry kernel

The test files

Production files from steel fabrication jobs, across 22 shop folders. They are customer files and stay private; this report names none of them.

NC1: 14,005 files

  • 13,575 DSTV NC files and 430 FastCAM save files that travel under the same .nc1 extension. The reader tells them apart by content and reads and writes both.
  • Parts: 13,303 plates, 105 rectangular tube, 93 angles, 69 I-shapes, 4 channels, 1 tee.
  • Content: outer contours, inner cut-outs, holes and slots, marking text, punch marks, scribed lines and bend lines.
  • Variety: files from at least four exporting systems, Windows and Unix line endings, with and without comment lines, with empty header fields.

STEP: 159 files

  • Schemas: AP214 (150 files), AP203 (8) and AP242 (1).
  • Written by eight different CAD systems, in releases from 2023 to 2026.
  • Size: 394,641 data instances, 438 solids and 13,456 faces in all.
  • Content: parts and assemblies, planes, cylinders, cones, tori and spline surfaces, colors, layers and units.

NC1 results

CheckResultHow it was checked
Read every file 14,005 of 14,0050 lines left unread Every line of every file lands in a named field of the model. Block and row counts agree with a separate census of the files.
Write back an unchanged file 14,005 of 14,005byte for byte The output is compared with the original bytes by a separate script, including line endings and a missing final line break.
Write a file from the model alone 14,005 of 14,005same content The original formatting is discarded, the file is written in the standard column layout, and a tokenizer written separately from the reader compares every number and text with the original.
Second reader agrees 14,005 of 14,005 A second reader, written in another language, gives the same model value for value.
Damaged files 3,000,000 cases0 crashes, 0 hangs Files are truncated, cut, duplicated and corrupted at random. Each one is either read or refused with an error. The slowest case took 0.03 seconds.
Browser build equals desktop build 500 of 500and 18 of 18 test files The WebAssembly build gives the same model, geometry and written bytes as the native build on a sample covering every block and part type.
Whole standard covered 18 test files, 29 tests Blocks and part types of the DSTV standard that the production set does not contain are tested with files written for the purpose.

NC1 geometry

Reading the numbers correctly is half the job. These checks compare the geometry the reader builds with facts the files state elsewhere, so they do not depend on its own writer.

CheckResultWhat it shows
Contours close 17,134 of 17,134 Every outer contour and inner cut-out ends exactly where it starts.
Holes sit on the part 69,039 of 69,039 Every hole center is inside its plate outline or on its edge, and none falls inside a cut-out.
Outline size equals header size 13,070 of 13,222 plateswithin 0.011 mm The drawn outline matches the length and width in the file header. In the other 152 files the header itself states a different size than the drawn outline, for example the 64 plates with bend lines.
Profile size equals header size 224 of 224lengths within 0.011 mm For tube, angles, I-shapes and channels the contour length matches the header length, and the web height matches on 219 of 219.
Round cut-outs are round 2,275 of 2,276 Two-point circles have the area of a circle of their stated radius within 0.1%. The one exception is a file whose own numbers describe a lens.
Slots are standard slots 3,858 slots Every slot lands on a 1/16 inch size, and the common ones are the standard short slots: 13/16 by 1, 15/16 by 1-1/8 and 1-3/16 by 1-1/2.
Arcs fit their end points 13,542 of 13,544within 0.011 mm The stated radius reaches from each arc's start point to its end point, within the rounding of a two-decimal file.

STEP results

CheckResultHow it was checked
Read every file 159 of 159394,641 instances, 0 broken references Every instance is kept, including 20,700 multi-type instances, whether or not the reader gives it a meaning.
Write back an unchanged file 159 of 159byte for byte The output is compared with the original bytes by a separate script.
Write a file from the data alone 159 of 159same data The file is re-written from the instance data with none of the original text, then read again: same instances, same references, same 64-bit values.
Independent kernel reads the re-written files 159 of 159volume and area differ by 0 OpenCascade, an independent open-source geometry kernel, reads each re-written file and finds the same solids, shells, faces, edges and vertices, the same volume, the same surface area and the same bounding box as in the original.
Rebuild every part from its geometry 159 of 159volume and area agree to 7 digits Each file is read into the geometry model and written out as a new file from that model alone. OpenCascade reads every new file and finds the same solids, shells and faces, with the volume and surface area of the original.
Measure volume and surface area 159 of 159within 0.006% The volume and surface area are computed from the exact surfaces and compared, by a separate script, with the values OpenCascade measures on the same files.
Write new parts 14 of 14exact to 15 digits Parts written from nothing (plates with round holes and slots in millimetres and in inches, rounded plates, assemblies and a block with a void) are read by OpenCascade as valid solids with the calculated volume and surface area.
Triangle meshes are closed 159 of 159no open edge A separate script checks every triangle mesh: no edge is left open in any file.
Damaged files 450,080 cases0 crashes, 0 hangs Files are truncated, cut, duplicated and corrupted at random, then read, measured and meshed. Each one is either handled or refused with an error.
Browser build equals desktop build 159 of 159 The WebAssembly build gives the same written bytes, model, measurements and mesh as the native build on every file.

How to read these numbers

  • Every result has its denominator. "14,005 of 14,005" means every file in the set, with none left out. 1,090 of the NC1 files are exact copies of another file; the results are the same counted over the 12,915 distinct files.
  • Independent checks are named as such. Reading a file back with the same code that wrote it shows consistency, not correctness. The byte comparisons, the separate tokenizer, the header and geometry checks and the OpenCascade run do not go through the reader under test.
  • Numbers are 64-bit. Every number read from a file keeps its original text beside its value, so a value nobody changed is written back character for character. See numerical accuracy for the rule across the apps.
  • Written from the published standards (the DSTV NC interface description and ISO 10303) and from the files themselves. FastCAM save files have no published description; their layout was worked out from the 430 files in the set.
  • The results describe this file set. It covers the plate, tube, angle, I-shape, channel and tee work of working fabrication shops, and STEP files from eight CAD systems.
  • In development. The reader and writer are not in a released app yet. File formats lists what each released app opens and saves today.