Repository navigation
Description
What users see
You join 2 parts that are both grounded. The Joint dialog shows no note, and the
preview moves nothing. After OK, the joint appears in the browser and the
History bar. Neither part moves. Messages stays empty.
Nothing tells you to unground one part so the joint places it. The 2 pin glyphs
in the browser are the sole sign.
The engine knows. joint.create lists the new joint under conflicts. Its
reason is wrong, though: "off by 187.6832 mm and 180.000° from the placement the
other joints give". The design has no other joints.
Steps
- Save the script below as
make_bin.py. Runpython3 make_bin.py bin.json. - Run
solidcraft-cli run bin.json --save bin-grid.sc. - Open
bin-grid.sc. Bin is grounded when it is made. - Ground Cover too: right-click Cover:1 in the browser and choose
Ground. - Choose Assemble > Joint.
- For Component 1, pick the top of Bin's rim. For Component 2, pick the top of
Cover's flange. That is the 3.7 mm ledge that rings its lip. - Click OK.
Or, without the app: append these steps to bin.json and run
solidcraft-cli run bin.json --results --timings --quiet.
{"command": "occurrence.ground", "params": {"occurrence": "Cover:1", "grounded": true}},
{"command": "joint.create", "params": {"type": "rigid", "name": "Cover seat",
"a": {"occurrence": "Bin", "face": [92, 1.75, 40]},
"b": {"occurrence": "Cover", "face": [92, 185.8, 3]}}}make_bin.py: the test design
"""make_bin.py OUT.json: a 6 x 5 grid of 27 mm pockets at a 30 mm pitch, with rounded
corners and floor edges and a 4 x 4 grid of counterbored holes in each floor. Tab and
Cover are separate parts."""
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("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.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.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="root")
json.dump({"commands": cmds}, open(sys.argv[1], "w"), indent=1)Expected
- Before OK, the dialog says both parts are grounded, so the joint moves
neither. It offers to unground one of them. - After OK, Messages says the same as an error.
joint.creategives the real reason inconflicts, and underwarningstoo.
Actual
On upstream/main 871014f:
- The dialog shows no note. The preview moves nothing.
- After OK, the joint is kept, nothing moves, and Messages is empty.
joint.createreplies withfixed: [0, 2, 46](the design's base, Bin:1,
Cover:1), nowarnings, and:
"conflicts": [{"joint": 49, "name": "Cover seat",
"why": "off by 187.6832 mm and 180.000° from the placement the other joints give"}]Mechanism
build()puts the design's base and every grounded part into the fixed set
(crates/doc/src/joints.rs:2041,:2043).- Both sides of the new joint are already placed. The joint closes a loop with
nothing on its path to move. - The loop-closure check writes its generic text
(crates/doc/src/joints.rs:1960). It doesn't check whether both sides are
fixed. add_joint(crates/engine/src/cmd/joints.rs:732) has no check for 2 fixed
sides.check_sides(:694) refuses the same part twice, nothing else.
warnings(:752) covers values clamped to limits, nothing else.- The UI never reads
conflictsfrom a create reply. These places read pick
errors and stoppedjoint.drivereplies, nothing else:joint_problem(crates/ui-egui/src/dialogs_assembly.rs:1422)world_preview(:1664)- both OK paths (
crates/ui-egui/src/dialogs.rs:625,:4898)
Joining a body outside every component to a grounded part shows the same gap.
The design's base is fixed in every solve. That joint moves neither side either.
Activity
github-actions commentedon Nov 7, 2026
Claimed by @kaievns through #12868. The claim lapses after 14 days without pushes.
github-actions commentedon Nov 16, 2026
No draft PR showed up within 72 h, so this one is free again. Anyone can
/claimit.github-actions commentedon Nov 16, 2026
Claimed by @shadaytree through #18187. The claim lapses after 14 days without pushes.
Joint: a joint between 2 grounded parts says it moves neither, and of…
Joint: the grounded-pair messages in the complete catalogs, German an…
claim: tangency-labs#12867
Joint: a joint between 2 grounded parts says it moves neither, and of…
Joint: the grounded-pair messages in the complete catalogs, German an…
Joint: the grounded-parts note covers plane and axis picks, the root,…
claim: tangency-labs#12867
Joint: a joint between 2 grounded parts says it moves neither, and of…
Joint: the grounded-pair messages in the complete catalogs, German an…
Joint: the grounded-parts note covers plane and axis picks, the root,…
Merge #18187: Joint: a joint between 2 grounded parts says it moves n…