add_sprocket
Create a static roller-chain sprocket plate from tooth count, chain pitch, and roller diameter to produce a mating sprocket for chain drive layouts.
Instructions
Add a roller-chain sprocket (ISO 606 / ANSI), built as a static solid plate.
teeth: tooth count (>= 3). chain_pitch: chain link pitch in mm (e.g. 12.7 for #40 / ANSI 40 chain). roller_diameter: chain roller diameter in mm. height: plate thickness in mm (default 6.0). placement: optional [x, y, z] mm translation.
Build: a disc of tip radius ~= pitch_radius + chain_pitch*0.3 with teeth
roller seats (circular pockets, radius roller_diameter/2 * 1.05) cut on the
pitch circle, one per tooth. This is a fit/visualisation approximation of the
true ISO 606 tooth form, not a load-rated profile.
Returns {handle, name, volume, pitch_diameter, chain_pitch, teeth, tip_radius,
bore}. pitch_diameter (mm) = chain_pitch / sin(pi/teeth) and chain_pitch are
the MATING numbers: a chain of the same chain_pitch wraps the sprocket, and the
centre distance between two sprockets derives from their pitch_diameters. bore
is 0 (no shaft hole cut yet — drill one with the hole command).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Sprocket | |
| teeth | Yes | ||
| height | No | ||
| placement | No | ||
| chain_pitch | Yes | ||
| roller_diameter | Yes |