sw_generate_fastener
Generates ISO metric socket head screws, hex bolts, hex nuts, or washers with cosmetic threads in a new SolidWorks document, saving reusable fastener parts for assemblies.
Instructions
A metric fastener part (ISO 4762 / 4017 / 4032 / 7089) with cosmetic thread, in a new document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| save | No | Save to <output>/fasteners for reuse in assemblies. | |
| size | Yes | 'M2' ... 'M24'. | |
| length | No | Screws/bolts: length under the head (mm). | |
| overwrite | No | Replace an existing file (the user is asked first). |