pattern_rectangular
Copy features, bodies, faces, or occurrences along one or two directions in Fusion 360, controlling quantity, spacing, and symmetry.
Instructions
Rectangular pattern: copy features, bodies, faces or occurrences along one or two directions.
Quantities count the original (quantity1=3 -> the original + 2 copies). Units:
distances in units (default mm) or Fusion expressions; quantities are whole numbers
or expressions. Refs: bodies/faces from inspect_query, features from earlier
feature_* results, directions from inspect_query edges, construction_* axes or
origin:X|Y|Z. All entities must be of one kind (Fusion requirement).
Errors: mixed kinds (details.kinds), quantity < 1, direction2 with quantity2 > 1 but no distance2 -> INVALID_PARAMS (nothing changed); a pattern Fusion cannot compute -> FUSION_API_ERROR, rolled back.
Returns {"feature": {ref, type, name}, "health": {"state", "message"}, "created_bodies": [{ref, type, name}], "modified_bodies": [...], "removed_bodies": [tokens]} plus "created_occurrences": [{ref, type, name, full_path_name}] for occurrence input.
Example: pattern_rectangular(entities=[], direction1="origin:X", quantity1=3, distance1=30, direction2="origin:Y", quantity2=2, distance2=25)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | Unit of plain-number lengths | mm |
| compute | No | Feature input only: adjust (default), optimized or identical | adjust |
| entities | Yes | What to pattern - all of ONE kind: feature refs (timeline features), body refs, face refs (inspect_query) or occurrence refs | |
| distance1 | Yes | Spacing (or extent) along direction1; negative flips it | |
| distance2 | No | Spacing (or extent) along direction2 | |
| quantity1 | No | Instances along direction1 | |
| quantity2 | No | Instances along direction2 | |
| direction1 | Yes | Straight edge, sketch line, construction axis or origin:X|Y|Z | |
| direction2 | No | Optional second direction | |
| symmetric1 | No | Spread both ways along direction1 | |
| symmetric2 | No | Spread both ways along direction2 | |
| distance_type | No | spacing (default): distance between instances; extent: total | spacing |