create_linear_pattern
Repeats selected CAD features in a straight line within Onshape by specifying distance, instance count, and axis direction.
Instructions
Create a linear pattern of features
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": {
"documentId": "<documentId>",
"workspaceId": "<workspaceId>",
"elementId": "<elementId>",
"featureIds": "<featureIds>",
"distance": "<distance>"
},
"name": "create_linear_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Pattern name | Linear pattern |
| count | No | Total number of instances | |
| distance | Yes | Distance between instances in inches | |
| direction | No | Pattern direction axis | X |
| elementId | Yes | Part Studio element ID | |
| documentId | Yes | Document ID | |
| featureIds | Yes | Feature IDs to pattern | |
| workspaceId | Yes | Workspace ID | |
| reapplyFeatures | No | Re-run the patterned features per instance (Onshape's 'Reapply features'). Turn on if the pattern fails with PATTERN_SWITCH_TO_PER_INSTANCE because the patterned body was later filleted, chamfered or booleaned |