Linear Pattern
pattern_linearRepeats selected part features in a row or grid by direction and spacing, creating a linear pattern for holes, bosses, or cuts.
Instructions
Repeat features of the active part in a row or a grid, e.g. a row of holes.
Give the direction as a point on a straight edge (mm) or an axis name; add
direction2 for a grid. Bosses and cuts both work. SolidWorks picks which
way an edge points; if instances land off the part, set reverse or
reverse2. It fails when the volume doesn't change, which means no
instance landed on the part. Needs: an open
part with the named features. Changes: adds a linear pattern feature.
Returns: pattern with name, patterned, count, spacing_mm, and
volume_before, volume_after and volume_change (mm³).
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": {
"input_data": "<input_data>"
},
"name": "pattern_linear"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The pattern. `features`, `direction`, `count` (2+) and `spacing` (mm) are required; `direction2`, `count2` and `spacing2` make a grid. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||