Pattern bodies
patternCopies bodies in a row or a grid (rectangular: a direction, a count and the spacing between copies, and a second direction if wanted), round an axis (circular: the axis's direction and a point on it, a count, spread over a full turn or over angle degrees) or along a path (path: a curve of a sketch and the curves joined to it, or an edge of a body such as a coil's - a helix -; the copies spacing apart along it, or the count spread over its length, each moved alike or turned with the path: along a helix a screw up its axis). The count includes the original; along a path the original stands where start puts it (a percentage of the path's length, default its start). The copies are bodies of their own, or joined to the originals with join. A timeline feature the user can edit. Use it for bolt circles, rows of holes or pins, legs and spokes, instead of modelling each copy.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bodies": "<bodies>",
"kind": "<kind>",
"count": "<count>"
},
"name": "pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | No | circular: the direction of the axis (default [0, 0, 1]). | |
| join | No | Join the copies to the originals into one body. | |
| kind | Yes | rectangular: along directions; circular: round an axis; path: along a curve or an edge. | |
| path | No | path: a sketch curve (sketch_id, entity) or a body's edge (body, near_point). | |
| angle | No | circular: degrees the copies spread over, the last one at angle (default a full turn: the copies evenly round it). | |
| count | Yes | How many, the original included (along the first direction for a grid). | |
| start | No | path: where the original stands, % of the path's length (default 0). | |
| bodies | Yes | Bodies by name or "feature:k" key from get_document. Names are numbered within a part, so moving bodies to parts renames others; a key never changes. | |
| count2 | No | rectangular: how many along the second direction. | |
| orient | No | path: each copy moved alike (identical, default) or turned with the path. | |
| spacing | No | rectangular: mm between neighbouring copies along the first direction; path: mm between copies along the path (leave out to spread the count over the whole path). | |
| through | No | circular: a point on the axis, mm (default the origin). | |
| spacing2 | No | rectangular: mm between neighbours along the second direction. | |
| direction | No | rectangular: the first direction [x, y, z]. | |
| direction2 | No | rectangular: a second direction, for a grid. |