add_thread
Create real ISO metric threads in SolidWorks models. Specify size, start center, length, and internal or external placement to cut printable threads with correct dimensions.
Instructions
Cut a real, printable ISO metric thread (SolidWorks' own Thread feature).
size: e.g. 'M10x1.5', 'M3x0.5', 'M10x1.0' -- checked against SolidWorks' thread profiles. (x_mm, y_mm, z_mm) = centre of the circular edge where the thread starts: the end face of a rod, or the mouth of a hole (internal=True). It runs length_mm into the material, right-handed. External: the rod must have the nominal diameter (M10 -> Ø10). Internal: drill the ISO basic minor diameter first, D - 1.0825*P (M10x1.5 -> Ø8.376). Returns mass properties and the thread's size, pitch and diameters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Thread | |
| size | Yes | ||
| x_mm | Yes | ||
| y_mm | Yes | ||
| z_mm | Yes | ||
| internal | No | ||
| length_mm | Yes |