Roadmap 0.13, Engines and file formats

FX.752 Steel shop files add-on: the new NC1 and STEP engine in the lab

  • Feature
  • Partly built
  • CadCraft
  • DetailCraft
  • PartCraft

Owner 2026-12-01: "pull it into /lab" (the NC1 and STEP reader and writer built on workstation11a, accepted the same day; report /reports/nc1-step-accuracy).

Built in the lab 2026-12-01: add-on `steel-files` 0.1.0 (addons/steel-files/, never in an app build), packaged and signed, listing status lab and staff-only (signed out: 404). DetailCraft: Open now asks add-on importers (detailcraft.js openFromAddon, model.js modelFromImport); a .nc1 file (DSTV NC or FastCAM save file) opens as a part with profile, length, material, round holes and copes; the status line lists what was left out. CadCraft: .nc1 opens as a drawing through IMPORT, one view per face, real arcs, holes, slots, marks and text on six layers. The STEP engine is in the package with a small module (step.js) but is not wired to an app.

Found: DetailCraft had no way to open a .nc1 file before this; readNc1 was only used by tests.

Tested: node tools/shell-test/steel-files.mjs 128 passed, 0 failed (18 purpose-written files read with no line unread and written back byte for byte); node tools/shell-test/browser-steel-files.mjs passed (both apps, in the browser); node bin/test-detailcraft.mjs 13,113 passed, 0 failed.

Not done: STEP open and save in an app (waits for the comparison with the existing STEP reading on the same 159 files); in DetailCraft slots, rectangular holes, inner contours, marks, text, bend lines, angled end cuts and outlines that are not a rectangle are not carried into the model, and profile codes T, SO, RU and C are refused; unequal angle legs; saving an opened NC part and loading it again was not checked; the CadCraft command line itself was not tested, only the importer.

Update 2026-12-01, owner: "go - wire it into PartCraft in the lab". Built: add-on 0.2.0 (apps DetailCraft, CadCraft, PartCraft), packaged and signed, still staff-only. PartCraft's STEP open asks the add-on first (drawing-export-ui.js importStep and importMesh, files-ui.js, meshimport.js sealedMesh, addons/partcraft-api.js openFromAddon); the engine runs in a worker with a busy card and Stop, and hands over one closed mesh per placed body with its face table and exact surfaces (new engine export step_mesh_pack, engine commit 24b7a66); no hole-filling repair is run on it. Add-on off: unchanged.

Measured by the builder on 159 production STEP files, old path against new path: closed and manifold mesh into the kernel 137 -> 157; mesh kernel builds the part 141 -> 157; mesh volume off by more than 1% 19 -> 0; bounding box off by more than 1 mm 3 -> 0. Two files that hold surfaces only are refused with a plain message.

Tested: node tools/shell-test/steel-files.mjs 222 passed, 0 failed; browser-steel-files.mjs passed; test-step-roundtrip.mjs 85, test-step-exact.mjs 181, bin/test-addons-model-apps.mjs 37, all passed.

Not done: colours and body names are read but PartCraft's import feature has no field for them, so they are not kept; the exact STEP round trip still writes most faces as facets (20 files fully exact before and after; first cause found: a corner on a tangent plane and cylinder misses the writer's 1e-9 x size limit in step-exact.js, a 1e-8 limit was tried and gave a mixed result, not changed); the largest assembly (268 solids) freezes the page for about 26 s in the mesh kernel build after the engine finishes; the multi-file STEP drop does not use the add-on; real files were not opened in the browser, only purpose-written ones.

Update 2026-12-02, owner: yes to colours and body names in PartCraft's import, and yes to the multi-file STEP drop going through the add-on. Built: add-on 0.2.1, packaged, still staff-only. An import feature now carries `solids` (name, colour, triangle count per body) and `fcol` (per-face colours); names use the existing body names (rename, undo, save already worked); the 3D view draws body and face colours; the body list shows names and swatches (meshimport.js, part.js, kernel.js, mesh-kernel-worker.js, view3d.js, bodies.js, bodies-ui.js, drawing-export-ui.js). Parts saved before this open and build the same. The multi-file STEP drop (step-batch.js, step-batch-ui.js) reads each file through the add-on, one after another, with the busy card and Stop; each file becomes one part with all its bodies.

Tested: steel-files.mjs 255 passed, 0 failed; browser-steel-files.mjs 49 passed; test-bodies.mjs 121; test-mesh-import.mjs 38; test-step-roundtrip.mjs 85; test-step-exact.mjs 183; browser-cmp-partcraft.mjs 49 (batch with the add-on off).

Not done: hiding one imported body; colours in exports (exact STEP writes no colour; plain 3MF none); colours in the exact kernel's view; the batch does not fold repeated products into one part with several instances; per-body volumes are as imported; the new strings are English only; dark theme not checked. Related fix: FX.757 (exact STEP writer).

Update 2026-12-03: add-on 0.2.2 with a rebuilt STEP engine (commit 7614a0f): the mesher no longer writes folded or flipped triangles (see FX.759). On the 159 production files: 157 open, close and build as before, 2 surface-only files refused as before; triangles handed to PartCraft 3.04 million to 0.84 million; reading all files about 101 s to about 16 s (builder's figures). Lead re-ran tools/shell-test/steel-files.mjs with the new engine: 255 passed, 0 failed; listing and package still return 404 signed out.

lead 0.13 2026-12-04 (steel-13): engine already in /lab (add-on steel-files 0.2.3, wired into DetailCraft, CadCraft, PartCraft). Lab ccnc1.wasm byte-identical to ws11a b5f83a6; ccstep rebuilt from 7614a0f on ws11a is byte-identical to the lab wasm (sha256 5c0fb022...). Real files in /lab: 8 NC1 (2 FastCAM, 6 DSTV) 0 unread lines, byte-for-byte faithful write, DetailCraft and CadCraft open each; 6 STEP open in PartCraft with volumes within 0.006% of OpenCascade. Script tools/shell-test/browser-steel-real.mjs (takes the file folder as an argument). Left: the three ccstep commits after 7614a0f (not accepted by the lead); an app-side NC1 writer wired to the engine (DetailCraft keeps its own writeNc1); the /formats In development mark drops at the post-release re-read.

Waits on: Four ccstep build commits after a37867e not accepted; app NC1 writer on the engine; /formats mark drops after release re-read

Add a comment

Community comments

No comments yet

Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.

Sign in or create a free account to add a comment.