add_fastener
Insert a parametric ISO fastener—socket head cap screw, hex bolt, hex nut, or washer—into a FreeCAD document at a given position and direction, with BOM part number and description set.
Instructions
Generate a parametric ISO-style fastener (steel, with part number and description set for the BOM): shcs = ISO 4762 socket
head cap screw, hex_bolt = ISO 4017, hex_nut = ISO 4032, washer = ISO 7089. length (mm under the head) is required for bolts.
position is the bearing face (underside of the head / one face of the nut or washer); direction is the way the shank
points, e.g. [0,0,-1] for a screw going down from a top face. Modelled nominal size (no threads).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | ||
| kind | Yes | ||
| name | Yes | ||
| size | Yes | ||
| length | No | ||
| position | No | ||
| direction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |