From b818d7043dbd2c7e380032d1e16f68badbf0dafc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=27tite=20T=C3=AAte?= Date: Mon, 2 Nov 2026 19:34:13 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20Nommage=20des=20copies=20de=20motifs=20?= =?UTF-8?q?et=20de=20miroirs=20dans=20la=20r=C3=A9f=C3=A9rence=20de=20mod?= =?UTF-8?q?=C3=A9lisation=20(#11160)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Les motifs rectangulaire et circulaire prennent bodies et nomment leurs copies source (2), (3)…, en sautant les noms pris - Motif de features : nouveau BodyN, comme le miroir ; noms lus dans created_bodies - Miroir d'une copie : suffixe ajouté ; body.rename pour des noms stables ; renvoi à #8194 Co-authored-by: P'tite Tête --- skills/solidcraft-modeling/reference.md | 1 + 1 file changed, 1 insertion(+) diff --git a/skills/solidcraft-modeling/reference.md b/skills/solidcraft-modeling/reference.md index ce581d136..a9b65b9a1 100644 --- a/skills/solidcraft-modeling/reference.md +++ b/skills/solidcraft-modeling/reference.md @@ -87,6 +87,7 @@ Distances are unsigned. Draw the geometry on the correct side first, and the dim - **Names:** name every feature (`"name":"Standoff"`) and keep names unique across sketches and features. `timeline.roll_to {"feature":"Plate"}` picks the first match, which can be the sketch. - **Counts as parameters:** `parameters.add {"name":"n","expression":"6","unit":""}` creates a unitless parameter, and `"count":"n"` uses it in a pattern. +- **Names of pattern and mirror copies:** `solid.pattern.rectangular` and `solid.pattern.circular` take `bodies` as well as `features`, and name copies like `solid.mirror` does. `solid.pattern.circular {"bodies":["Groove end"],"axis":"Z","count":3}` keeps the original and makes the copies `Groove end (2)` and `Groove end (3)`. A name already taken is skipped: with `Groove end (2)` present, the copies are `Groove end (3)` and `Groove end (4)`. With `features`, the pattern makes a new `BodyN`, as in the `solid.mirror` row. Read the names from `created_bodies`. Mirroring a copy adds a suffix: `Groove end (2)` mirrored is `Groove end (2) (2)`. The pattern commands list no body-name parameter, so use `body.rename` for stable names. There is no way yet to refer to every copy at once, for example in `solid.combine` (#8194). - **Holes on a parametric bolt circle:** 1. Cut one hole with `solid.cylinder {"diameter":6.6,"height":"T + 2","base":["bcd/2",0,-1],"operation":"cut","name":"BoltHole"}`. 2. Repeat it with `solid.pattern.circular {"features":["BoltHole"],"axis":"Z","count":"n"}`.