Linear pattern
onshape_linear_patternCreate a linear pattern in Onshape by repeating selected parts, faces, or features along a direction at a fixed spacing and count.
Instructions
Repeat geometry along a direction, at a fixed spacing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ws | Yes | Workspace id — the <ws> segment of the document URL. | |
| doc | Yes | Document id — the <doc> in cad.onshape.com/documents/<doc>/w/<ws>/e/<elem>. | |
| elem | Yes | Element id (tab) — the <elem> segment of the document URL. | |
| name | No | Feature name shown in the tree (default "Linear Pattern"). | |
| type | No | What kind of thing is patterned (default PART). | |
| count | Yes | Total number of instances, including the original. | |
| distance | Yes | Spacing between instances, inches. | |
| entities | Yes | FeatureScript query selecting what to pattern. | |
| opposite | No | Pattern in the opposite direction. | |
| validate | No | Re-read the feature list afterwards and fail if the feature regenerated with an error (default true). | |
| direction | No | FeatureScript query selecting the direction entity. | |
| direction_ids | No | Deterministic id of an edge giving the direction. |