Skip to content

Parametric: assemblies, sheet metal, surfaces, weldments and fuller drawings - #253

Merged
jelveh merged 147 commits into
mainfrom
parfeat-nov26/integration
Nov 26, 2026
Merged

jelveh merged 147 commits into
mainfrom
parfeat-nov26/integration

Conversation

@jelveh

@jelveh jelveh commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Teacher feedback on Parametric: "I couldn't find Assembly, Drawing, Weldment, Sheet Metal and surface modeling that I use a lot in my classes."

This PR adds all five areas. Existing parts open, rebuild and render exactly as before.

What's new

Assemblies (File > New Assembly)

  • An assembly is a .parametric file that references its part files and keeps a copy of each, so it still opens after a part file is moved, shared or downloaded. Parts that changed are picked up on open, or with Update Parts.
  • Insert Components from the cloud, this browser or the device (part files, STEP, SolidWorks parts), with several instances per part (bracket<1>, bracket<2>). The first component is fixed. Components can be hidden, suppressed, fixed or floated, renamed, deleted, and opened with Open Part; save the part and go back, and the assembly takes the change.
  • Mates: coincident, parallel, perpendicular, distance, angle, concentric, tangent and lock. They reference faces by name, so they survive part edits.
    • The solver reports under-defined (with the DOF count), fully defined or over-defined, and marks conflicting mates.
    • Dragging a component moves it only as its mates allow. Alt+drag or Rotate Component turns it.
  • Exploded view steps, Interference Detection with overlap volumes, a bill of materials (copy or CSV), mass properties using each part's material, measure, section view, and STEP export with one named solid per component.

Drawings

  • Make Drawing is on a new Drafting ribbon tab, visible from the model, and in the File menu. The status-bar Model/Drawing tabs stay.
  • New view types:
    • projected views that stay aligned with their parent;
    • section views (horizontal, vertical or angled cutting line, hatched cut faces, A-A labels and arrows);
    • detail views, auxiliary views, and per-view scale, hidden and tangent edges.
  • Annotations:
    • Smart Dimension on the sheet (linear, aligned, radius, Ø, angle). Dimensions are tied to model edges, so they update when the model changes and show as "missing" in red when their edge is gone.
    • Centre marks and centrelines, notes with leaders, hole callouts read from Hole features.
  • Sheet: first- or third-angle projection with its symbol, a fuller title block (material, scale, date, revision, sheet number), ANSI C and D sizes. Export to PDF, SVG and now DXF.
  • Assembly drawings: bill-of-materials table, Auto Balloon and manual balloons, exploded views, and sections that hatch each component on its own.
  • Sheet metal: a flat pattern view with bend lines and bend notes.
  • Weldments: a cut list table.

Sheet metal (Sheet Metal tab)

  • Base Flange/Tab from a closed profile or from an open line/arc chain bent at each corner. Thickness, bend radius, K-factor (or bend allowance or deduction) and relief are editable from the Sheet-Metal row of the tree.
  • Edge Flange on one or more edges:
    • any angle;
    • length measured to the outer virtual sharp, the inner virtual sharp or the end of the bend;
    • material inside, material outside or bend outside;
    • offsets with reliefs.
  • Sketched Bend and Hem (closed or open).
  • Flatten shows the flat pattern (BA = π/180 · angle · (R + K·T)) with bend lines, bend notes and the overall size. Holes through flat regions are included. The flat pattern exports to DXF with layers for outline, cuts and bend lines.

Surfaces (Surfaces tab)

  • Surface types: extruded, revolved, swept, lofted, planar, offset (0 copies the faces) and filled.
  • Editing: Trim (with a plane, a sketch or another surface), Extend, and Knit. Knit can make a solid when the surfaces close a volume.
  • Surface to solid: Thicken, Thickened Cut, Cut With Surface, and Delete Face (delete, or delete and patch).
  • Surface bodies are kept separate from the solid, drawn in a warm tint and pickable, so sketches and features can use their faces. They go into STEP export as shells and are left out of mass properties.

Weldments (Weldments tab)

  • Structural Member on sketch lines and arcs from one or more sketches, in groups.
    • ISO and ANSI tubes, pipe, angles, channels, beams and bar, generated from their standard dimensions with corner radii.
    • Corner treatments: end miter, end butt 1 and 2, with a gap. Members of later groups are trimmed to earlier groups.
    • Profile rotation, mirror and pierce point.
  • Trim/Extend (planar or coped), End Cap, Gusset and Fillet Bead.
  • A cut list in the tree groups identical members, with quantity, description, length, end angles and mass. It exports to CSV.

Regression checks

  • Existing tests were not edited (only added to). All existing browser and unit tests pass.
  • Unit suite: 852 tests, passing on Node 24 and on Node 22 with TZ=UTC.
  • Browser suite: 743 tests, all passing.
  • Rebuild time of the example parts (cold, last-feature edit, first-sketch edit) is unchanged against main, and against this PR before the review fixes (within ±0.3 ms, medians of 11 runs).
  • Type check, licence check and production build pass.
  • The ribbon fits at 1280 and 1024 px. On phones the tab strip scrolls as before, now with an edge fade where more tabs are, and the chosen tab scrolls into view.

Adversarial review

A review of every area, with 103 fixes, one commit each. Each issue was reproduced before it was fixed. Nearly every fix has a regression test that fails without it.

  • Assemblies:
    • The fully-defined analysis of a 50-component assembly took 2.6 s after every edit; it now takes 0.12 s. Each edit solves the mates once instead of twice, and dragging no longer lags or spins the component.
    • Hidden components now count in mass properties.
    • A mate whose face is gone shows "Mate Errors", not "Over Defined".
    • Interference names the pairs it could not check instead of reporting "No interference".
    • Degrees of freedom are counted correctly at 0°/180° angle mates.
    • A part's surface bodies are measured and exported in assemblies.
    • Force Rebuild no longer leaves measure, mass and export without geometry.
    • Open Part falls back to the embedded copy of a moved or deleted part.
    • The memory cap of the geometry worker now applies in assemblies too.
  • Drawings:
    • Switching first/third angle moves the views to the right side.
    • Hole callouts count patterned and mirrored copies, not construction points.
    • A section whose cutting line misses the part says so instead of vanishing.
    • Arrange standard views asks before deleting section and detail views.
    • Views are kept on the sheet.
    • Auxiliary views show their viewing arrow.
    • Annotations move with the arrow keys.
    • Assembly drawings no longer stay empty after a component is suppressed and restored.
    • Balloon leaders end where the edge was clicked.
    • Tables follow sheet-size changes and continue in more columns when too tall.
    • Flat-pattern views report what they leave out and are placed where there is room.
  • Sheet metal:
    • With a bend deduction, bends over 90° use the 90° K-factor: a 179.5° flange flattened to 1452 mm before.
    • Hems with a bend deduction flatten.
    • Self-intersecting open profiles, flanges and sketched bends that run into the part, and bends across holes all say so instead of merging silently.
    • Patterns and mirrors of sheet metal features are refused.
    • Inch values read as typed: 0.048, not 0.04800000000000001.
    • The Sheet-Metal row edits the base flange that actually builds the part.
  • Surfaces:
    • An inward offset past a face's radius used to make wrong geometry; it now says it can't.
    • Trimming a hole kept both sides; it now keeps one.
    • Extending curved or hole edges works.
    • Thicken and Knit work on closed surfaces such as a sphere, and on strongly curved ones.
    • Hidden surface bodies are left out of drawings.
    • STL export says surfaces are left out.
    • Trimmed surfaces no longer grow worker memory on every rebuild.
    • Editing the solid of a part with large surfaces no longer re-meshes them: 37 ms → 2 ms.
  • Weldments:
    • Trim/Extend no longer cuts into later bosses or refills holes.
    • Coped ends respect the gap and stop at a beam's flange.
    • Nearly in-line members join cleanly instead of running metres past the corner.
    • Invalid solids are reported with a hint.
    • The cut list keeps members of different bend radii apart. Its masses subtract later cuts and holes. CSV export right after an edit uses the rebuilt lengths.
    • Picked members are highlighted.
  • Shared:
    • A damaged reference in a file no longer breaks feature panels.
    • Damaged files with huge or duplicate lists are refused or handled quickly instead of hanging the geometry engine.
    • The assistant is fully disabled in assemblies and reports surface bodies on their own.
    • Phone ribbon labels on the new tabs wrap between words.
    • Enter and Shift+F10 work on the Sheet-Metal and Flat-Pattern tree rows.

Known limitations

  • Assemblies:
    • No sub-assemblies.
    • Tangent mates only for plane, cylinder and sphere pairs.
    • No face-to-vertex mates.
    • Renaming a variable doesn't update mate equations.
    • Interference and export use the exploded positions while exploded.
  • Drawings:
    • One sheet per document.
    • Auxiliary views and angled sections are placed freely rather than aligned to their cutting line.
    • Dimensions can't snap to section cut outlines.
    • Bill-of-materials and cut-list tables grow upward from the title block, then continue in more columns, and can overlap views when they get long. A table too big for the sheet says so.
  • Sheet metal:
    • No miter flange or jog.
    • No per-flange bend radius.
    • No automatic corner relief where two flanges meet.
    • A sketched bend takes one line across a clean rectangular zone.
    • Cuts across a bend are not shown in the flat pattern; a note says so.
  • Surfaces:
    • Filled surface joins only by position (no tangency).
    • Thicken refuses curved sharp edges.
    • No Replace Face, no Surface Bodies folder.
    • Surfaces are not exported to STL.
  • Weldments:
    • No circle or spline member paths.
    • A Trim/Extend should follow the members it trims.
  • Assistant: it can't create the new feature types, and it is disabled inside assemblies.

Extruded, revolved, swept, lofted, planar, offset and filled surfaces; trim,
extend and knit; thicken, cut with surface and delete face. Surface bodies are
kept beside the solid, meshed and listed after its faces and edges, exported
to STEP as shells and left out of the solid's mass properties.
…features

Surface bodies are drawn in a warm tint of the part colour, can be hidden and
shown from the design tree, and their area is listed apart in Mass Properties.
…ssets in the geometry kernel

Structural members sweep standard ISO and ANSI profiles (generated from their
standard dimensions) along sketch lines and arcs, with miter and butt corners,
gaps, and trimming between groups. Trim/Extend cuts members to planar faces or
other members (planar or coped). The build reports each member's length, end
angles and volume for the cut list.
…p, Gusset and the cut list

PropertyManager panels pick sketch lines and arcs in the graphics area (or a
whole sketch from the tree) into groups, with the profile standard, type and
size from the library, corner treatment, gaps, rotation, mirror and pierce
point. The design tree shows Cut list (N); its dialog groups identical members
and exports CSV. The first member of a part without a material makes it plain
carbon steel.
…the kernel

Assemblies are .parametric files of their own kind that reference part files
and embed a copy of each part. A rigid-body mate solver (coincident, parallel,
perpendicular, distance, angle, concentric, tangent, lock) reports degrees of
freedom and conflicting mates. The geometry worker builds each part once and
places components for measuring, interference, mass, projection and STEP/STL
export.
…s, exploded view, BOM

File > New Assembly opens an assembly with its own ribbon and design tree
(components, Mates folder, exploded view steps). Insert Components places
parts from the cloud, this browser or the device; components can be fixed,
floated, hidden, suppressed, renamed and opened for editing. Dragging a
component re-solves its mates. Interference detection, the bill of
materials and mass properties work on the whole assembly.
…d-to-end tests of editing parts from an assembly
… projected and auxiliary views, Smart Dimension, notes, center marks and DXF export on the drawing sheet
…ng asks for a smaller one, instead of "the surface has no faces"
…quickly; the surfaces are no longer meshed again each time
… surface (a sphere) instead of saying it does not close a volume
…he surface it became, or is disabled saying a later feature used it
…e) is refused at once instead of keeping the geometry engine busy for minutes
…the geometry engine's memory each time (about 1.5 MB per rebuild)
…eanly at a butt corner instead of one reaching metres past the corner
…nstructor" says to pick a library profile instead of crashing
…il to build says why it is empty instead of doing nothing
…nes selected lists that line once instead of failing on a duplicate
…an earlier one joins it cleanly instead of being cut to a sliver
…t join into a valid body instead of an invalid one
…ith a hint (a flat trim touching a pipe along a line suggests Coped cut) instead of reporting OK
…d holes took, and say when a later fillet or shell is not counted
@jelveh
jelveh merged commit 42d18eb into main Nov 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant