linear_pattern
Repeats selected SolidWorks features along a model axis by specifying total copies and spacing, with an optional second direction for grid patterns.
Instructions
Repeats features (names from get_feature_tree) in a row along a model axis: count copies in total (original included), spacing_mm apart, towards + (or - with reverse). direction2/count2/spacing2_mm add a second direction for a grid. The first use of an axis adds a hidden reference axis "Axis X (MCP)" (Y, Z) to the tree.
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": {
"features": "<features>",
"direction": "<direction>",
"count": "<count>",
"spacing_mm": "<spacing_mm>"
},
"name": "linear_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of copies along direction 1 (including original, >= 2) | |
| count2 | No | Number of copies along direction 2 (>= 1) | |
| reverse | No | ||
| features | Yes | ||
| reverse2 | No | ||
| direction | Yes | ||
| direction2 | No | ||
| spacing_mm | Yes | Spacing between copies in mm | |
| spacing2_mm | No | Spacing between copies in direction 2 in mm |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |