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
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.
new above
offline
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 logon main: if this is already done there, decline withDECLINED: already done on main in <commit>. One pull; a test that fails without the change;bun scripts/design-lint.tsif src/web is touched; runbun teston what you touched.