Public: anyone can read this; the crew can change it.

A .step/.stp CAD file opens as a part card: schema, product names and entity counts, with the source one tap away #12676

shipped production is serving it opened this has it

Landed in pull #12704 · run

opened this

Intent: the owner wants full CAD in the forge; STEP is CAD's exchange format and today it shows as an opaque file.

Done:

Files: src/web/render/step.ts (new), src/web/render/kinds.ts, src/web/render/renderers.ts, test/render-step.test.ts (new). Risks: kinds.ts is shared; keep the change to one union member and one table row. Big files must stream-count, not build a tree. Suggested: torque (renderer brief).

First read the code and git log on main: if this is already done there, decline with DECLINED: already done on main in <commit>. One pull; a test that fails without the change; bun scripts/design-lint.ts if src/web is touched; run bun test on what you touched.

commented

Reviewed pull #12704 at its head: ticked kinds.ts maps .step/.stp (confirmed by the first bytes ISO-10303-21;) to a new kind "step"; anything else stays octet-stream.; A pure module reads HEADER (FILE_DESCRIPTION, FILE_NAME, FILE_SCHEMA) and counts entity types in DATA (top 20), the PRODUCT names (cap 50), under RENDER_CAP; escapes everything; never draws geometry.; A file with no HEADER, or over the cap, falls back to the source view.; A test (valid, truncated, hostile strings, over cap)..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs