Repository navigation
Description
What users see
On the test design below, joint.create takes 26.9 s while the timeline
rebuilds. The rebuilt features don't read the part the joint moves.
An Extrude From or To a face causes it. So does a Revolve To a face. Moving any
part rebuilds that feature and every feature after it. The geometry comes out
the same.
The extrude and the 38 features after it rebuild, 39 of 44. 1 cut among them
takes 26.5 s. Moving Tab with occurrence.move costs 26.7 s.
Steps
- Save the script below as
make_bin_from.py. Run
python3 make_bin_from.py bin-from.json. - Run
solidcraft-cli run bin-from.json --save bin-from.sc. - In
bin-from.sc, Bin is grounded. Ledge (orange) is an Extrude From the top
face of Cover (blue). Tab (green) is a separate part. - Join Tab's bottom face to Bin's top rim, then move Tab, each undone after it:
echo '[{"command":"joint.create","params":{"type":"rigid","a":{"occurrence":"Bin:1","face":[1.75,77,40]},"b":{"occurrence":"Tab:1","face":[227,1,0]}}},
{"command":"occurrence.move","params":{"occurrence":"Tab:1","translate":[0,20,0]}}]' > ops.json
solidcraft-cli bench-open bin-from.sc --ops ops.jsonmake_bin_from.py: the test design
"""make_bin_from.py OUT.json: a 3-part assembly whose Bin has an Extrude From a face of Cover.
Bin: a 184 x 154 x 40 mm block. Its first feature after the parts exist is Ledge, an extrude that
starts From the top face of Cover. After Ledge come the slow features: a 27 mm pocket with rounded
corners and 16 counterbored holes, a 6 x 5 rectangular pattern of it, and the cut into Bin.
Tab and Cover are separate parts. Bin is grounded."""
import json, sys
NX, NY, P, C, M = 6, 5, 30.0, 27.0, 3.5
L, W, H, FLOOR = M * 2 + P * (NX - 1) + C, M * 2 + P * (NY - 1) + C, 40.0, 5.0
HOLES = [(6 + 5 * i, 6 + 5 * j) for i in range(4) for j in range(4)]
cmds = []
def add(c, **p): cmds.append({"command": c, "params": p})
add("component.create", name="Bin", parent="root")
add("solid.box", length=L, width=W, height=H, corner=[0, 0, 0], operation="new", body_name="Bin")
add("component.activate", component="root")
add("component.create", name="Tab", parent="root")
add("solid.box", length=C - 1, width=2, height=30, corner=[L + 30, 0, 0], operation="new", body_name="Tab")
add("component.activate", component="root")
add("component.create", name="Cover", parent="root")
add("solid.box", length=L, width=W, height=3, corner=[0, W + 30, 0], operation="new", body_name="Cover")
add("solid.box", length=L - 7.4, width=W - 7.4, height=2, corner=[3.7, W + 33.7, 3], operation="join")
add("component.activate", component="Bin")
add("sketch.create", plane="XY")
add("sketch.rectangle.two_point", p0=[0, W], p1=[L, W + 8])
add("sketch.finish")
add("solid.extrude", distance=4, **{"from": [L / 2, W + 30 + W / 2, 5]}, operation="new", body_name="Ledge")
add("solid.box", length=C, width=C, height=H, corner=[M, M, FLOOR], operation="new", body_name="Cell")
add("solid.fillet", edges=[[M + dx, M + dy, 20] for dx in (0, C) for dy in (0, C)], radius=4)
add("solid.fillet", edges=[[M + C / 2, M, FLOOR]], radius=2)
pins = []
for n, (hx, hy) in enumerate(HOLES):
add("solid.cylinder", diameter=2, height=FLOOR + 1, base=[M + hx, M + hy, -0.5], operation="new", body_name=f"Pin{n}")
add("solid.cylinder", diameter=4, height=2.5, base=[M + hx, M + hy, -0.5], operation="new", body_name=f"Bore{n}")
pins += [f"Pin{n}", f"Bore{n}"]
add("solid.combine", target="Cell", tools=pins, operation="join")
add("solid.pattern.rectangular", bodies=["Cell"], dir1=[1, 0, 0], count1=NX, spacing1=P, dir2=[0, 1, 0], count2=NY, spacing2=P)
add("solid.combine", target="Bin", tools=["Cell"] + [f"Cell ({k})" for k in range(2, NX * NY + 1)], operation="cut")
add("component.activate", component="root")
add("occurrence.ground", occurrence="Bin:1", grounded=True)
json.dump({"commands": cmds}, open(sys.argv[1], "w"), indent=1)Expected
Moving Tab rebuilds nothing. Ledge reads where Cover is, and Cover doesn't move.
Moving Cover rebuilds Ledge and what follows it, so Ledge follows Cover's top
face (#928).
Actual
3 runs of bench-open on upstream/main 871014f, --profile ci build, machine
load under 2:
| Command (then undone) | Time | Features rebuilt |
|---|---|---|
joint.create Bin to Tab |
26,871-27,004 ms | 39 of 44 |
occurrence.move Tab by 20 mm |
26,700-26,743 ms | 39 of 44 |
Features rebuilt are counted from a --profile-out trace of each command. After
the rebuild, no feature reports an error, and Bin keeps its 1,956 faces.
Mechanism
placement_digest(crates/doc/src/eval.rs:1769) adds the placements a
feature reads to its cache key.- An Extrude From or To a face sets
reads.all(eval.rs:1832). So does a
Revolve To a face (:1833). Their key then takes every part's placement. - Creating a joint moves Tab. Ledge's key changes, although Ledge reads a face
of Cover. - The key feeds
chain_fingerprint(eval.rs:1461). Every feature after Ledge
gets a new key and rebuilds. - Evaluation finds a named face by its name.
with_named_face_points
(eval.rs:6667) moves the point onto the named face first. It fails the
feature with "reselect it" when no one face has the name. The face's body is
known from its stored name before evaluation.
Related
- Joint drag: one cross-component feature makes every drag frame re-run unrelated booleans on the UI thread #6325 names this narrowing as a fix idea for joint drags: "To/From Object
needs the placement of its target's component only". - Joint drag: smooth dragging in large assemblies (#6325) #9021 smooths joint drags by evaluating once on release. It doesn't change the
cache key, sojoint.createandoccurrence.movestill rebuild. - Timeline: an edit in one component recomputes every later feature in unrelated components #6183 is the cascade: one changed key rebuilds every later feature in every
component.

Activity
github-actions commentedon Nov 7, 2026
Claimed by @kaievns through #12866. The claim lapses after 14 days without pushes.