---
name: "stl_threads"
section: "1"
platform: "linux"
package: "stlcmd"
version: "1.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/stl_threads"
---

# stl\_threads(1)

stl\_threads outputs an STL file with male or female threads per the ISO metric screw thread standard.

## NAME

stl\_threads - stl\_threads outputs an STL file with male or female threads per the ISO metric screw thread standard.

## DESCRIPTION

stl\_threads outputs an STL file with male or female threads per the ISO metric screw thread standard.

usage: stl\_threads \[ **-f** \] \[ **-D** \<diameter\> \] \[ **-P** \<pitch\> \] \[ **-a** \<angle\> \]

-

  \[ **-h** \<height\> \] \[ **-s** \<segments\> \] \<output file\>

-

  Outputs an stl file with male or female screw threads per the ISO metric screw thread standard (http://en.wikipedia.org/wiki/ISO\_metric\_screw\_thread).

**-f** - Outputs female threads (defaults to male).

**-D** \<diameter\> - Changes to major diameter of the threads.

**-P** \<pitch\> - Changes the height of a single thread, aka the pitch per the

-

  ISO metric standard.

**-h** \<height\> - Changes the total height of the threads.

**-a** \<angle\> - Changes the thread angle (degrees). The standard (and default)

-

  is 60 degrees. For 3D printing this can cause overhang issues as 60 degrees results in a 30 degree angle with the ground plane. Setting to 90 degrees results in a 45 degree angle with the ground plane.

- **-s** \<segments\> - Changes the resolution of the generated STL file. More

  segments yields finer resolution. \<segments\> is the number of segments to approximate a circle. Defaults to 72 (every 5 degrees).

- **-o** \<outer female diameter\> - When generating female threads, this is the

  outer diameter. Must be greater than \<diameter\>.
