create-rulecad 0.3.18 → 0.3.19

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/CHANGELOG.md CHANGED
@@ -5,6 +5,19 @@ print (a hole's diameter, a seat's depth, a part's outline). Each release lists
5
5
  it makes, with its reason. A **fasten** is an entry in an assembly's `"fasten"` list: one screwed joint, naming the
6
6
  screw by thread and head, the parts it passes through and the part it ends in.
7
7
 
8
+ ## 0.3.19: pins, magnets and printed bolts in the agent notes (Fixings 4)
9
+
10
+ ### Changed
11
+
12
+ - The template's `AGENTS.md`, copied from `@rulecad/cad`, tells an agent to name pins and magnets in a fit's
13
+ `fastener` (`{ "pin": "snap pin 4x6", "count": 2 }`, `{ "magnet": "disc magnet 8x3", "count": 2 }`) with their holes
14
+ drawn by `v.fixings`, a printed bolt as a fasten's screw with the word printed, and that snap pins live in
15
+ `v.fixings` now.
16
+
17
+ ### Printed sizes that moved
18
+
19
+ None: the template's designs are unchanged.
20
+
8
21
  ## 0.3.18: a frame to start from (Frames 3)
9
22
 
10
23
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rulecad",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "description": "Start a rulecad project: npm create rulecad my-designs. A workspace with a soap tray to start from, ready to check, preview, export and share.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -195,6 +195,12 @@ variable says which rule it comes from. Follow these steps; they're what makes a
195
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
196
  A new frame project can start from `npm create rulecad my-frame --machine frame --size 300x300x350 --profile
197
197
  2020-misumi-hfs5`.
198
+ - What holds parts with no steel screw is named in the fit's `fastener`, never typed in a note:
199
+ `{ "pin": "snap pin 4x6", "count": 2 }`, `{ "pin": "dowel 3x12", "fit": "press" }`, or
200
+ `{ "magnet": "disc magnet 8x3", "count": 2, "load": 10 }`, with the holes or pockets drawn by `v.fixings.pinHole(...)`
201
+ and `v.fixings.magnetSeat(...)` under the same name. `cad check` then finds and checks them and `cad list` counts
202
+ them. A bolt to print is a fasten's screw with the word printed (`"M8x20 hex printed"`). Snap pins live in
203
+ `v.fixings` now (`v.flexures.snapPin` still draws the same pin); snap hooks and ratchets stay in `v.flexures`.
198
204
  - A fit with `"fastens": true` is for what holds parts without screws (pins, a press, a clip). An older assembly with
199
205
  a holes fit (`{ "holes": "pcb.board", "into": "case.body", … }`) and a fit that fastens the same parts gets a
200
206
  `fasten.suggest` note from `cad check`: `npx cad add fasten <project>/<assembly> --from-fits` puts the fasten in