sketch_pattern
Creates rectangular or circular patterns of sketch entities in Fusion 360, returning instance references and parametric constraints for repetitive geometry.
Instructions
Pattern sketch entities, all or nothing. Counts include the original.
rectangular: count_x (≥1), spacing_x (Length), count_y=1, spacing_y=0, angle=0 (degrees from sketch X) or direction (a line ref).
circular: center (point), count (≥2), angle=360 (total, degrees). Spacing/angle: number = mm/deg, string = expression. When the Fusion version has the pattern constraint the result is parametric (
parametric: true,constraint); otherwise plain copies (parametric: false).
Returns {"instances": [[refs]...], "parametric", "constraint"?, "status", "profiles"}.
Example: 6 holes on a circle: sketch_pattern(sketch=, entities=[], kind="circular", center="origin", count=6).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Pattern type | |
| angle | No | rectangular: X direction (default 0); circular: total (360) | |
| count | No | circular: instances | |
| center | No | circular: centre point | |
| sketch | Yes | Sketch ref (from sketch_create) | |
| count_x | No | rectangular: instances along X | |
| count_y | No | rectangular: default 1 | |
| entities | Yes | ||
| direction | No | rectangular: line ref for X direction | |
| spacing_x | No | rectangular: X step | |
| spacing_y | No | rectangular: default 0 | |
| return_profiles | No | Add the current profiles to the result (false = faster) |