Implementing Exact ANSI/ASME B29.1 Roller Chain Sprockets and GT2/HTD Pulleys in Pure TypeScript (Strict AutoCAD R12 DXF)
Most online sprocket drawing scripts take a shortcut: they subtract circles of radius Dr / 2 around a pitch polygon and call it a sprocket. The moment you plasma-cut or waterjet that DXF and wrap an ANSI #35 or #40 roller chain around it, the rollers climb the tooth flanks under load and chew through the chain in hours. In CutPath CAD , we built a zero-dependency TypeScript kernel (…
In the realm of CAD and industrial design, a new wheel emerges in the form of a zero-dependency TypeScript kernel for generating exact ANSI/ASME B29.1 roller chain tooth profiles and GT2/HTD timing belt pulleys. This innovative tool, CutPath CAD, ensures precise and reliable results when wrapping ANSI #35 or #40 roller chains around sprockets or pulleys.
The kernel, located at src/lib/cad/sprocketDxf.ts, achieves this feat by computing the exact four-segment ANSI/ASME B29.1 tooth form alongside curvilinear GT2/HTD 3M/HTD 5M timing belt pulleys. It tackles the challenge of chain-link length discrepancies and applies essential kerf compensation for plasma and laser cutting processes. The output consists of strict AutoCAD R12 (AC1009) closed polylines and 1:1 LightBurn SVGs, all within the browser environment.
CutPath CAD's approach begins with calculating the pitch radius (Rp) using the formula: Rp = P / (2 * sin(pi / N)), where P represents the pitch, Dr denotes the roller diameter, and N signifies the tooth count. This foundation enables the creation of four exact C1-tangent segments: Seating Curve (Radius R), Working Curve (Radius E), Straight Tangent Flank (yz), and Topping Curve (Radius F), all of which lock together analytically without any C1 discontinuity.
A notable feature of this cutting-edge tool is its ability to solve even roller chain links, addressing the issue of fractional or odd link counts, which often lead to unreliable half-link offsets on fixed shaft centers. By evaluating the standard chain length equation in pitches and solving for the exact center-to-center shaft spacing, CutPath CAD guarantees seamless integration of both upper and lower tangent roller-chain spans.
Additionally, CutPath CAD offers strict AutoCAD R12 (AC1009) compatibility, ensuring seamless import into various CAD tools like SheetCam, Langmuir FireControl, VCarve, and LightBurn. Outward kerf compensation, +K/2 for outer tooth loops and -K/2 for inner bores, maintains precise nominal dimensions and prevents roller pocket and shaft fit issues.
The tool even includes a 1.5x Plasma Hole Audit to verify the smallest shaft or hub bolt hole against the steel plate thickness, flagging any holes requiring drill-reaming post-cutting.
Experience the power of this precise and reliable TypeScript-based CAD solution at https://www.cutpathcad.com/sprocket-dxf or measure exact kerf first with their free Kerf Test Card at https://www.cutpathcad.com/kerf-test-dxf.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to