@rulecad/cad 0.7.57 → 0.7.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +48 -3
- package/CHANGELOG.md +200 -0
- package/EXAMPLES.md +421 -3
- package/README.md +391 -11
- package/bin/cad.mjs +102 -20
- package/lib/assembly.mjs +15 -2
- package/lib/beams.mjs +44 -11
- package/lib/buildpage.mjs +1 -1
- package/lib/fasten.mjs +31 -9
- package/lib/fittings.mjs +50 -8
- package/lib/framebuild.mjs +62 -6
- package/lib/framecheck.mjs +831 -0
- package/lib/framegen.mjs +111 -0
- package/lib/frameheat.mjs +94 -0
- package/lib/frameprint.mjs +277 -0
- package/lib/frames.mjs +2 -1
- package/lib/framesize.mjs +261 -0
- package/lib/jigs.mjs +18 -15
- package/lib/joins.mjs +7 -3
- package/lib/kit.mjs +190 -0
- package/lib/links.mjs +11 -3
- package/lib/list.mjs +6 -2
- package/lib/loads.mjs +3 -2
- package/lib/measured.mjs +24 -2
- package/lib/optimise.mjs +18 -3
- package/lib/order.mjs +10 -4
- package/lib/panels.mjs +1 -1
- package/lib/plates.mjs +31 -17
- package/lib/sheet.mjs +15 -1
- package/lib/task.mjs +39 -1
- package/package.json +5 -5
- package/schemas/assembly.schema.json +8 -5
package/AGENTS.md
CHANGED
|
@@ -21,7 +21,13 @@ variable says which rule it comes from. Follow these steps; they're what makes a
|
|
|
21
21
|
- When a part must fit something whose model exists (a maker's CAD, a model site), measure that model:
|
|
22
22
|
`npx cad measure <file> --rules <name> --source <url> --licence "…"`. Look at the drawing in `.preview/measure/`,
|
|
23
23
|
then rename the draft rules for what they are and say in each `rule` what the feature does.
|
|
24
|
-
- For a beam (an aluminium extrusion) the kit has no profile for,
|
|
24
|
+
- For a beam (an aluminium extrusion) the kit has no profile for, write its profile from the maker's spec sheet:
|
|
25
|
+
`npx cad rules draft profile <name>` writes every field as a draft; fill each the sheet gives (its value, `"kind":
|
|
26
|
+
"spec"`, the sheet, page and address as `source`, the date), delete the rest, and run `npx cad rules check <name>`
|
|
27
|
+
until it has no `rules.draft` warning. A section figure warned off its outline (`profile.section.*`) is first a typed
|
|
28
|
+
figure to hold against the sheet; if it is right, add the corner hollows the drawing shows as estimates, or measure
|
|
29
|
+
the section's DXF, and say in your report what is left: the checks use the sheet's figures. Never change the check;
|
|
30
|
+
then `npx cad rules draw <name>` and look at the drawing beside the sheet's. Or measure the maker's model or a DXF of its section:
|
|
25
31
|
`npx cad measure <beam.stl|section.dxf> --profile <name> --source <url> --licence "…"`. It writes a draft profile
|
|
26
32
|
set and the section's outline into this workspace's `rules/`. Look at the drawing, check the slot figures against
|
|
27
33
|
the maker's sheet, and never copy the outline out of the workspace: it is the maker's shape.
|
|
@@ -93,6 +99,12 @@ variable says which rule it comes from. Follow these steps; they're what makes a
|
|
|
93
99
|
drawn: one axis through the stack, a clearance hole in each part passed, a pilot, insert or nut at the far end, the
|
|
94
100
|
length chosen from what is sold, thread engaged, the seat under the head and the key's way to it, and `cad list`
|
|
95
101
|
counts the screws. Report what it finds with its numbers, and fix the part, never the relation, to make it pass.
|
|
102
|
+
- **A frame is beams and joins, never loose boxes.** Each beam is a `"beam"` item of a profile from a rule set (the
|
|
103
|
+
kit's or one in `rules/`, never sizes typed into an object), placed by its ends; each meeting of two beams is a
|
|
104
|
+
declared join, and its drilling, tapping, screws and nuts follow from it: never draw a join's holes or type its
|
|
105
|
+
screws. Every join's stiffness and play is an estimate until the joint rig measures it, so every frame figure that
|
|
106
|
+
rests on one (sag, sway, frequency, the diagonals to accept) is reported as resting on an estimate. The frames guide
|
|
107
|
+
(docs/guides/building-frames.md, on the docs site) walks a profile from its sheet to a checked box.
|
|
96
108
|
- **Beams are held to each other by a join**, not a fasten: `{ "kind": "blind", "a": "y1.a", "b": "x1.back@120" }`
|
|
97
109
|
(`npx cad add join …`), `b` the place on the other beam where a's end meets it. A blind or end-tap join taps a's end,
|
|
98
110
|
drills b and adds its screw to the fasten checks and the list. A bracket, gusset or splice join with `"fitting":
|
|
@@ -106,7 +118,32 @@ variable says which rule it comes from. Follow these steps; they're what makes a
|
|
|
106
118
|
fitting comes later (`join.fitting`). Move the beam to fix `join.geometry`, never the address, unless the
|
|
107
119
|
address is what was wrong; `join.stiffness` says whether it rests on an estimate or on the joint rig's
|
|
108
120
|
measurement (and its date): report it as it says. A `join.drop` is a prediction for a beam held by one join, to
|
|
109
|
-
measure and write back with `cad measured`, never a figure to tune.
|
|
121
|
+
measure and write back with `cad measured`, never a figure to tune. `frame.deflection` gives each sag twice, on
|
|
122
|
+
the joins' springs and with the joins rigid: report the first with what it rests on (`refs.restsOn`), never the
|
|
123
|
+
rigid one alone. Say where the frame stands with `"frame": { "supports" }` or fitted feet, not by moving beams.
|
|
124
|
+
`frame.rack` gives the racking stiffness each way and the gain each change (gussets, a brace, a panel) solves to:
|
|
125
|
+
report the stiffness, the gain and the change it advises, and say the push and the joins' springs are estimates.
|
|
126
|
+
`frame.frequency` gives the lowest mode against what the machine excites: report it with its pose, and look at
|
|
127
|
+
`<assembly>.frame-mode.svg` from `cad beams` to see what moves. To choose profiles, give `"frame": { "size": {
|
|
128
|
+
"profiles": [...] } }` and read `frame.size` (or `npx cad frame <project>/<assembly> --size`): report each group's
|
|
129
|
+
profile with the limit that set it and its margin, never pick a profile by hand where the sizing can; write it with
|
|
130
|
+
`--size --write` and check again, as its joins and lengths change. A task on a guide counts the beam's sag (the
|
|
131
|
+
frame's own figure where the frame is solved), straightness and twist in `task.accuracy`: report the biggest term
|
|
132
|
+
as it is named. `frame.heat` (given `"frame": { "heat": { "air": 45 } }`) says how much the frame grows and holds
|
|
133
|
+
each printed fitting to its plastic's softening point: move a failing fitting from the heat or print it in a plastic
|
|
134
|
+
that softens higher, never raise the softening figure. `beam.printable` (given `"frame": { "printed": "petg" }`)
|
|
135
|
+
says which beams could be printed and the margin each misses by: report the margin and what governs it, say it
|
|
136
|
+
rests on estimates (the printed section, creep) until the beam coupon is measured, and name the joins it says need
|
|
137
|
+
changing. A `beam.coupon` sag or break is a prediction to measure on the bench and write back with `cad measured`,
|
|
138
|
+
never a figure to tune; `beam.creep` fails a printed beam held too hard for months: a deeper section or aluminium.
|
|
139
|
+
A beam that needs slots in more than its top face prints standing up from the metal's profile
|
|
140
|
+
(`"printed": { "pose": "standing", "end": "nut" }`): its tapped end takes the thread `beam.end` names, and a foot
|
|
141
|
+
under it takes that `"thread"`. Report each printed beam's pose, grams and the sag `frame.deflection` gives.
|
|
142
|
+
- **A frame for a size starts from a generator**: `"frame": { "kind": "box", "inside": [w, d, h], "profile",
|
|
143
|
+
"join": "blind" }` (also portal, table, gantry, shelf) expands into beams, joins, feet and caps before anything is
|
|
144
|
+
checked. Ask by `inside` for what it must enclose, `outside` for what it must fit in; never work the lengths out by
|
|
145
|
+
hand. Read `frame.generated` for what it made, and `npx cad frame <project>/<assembly> --expand` to write it out
|
|
146
|
+
when it needs changes a generator cannot make, then edit the beams and joins as a hand-drawn frame.
|
|
110
147
|
- **Beams are cut and drilled by hand from their sheets and jigs**: `npx cad beams <project>/<assembly>` writes a
|
|
111
148
|
cut-and-drill sheet per mark, and `--jigs` writes the jigs as a plate in `exports/` (a drill guide per distinct
|
|
112
149
|
hole across a beam, a tap guide per tapped end, a cut-length stop per length, a squaring corner of the hand each square join takes),
|
|
@@ -146,10 +183,18 @@ variable says which rule it comes from. Follow these steps; they're what makes a
|
|
|
146
183
|
the user, and `cad order` shows them on the step.
|
|
147
184
|
- **A frame's build is `cad order`**: from bars to a square frame in numbered steps (cut, drill and tap, sides built
|
|
148
185
|
flat and squared, nuts to load, joins with their torque, the diagonals, then the rest). Give the user its steps and
|
|
149
|
-
its diagonals (`frame.square`: each and the difference to accept
|
|
186
|
+
its diagonals (`frame.square`: each and the difference to accept, stacked from the cut tolerances and the joins'
|
|
187
|
+
play; `"frame": { "cut": { "tolerance": 1 } }` where the user's saw holds less than the profile's figure). Once
|
|
188
|
+
squared, the difference they measure goes back with `cad measured <ref> frame.square.<beams>=<mm>`. If it is refused for a slot's nuts, change the
|
|
150
189
|
nut to the kind it names; never reorder the joins to get round it. Where a side is built on the frame, not flat,
|
|
151
190
|
the build says why; pass that on. Its load and "Slide ... screw into ... head first" steps give each nut and head a
|
|
152
191
|
way into its slot: pass them on as written. `cad check` counts the same steps.
|
|
192
|
+
- **To hand a build to someone, write its kit**: `npx cad kit <project>/<assembly>` writes
|
|
193
|
+
`exports/<project>/<assembly>-kit/` (the build page as README.md, buy.csv, each plate's 3MF and the jigs', each
|
|
194
|
+
mark's sheet; `--pictures` adds the steps' pictures). It refuses a design whose check fails: fix the failures, never
|
|
195
|
+
hand on a kit of one. `npx cad plates` lays out every printed part by material, with a frame's jigs beside them.
|
|
196
|
+
A new frame project can start from `npm create rulecad my-frame --machine frame --size 300x300x350 --profile
|
|
197
|
+
2020-misumi-hfs5`.
|
|
153
198
|
- A fit with `"fastens": true` is for what holds parts without screws (pins, a press, a clip). An older assembly with
|
|
154
199
|
a holes fit (`{ "holes": "pcb.board", "into": "case.body", … }`) and a fit that fastens the same parts gets a
|
|
155
200
|
`fasten.suggest` note from `cad check`: `npx cad add fasten <project>/<assembly> --from-fits` puts the fasten in
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,206 @@ print (a hole's diameter, a seat's depth, a part's outline). Each release lists
|
|
|
5
5
|
its reason. A **fasten** is an entry in an assembly's `"fasten"` list: one screwed joint, naming the screw by thread
|
|
6
6
|
and head, the parts it passes through and the part it ends in.
|
|
7
7
|
|
|
8
|
+
## 0.7.58: frame checks (Frames 3)
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **The kit counts as cad check does**: its README's pass count is cad check's, the files' schema check included (it
|
|
13
|
+
was one short), from one list both commands make. It says where each upright stands (a table of the corners, seen
|
|
14
|
+
from above, with each upright's mark), so the build is followed without `--pictures`. Laying out its plates copies
|
|
15
|
+
the printer's rule set into a fresh workspace's `rules/`, as any command that uses a tool's set does: the kit now
|
|
16
|
+
says which sets it copied (`copied` in `--json`).
|
|
17
|
+
- **Sheets in work order**: a beam's sheet numbers its operations in the order they are done (the ends cut, the holes
|
|
18
|
+
from end a, the taps), and a jig's label follows (`A4` where it was `A3`); marks, the cut list and the beam's own `ops` keep their order along the beam, from end a.
|
|
19
|
+
- **Printed beams said as printed**: a bay's squareness (`frame.square`) says "beams printed to ±0.5 mm" for printed
|
|
20
|
+
beams (the saw's tolerance taken for a printed length, an estimate), not "cut".
|
|
21
|
+
- **A gusset's face**: a printed gusset join takes `"face"`, the face of b it lies on (one of the two square to a);
|
|
22
|
+
the other one than its beams' directions give turns the L over. A generated frame names the face looking out of
|
|
23
|
+
the frame, so its printed gussets no longer land where a corner's third beam butts (a box joined by printed
|
|
24
|
+
gussets checked with 8 overlaps and an unreachable plate; it now checks clean). `face` on any other join, or a face
|
|
25
|
+
not square to a, is refused by name.
|
|
26
|
+
|
|
27
|
+
- **A draft said by name**: `cad rules check` warns `rules.draft` while a set made by `cad rules draft` still has
|
|
28
|
+
figures not read from a sheet (a rule or source starting `DRAFT`), naming each, so a half-filled profile, slot or
|
|
29
|
+
slot nut is never taken for a finished one. No printed size moves.
|
|
30
|
+
- **The frames guide** (`docs/guides/building-frames.md`, on the docs site): a profile from its spec sheet to a
|
|
31
|
+
checked box, built square; the machines guide gains a machine on a frame; AGENTS.md says a frame is beams and
|
|
32
|
+
joins, profiles come from rule sets and estimates about joins are reported as estimates.
|
|
33
|
+
- **A task on a slide** (with @rulecad/robots): a carriage's `task.reach` margin is how far it stands from the ends of
|
|
34
|
+
its travel (it said -159.59 mm to spare on a rail it reached end to end).
|
|
35
|
+
|
|
36
|
+
- **Printed beams' ends in a frame**: a printed beam in its place is drawn with its ends' inserts or captive nuts
|
|
37
|
+
(and collides by them), so a screw into its end is followed into its fixing; a beam printed standing from a metal's
|
|
38
|
+
profile takes its end's screw in its bore's place; a foot item takes `"thread"` for such an end; a screw of another
|
|
39
|
+
thread into a printed end fails `fasten.end` and names the thread. EXAMPLES chapter 17, a Raspberry Pi 4 case with
|
|
40
|
+
every beam printed, checked in aluminium and printed, its kit.
|
|
41
|
+
|
|
42
|
+
- **A kit**: `cad kit <project>/<assembly>` writes `exports/<project>/<assembly>-kit/`, one folder to build it from
|
|
43
|
+
without the model: `README.md` (what the checks say, what to buy, what to print, the jigs, the cut list, the drilling
|
|
44
|
+
and tapping, the build step by step with its torques and diagonals), `buy.csv`, each plate's 3MF and the jigs', each
|
|
45
|
+
mark's sheet, and with `--pictures` the whole and each step. Refused by name for an assembly whose check fails
|
|
46
|
+
(`kit.check`) or that has nothing to build from (`kit.empty`).
|
|
47
|
+
- `cad plates` groups by material as well as filament: a printed beam in its own `"material"` gets a plate of its
|
|
48
|
+
own (`<assembly>-petg-base-1`; `packed.material` in the plate's file, schema first). A frame's jigs are written
|
|
49
|
+
beside the plates, in the project's plastic (`--no-jigs` leaves them); the jigs now take the project's plastic
|
|
50
|
+
(PLA unchanged). A levelling foot's pad is printed beside its body and listed by `cad list`.
|
|
51
|
+
- A `nut-carrier` fitting item: `@rulecad/frames`' printed carrier for a hex nut or an insert in a slot (`face`,
|
|
52
|
+
`thread`, `holds`, `load`), its nut or insert on the list. `examples/bench` has `fittings/kit-2020`, a kit of
|
|
53
|
+
fittings alone for 2020.
|
|
54
|
+
- A link of a frame labels each beam by its mark (`mark A: profile-2020-misumi-hfs5 x 300 mm`, so the parts list
|
|
55
|
+
groups them) and carries each mark's cut-and-drill sheet as a view (`Beams: A`); the viewer offers a picked beam's.
|
|
56
|
+
|
|
57
|
+
### Changed
|
|
58
|
+
|
|
59
|
+
- **An optimisation's saved densities are kept by everything that makes them:** the problem, topopt's solver, the
|
|
60
|
+
FE and its threads backend, and cad's own code that readies the problem and calls the solver with its settings. A
|
|
61
|
+
change to any of them optimises again. Each problem already saved is optimised once more the first time it is run.
|
|
62
|
+
- **A generated portal says how it is held**: a portal lies in one plane, and on its two feet (each holding a leg's end
|
|
63
|
+
from moving, not from turning) it tips over out of that plane: every generated portal failed `frame.buckling`
|
|
64
|
+
(factor 0) or warned `frame.solve`, whatever its join or profile. `"frame": { "kind": "portal" }` is now refused by
|
|
65
|
+
name until `"supports"` says how its feet are held, as `{ "z1.a": "fixed", "z2.a": "fixed" }` for a portal bolted
|
|
66
|
+
to a bench or a wall. So held, it checks clean in 2020 joined blind and in 3030 and 4040 by printed gussets. No
|
|
67
|
+
printed size moves.
|
|
68
|
+
- **Guessed supports said**: where a frame has no feet and no `"frame": { "supports" }`, and its lowest ends pinned
|
|
69
|
+
would leave it free, the guess stands its posts fixed on their end faces (and lays a lying beam on its face). That
|
|
70
|
+
hid the frame's freedom: a 2020 portal with no supports passed `frame.rack` along y at 0.411 mm though it is free
|
|
71
|
+
that way, and racked along x at 0.259 mm where pinned feet give 1.669 mm and a warning. `frame.solve` now warns
|
|
72
|
+
that the supports are guessed, names what pinned feet would leave free (`refs.free`) and the ends held
|
|
73
|
+
(`refs.guessed`), and asks for feet or `frame.supports`; `frame.rack`, `frame.buckling` and `frame.frequency` say
|
|
74
|
+
they rest on the guess.
|
|
75
|
+
- **A generated frame's printed feet are screwed on**: each printed foot, levelling foot or stacking foot's upright
|
|
76
|
+
is tapped at its end as the foot says (M5, 18.5 mm deep in 2020) and a `fasten` holds the foot (an M5x16 cap screw
|
|
77
|
+
on the list). Where the join drills the uprights (blind, end-tap, hidden, anchor), the bottom ring rises by the
|
|
78
|
+
tap's depth so its access holes clear the tap: a box round 300 x 300 x 350 in 2020 on feet now has uprights of
|
|
79
|
+
408.5 mm, not 390, and its bottom joins at 28.5 mm. Before, the feet had no screw and the tap was missing from the
|
|
80
|
+
sheets. `cad frame --expand` writes the tap and the fasten.
|
|
81
|
+
- **A joint support's `"cell"` is its clips' alone**: it sets the FE cell of the printed clips under that joint, and
|
|
82
|
+
no longer the cell of the link bent beyond it (`link.deflection`). That link takes the new `"linkCell"` on the
|
|
83
|
+
same support; without it the link keeps its own cell, a third of its thinnest side, 1 to 4 mm. A workspace that
|
|
84
|
+
set `"cell"` to refine `link.deflection` now gets the default link cell, and its drop at the tool can move: put
|
|
85
|
+
the same figure in `"linkCell"` to keep it. The finding now names `"linkCell"`. A 170 mm link under 0.5 mm clips
|
|
86
|
+
was meshed at 0.5 mm (130 560 cells, about 3 GB and over ten minutes); it is now meshed at 2.67 mm. No printed
|
|
87
|
+
size moves.
|
|
88
|
+
|
|
89
|
+
### Fixed
|
|
90
|
+
|
|
91
|
+
- A frame in one plane on pinned feet (two posts and a rail, a generated portal) and a beam pinned at both ends were
|
|
92
|
+
left unsolved as mechanisms, their sag falling back to estimates. The part nothing holds (the plane's sway, the
|
|
93
|
+
beam's spin) is held for the figures while the loads do not move it, `frame.solve` names it (`refs.held`) and
|
|
94
|
+
`frame.rack` warns that a push across finds the frame free. With @rulecad/fea's `loose: 'hold'`. The hold carries
|
|
95
|
+
only the sag and the stresses: the modes and buckling count that freedom free. A portal on pinned feet with its
|
|
96
|
+
posts squeezed tips over, so `frame.buckling` fails it at a factor of 0 (it passed at 2.5 times its load, read off
|
|
97
|
+
the hold), and `frame.frequency` gives its lowest mode as 0 Hz and warns (it said 1.8 Hz).
|
|
98
|
+
- A panel across the top of a corner-post box (its rails joined to the posts, not to each other) was no shear web and
|
|
99
|
+
its weight was dropped as "not on a beam". It is a web on its bay now; a panel whose beams make no bay is weighed
|
|
100
|
+
along them (`refs.laid`).
|
|
101
|
+
- A gantry beam put all its weight on the side beam its joint is on; it is shared between the two it lies on by the
|
|
102
|
+
lever rule (`refs.riding[].on`). What rides or is loaded on a beam left out of the frame is named as not weighed
|
|
103
|
+
(`refs.off`), where it vanished.
|
|
104
|
+
- `frame.size`: the step search stalled where two groups tied for the worst figure; a group at its lightest profile
|
|
105
|
+
took its margin without the sag at its own nodes; with nothing fitting, the nearest design was ranked by a partial
|
|
106
|
+
check. Each is fixed in @rulecad/fea's sizing.
|
|
107
|
+
- A sag under 0.1 mm is given to three figures (0.0521 mm, not 0.052; 0.00123, not 0.001), in the task's error budget too.
|
|
108
|
+
- The schema said `frame.limit` held the sag at a named point; it holds every `frame.deflection` finding, as the code
|
|
109
|
+
did. The Euler check's rule (`frame.euler`) says it rests on ends held from moving sideways, and that a sway frame's
|
|
110
|
+
posts are the whole frame's buckling factor's to judge.
|
|
111
|
+
- A slot nut in a printed slot with sloped lips warned on every screw (`fasten.end`): the nut's fit note, which
|
|
112
|
+
@rulecad/frames gives at info level, was raised to a warning. It is said in the text.
|
|
113
|
+
- A slot nut's thread was counted from under the lips where the nut seats lower, under lips that slope underneath
|
|
114
|
+
(the printable slots, `slot_nut.seat`): an M4 drop-in nut in the printable 2020's slot seats 3.95 mm down, not 2, so
|
|
115
|
+
its thread runs from 3.15 mm. `fasten.length` and `fasten.engagement` now count from the seat: an M4x10 through a
|
|
116
|
+
4.4 mm plate engaged 2.45 mm and passed as 4.1. A screw into such a slot may now need the next length.
|
|
117
|
+
- A printed gusset or splice plate between beams of two profiles (MISUMI's 2020 and the printable 2020) is drawn for
|
|
118
|
+
both: each arm's tongue and nuts are its own beam's slot's, and it is thickened until a length sold fits both (its
|
|
119
|
+
name gains `-to-<profile>`). Printed size: chapter 17's T gusset, 4.4 to 4.6 mm thick, with M4x12 into the
|
|
120
|
+
printable slot; its splice plate, 4 to 4.6 mm.
|
|
121
|
+
- `frame.deflection` gave a stiff frame's sag as 0 mm: under 0.001 mm it is given to three figures.
|
|
122
|
+
- `fasten.seat` read a counterbore's floor in a part with a drawn thread (a levelling foot's body) as a cone and
|
|
123
|
+
failed it: such a part is measured at even steps, and now also at every face square to the screw's axis.
|
|
124
|
+
|
|
125
|
+
- **The lightest profiles**: `"frame": { "size": { "profiles", "groups", "limits", "by" } }` gives each group of beams
|
|
126
|
+
that must match (named, or found: one profile, one direction, one length) the lightest profile from the list that
|
|
127
|
+
meets the frame's own limits (each sag as `frame.deflection` holds it, stress with the joins' springs and rigid,
|
|
128
|
+
the frame's buckling and each grouped beam's Euler load with `frame.margin`, and the lowest mode against the task's
|
|
129
|
+
moves), in every pose, by `@rulecad/fea/frame`'s `sizing`. `frame.size` names, for each group, the limit its next
|
|
130
|
+
lighter profile breaks and the margin as chosen. `cad frame <project>/<assembly> --size` prints the table and
|
|
131
|
+
`--write` writes the profiles in (a quarter roll for a 2040 on edge, its end fittings, ends moved to the faces they
|
|
132
|
+
meet, a join a bore at a two-bore end, a generated frame written out expanded with its rings' outer faces kept,
|
|
133
|
+
a drawn beam that would stand past the end of the beam it meets moved along it, and nothing written where a join
|
|
134
|
+
would land off its beam).
|
|
135
|
+
`FRAME_SIZING` (`profiles`, `match`).
|
|
136
|
+
- `"frame": { "kind", "inside" | "outside", "profile", "join", "feet", "caps", "braces", "panels", "shelves" }`:
|
|
137
|
+
a box, portal, table, gantry or shelf generated from a size, expanded into beams, joins and their ends before
|
|
138
|
+
anything is built; `frame.generated` says what it made. `cad frame <project>/<assembly>` prints it and `--expand`
|
|
139
|
+
writes it into the assembly to edit by hand. An assembly with a generated frame needs no `items`.
|
|
140
|
+
- The assembly order takes a fitting without the tongue or pegs it stands in a slot or a beam's end with, as the
|
|
141
|
+
overlap check does (two end caps on one beam no longer lock it in), and a part placed on another goes on after it
|
|
142
|
+
whatever its fastening's distance from the base says. A fitting at a beam's end is held by that beam
|
|
143
|
+
(`assembly.loose` no longer names a gantry's end caps and feet).
|
|
144
|
+
- **Which beams can be printed**: `"frame": { "printed": "petg" }` (or `{ material, walls, infill, pose }`) tries each
|
|
145
|
+
beam of the frame printed in that plastic (the kit's printable profile of its size, lying down, spliced past the
|
|
146
|
+
bed, or standing up), solves the frame again and holds the beam to the frame's sags, its stress and Euler's load
|
|
147
|
+
with twice the margin, the creep limit, its sag as it creeps and the task's moves: `beam.printable` per beam with
|
|
148
|
+
its least margin, or the margin it misses by, and the joins that would need changing; then those that hold are
|
|
149
|
+
printed together and solved once more, one finding listing them. A printed beam's frame stress is now held to its
|
|
150
|
+
plastic's strength for its pose (across the layers standing up), and `beam.creep` checks it. A sag the frame as
|
|
151
|
+
drawn already misses is held to the drawn frame's own figure and 2% more, not to the limit, so a beam far from it is
|
|
152
|
+
not reported as needing metal for it.
|
|
153
|
+
- **The beam coupon**: a printed beam on two `frame.supports` with a mass on it predicts its sag and the mass it breaks
|
|
154
|
+
at (`beam.coupon`); `cad measured <ref> k1.sag=<mm>` and `k1.break=<kg>` write `beam_modulus` / `beam_strength`
|
|
155
|
+
(`_z` standing up) into the workspace's copy of the plastic's set as measured. The workspace's material sets (a
|
|
156
|
+
set with a density and no part) are now read by the frames a design builds. `"resting"` in `frame.supports`: held
|
|
157
|
+
from moving and from twisting about the beam's length. The bench has the coupon: `benchmarks/beam-test`,
|
|
158
|
+
MEASURE.md rows 38 and 39.
|
|
159
|
+
|
|
160
|
+
- **Printed beams**: `"printed": true` (or `{ pose, walls, infill, end, pull }`) on a beam item makes it a printed
|
|
161
|
+
part: drawn solid, weighed on `cad list` by the plastic its walls and infill lay (a part's `fill`), laid on a plate as
|
|
162
|
+
it prints (`"laid": true`, which `cad plates` writes), off the cut list and the beam sheets. Its findings say how it
|
|
163
|
+
prints. It was refused by name before.
|
|
164
|
+
- **The frame solved** (`@rulecad/fea/frame`): an assembly with joins is solved as beam elements, each join a rigid
|
|
165
|
+
link and its spring, held at its feet or where `"frame": { "supports" }` says. `frame.deflection` gives the sag at
|
|
166
|
+
each load, each `"frame": { "points" }` and every guide, with the joins' springs and rigid, and says which it rests
|
|
167
|
+
on; `frame.stress` each beam against its alloy and each printed fitting's join against its strength;
|
|
168
|
+
`frame.buckling` each beam in compression against Euler's load and the frame's first factor; `frame.solve` what
|
|
169
|
+
the model holds. A mass on a slide along a beam is solved at each end of its travel, and a beam riding a moving
|
|
170
|
+
joint weighs on the frame as a load. `refs.restsOn` is `estimate` whenever any join's spring is one. `cad beams` writes the
|
|
171
|
+
deflected shape as a check view, `<assembly>.frame-sag.svg`.
|
|
172
|
+
- **Racking and frequency** (#267): `frame.rack` racks the frame each way with a side push at its top, gives its
|
|
173
|
+
stiffness, and solves gussets, one brace and a panel in each open bay with each one's gain, advising the cheapest
|
|
174
|
+
that reaches the limit. A panel on a bay is a shear web in the model (its clips' grip an estimate). `frame.frequency`
|
|
175
|
+
gives the lowest modes with every carried mass, in the worst pose, against steppers' full-step rates and the task's
|
|
176
|
+
moves. `cad beams` writes the lowest mode animated, `<assembly>.frame-mode.svg`.
|
|
177
|
+
- **Squareness and the frame in the error budget** (#268): `frame.square` stacks each bay's cut tolerances and its
|
|
178
|
+
joins' play (`JOIN_PLAY`, estimates) across its diagonals, worst case and root-sum-square, lists each term, and is a
|
|
179
|
+
prediction `cad measured` takes as `frame.square.<beams>=<mm>`, the difference measured; once measured, it passes
|
|
180
|
+
within what the parts allow and warns that the bay leans past it. `"frame": { "cut": { "tolerance" } }` is the
|
|
181
|
+
workshop's own cut tolerance, taken by `frame.square` and the cut list. A task on a guide counts the beam's sag
|
|
182
|
+
(the frame's solved figure where the frame is solved), its straightness and its twist as named `task.accuracy`
|
|
183
|
+
terms. `frame.heat` gives the frame's growth from built to running air and holds each printed fitting to its
|
|
184
|
+
plastic's softening point, at the air's temperature or a heater's within its reach.
|
|
185
|
+
- **Schema:** `"frame": { "supports", "limit", "points", "rack": { "load", "limit" }, "cut": { "tolerance" }, "heat":
|
|
186
|
+
{ "air", "built", "heaters" } }` on an assembly.
|
|
187
|
+
|
|
188
|
+
### Changed
|
|
189
|
+
|
|
190
|
+
- Every assembly with joins now has these findings; a frame that fails `frame.deflection` or `frame.stress` makes
|
|
191
|
+
`cad check` fail where it passed before. No printed size moves.
|
|
192
|
+
- `frame.square`'s difference to accept now counts only the beams whose cut lengths set the opening, and adds the
|
|
193
|
+
joins' play: the 260 × 200 mm bay of a 2020 box with blind joins goes from 0.79 to 1.04 mm, its 220 × 260 mm bays
|
|
194
|
+
from 0.76 to 0.95 mm (before, the longer side counted whichever beams set it). The build page's bays carry `rss`
|
|
195
|
+
and `terms` too.
|
|
196
|
+
- A slide on a beam is solved at the middle of its travel too, so `frame.solve` counts one pose more for each slide not
|
|
197
|
+
drawn there, and a carriage between two supports is solved where it bends its beam most.
|
|
198
|
+
- On a sliding joint, `task.accuracy` names its biggest term in mm alone, no longer with a degree sign.
|
|
199
|
+
- `frame.deflection` names a load hung on an item by that item and its point (`g1-carriage-1 at (0, 0, 13)`), where it
|
|
200
|
+
said `[object Object]`.
|
|
201
|
+
|
|
202
|
+
### Fixed
|
|
203
|
+
|
|
204
|
+
- Two joins at one beam end's two bores (a 2040's `a.1` and `a.2`) now tap both: the second tap was taken for the
|
|
205
|
+
first, and its screw met an untapped 4.2 mm bore (`fasten`: no hole for M5).
|
|
206
|
+
|
|
207
|
+
|
|
8
208
|
## 0.7.57: frames in assemblies (Frames 2)
|
|
9
209
|
|
|
10
210
|
### Added
|