add_linear_pattern
Repeat a feature a specified number of times at set spacing along a direction to create a linear pattern in SolidWorks parts.
Instructions
Repeat a feature count times, spacing_mm apart, along a direction.
direction: "+x"/"-x"/"+y"/... feature_name: the feature to repeat (e.g. "Hole"); defaults to the most recently added feature. Returns mass properties.
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": {
"count": "<count>",
"spacing_mm": "<spacing_mm>"
},
"name": "add_linear_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| direction | No | +x | |
| spacing_mm | Yes | ||
| feature_name | No |