I embarked on the design and implementation of a comprehensive computer-aided design (CAD) system specifically dedicated to worm gear drives. The entire system is built upon the AutoCAD 2000 integrated environment using its native VBA (Visual Basic for Applications) language, combined with Microsoft Access database management. The goal was to create a modular, parameterized, and highly efficient tool that can handle the entire workflow from initial design calculations to the automatic generation of detailed part drawings for both the worm and the worm gear. In this article, I present the systematic methodology, the underlying mathematical models, the database architecture, and the parametric drawing techniques that make the system both robust and user-friendly.
1. Introduction to the Worm Gear CAD System
Worm gear drives are widely used for transmitting motion and torque between non-intersecting, perpendicular shafts. Their high reduction ratios and smooth, quiet operation make them indispensable in applications such as conveyors, elevators, and precision machinery. However, the design of worm gear pairs is a tedious, iterative process that requires extensive reference to charts, tables, and empirical curves. Traditional manual calculations can take hours or even days, and are prone to human error. To address these challenges, I developed a CAD system that automates the entire design and drafting process. The system supports three common types of worm gears: ordinary cylindrical worm gear, arc-cylindrical worm gear, and straight-line enveloping worm gear. It performs geometric parameter calculations, force analysis, strength verification, and finally generates fully dimensioned part drawings. The typical workflow is illustrated in the structure diagram shown below.

2. Overall System Architecture
The system is conceived as a black box that accepts specific inputs and delivers reliable outputs. The input parameters include: input power \(P_1\), input rotational speed \(n_1\), transmission ratio \(i\) (or output speed \(n_2\)), required service life, and user-selected worm gear type and material. Based on these inputs, the system automatically performs conditional judgments, retrieves appropriate data from the database, executes iterative calculations, and outputs design results together with the corresponding part drawings. The modular decomposition of the system is as follows:
| Module name | Function description |
|---|---|
| Input Parameter Module | Accepts \(P_1, n_1, i, L_h\) and user choices (type, material, precision grade) |
| Type and Precision Selection Module | Enables picking of worm gear type and accuracy grade; accesses corresponding tolerance data |
| Tolerance and Inspection Module | Retrieves and verifies tolerance limits for chosen precision grade |
| Tooth Number Selection Module | Determines number of worm threads \(z_1\) and gear teeth \(z_2\) based on \(i\) and type |
| Main Parameter Module | Calculates axial module \(m\), pitch circle diameters, center distance \(a\), etc. |
| Strength Check Module | Verifies bending and contact strength; adjusts parameters if necessary |
| Structure Dimension Module | Computes overall dimensions, hub, web, flange sizes, etc. |
| Output Data Module | Displays and stores final design results |
| Parametric Drawing Module (Worm) | Generates worm shaft drawing with all structural features |
| Parametric Drawing Module (Worm Gear) | Generates worm gear blank drawing with tooth profile |
3. Database Construction with Microsoft Access
One of the critical components of the system is the database that stores all necessary design data, including material properties, coefficients, tolerance values, and geometric standards. I built a Microsoft Access database file (.mdb) containing multiple tables. The following table shows a sample of the material property table used for common worm gear materials.
| Material (Worm) | Material (Gear) | \(\sigma_{H\lim}\) (MPa) | \(\sigma_{F\lim}\) (MPa) | Application |
|---|---|---|---|---|
| 20CrMnTi (carburized) | ZCuSn10P1 | 1500 | 320 | High-speed, heavy load |
| 40Cr (quenched) | ZCuAl10Fe3 | 1200 | 250 | Medium speed, moderate load |
| 45 steel (quenched) | HT250 | 800 | 160 | Low speed, light duty |
In addition, I created relational tables for the selection of tooth number \(z_1\) as a function of transmission ratio \(i\), for the coefficient of elastic modulus \(Z_E\), and for the dynamic load factor \(K_v\). All these tables are accessed via SQL queries embedded in the VBA code. The database eliminates the need for manual lookup of charts during the iterative design process, significantly reducing computation time.
4. Theoretical Calculation of Worm Gear Geometry
The core of the system lies in the geometric and strength calculation modules. For ordinary cylindrical worm gears, the fundamental geometric relationships are as follows.
The axial module \(m\) is standardized. The pitch circle diameters of the worm \(d_1\) and gear \(d_2\) are:
$$d_1 = m\,q$$
$$d_2 = m\,z_2$$
where \(q\) is the worm diameter factor (e.g., \(q=8, 10, 12.5, 16, 20\)) and \(z_2\) is the number of gear teeth. The center distance \(a\) is:
$$a = \frac{m}{2}(q + z_2 + 2x_2)$$
with \(x_2\) being the profile shift coefficient for the gear. The lead angle \(\gamma\) of the worm is:
$$\tan\gamma = \frac{z_1}{q}$$
For strength verification, I implemented both contact strength and bending strength checks based on the standard AGMA or ISO methods. The contact stress \(\sigma_H\) on the gear tooth is given by:
$$\sigma_H = Z_E Z_H Z_\varepsilon \sqrt{\frac{2T_2 K_A K_v K_{H\beta}}{d_1 d_2 b}}$$
where \(Z_E\) is the elastic coefficient, \(Z_H\) the zone factor, \(Z_\varepsilon\) the contact ratio factor, \(T_2\) the output torque, \(K_A\) the application factor, \(K_v\) the dynamic factor, \(K_{H\beta}\) the load distribution factor, and \(b\) the face width. The allowable contact stress \([\sigma_H]\) is retrieved from the material database. The condition is:
$$\sigma_H \le [\sigma_H]$$
Similarly, the bending stress \(\sigma_F\) at the root of the gear tooth is:
$$\sigma_F = \frac{2T_2 K_A K_v K_{F\beta}}{d_2 b m} Y_{Fa} Y_{Sa} Y_\varepsilon$$
with shape factor \(Y_{Fa}\), stress correction factor \(Y_{Sa}\), and bending endurance factor \(Y_\varepsilon\). The system iteratively adjusts the module \(m\) and face width \(b\) until both strength conditions are satisfied.
| Prime mover | Driven machine | \(K_A\) |
|---|---|---|
| Electric motor (uniform) | Light shock (e.g., conveyors) | 1.0 |
| Multi-cylinder engine | Moderate shock (e.g., mixers) | 1.25 |
| Single-cylinder engine | Heavy shock (e.g., crushers) | 1.5–2.0 |
5. Force Analysis and Efficiency Calculation
The forces acting on the worm gear pair are essential for bearing selection and shaft design. The tangential force on the worm \(F_{t1}\) equal to the axial force on the gear \(F_{a2}\), and vice versa. The relationships are:
$$F_{t1} = \frac{2T_1}{d_1}, \quad F_{t2} = \frac{2T_2}{d_2}$$
$$F_{a1} = F_{t2}, \quad F_{a2} = F_{t1}$$
$$F_{r1} = F_{r2} = F_{t2}\tan\alpha_n$$
where \(\alpha_n\) is the normal pressure angle (usually 20° for cylindrical worm gears). The efficiency \(\eta\) of the worm gear drive is a function of the lead angle \(\gamma\) and the friction angle \(\rho\):
$$\eta = \frac{\tan\gamma}{\tan(\gamma + \rho)}$$
For self-locking worm gears, \(\gamma < \rho\), the efficiency drops below 0.5. The system automatically computes \(\rho\) based on the sliding velocity \(v_s\) and material pair, using interpolated data from the database.
| Sliding velocity \(v_s\) (m/s) | \(\rho\) (deg) |
|---|---|
| 0.5 | 6.0 |
| 1.0 | 4.5 |
| 2.0 | 3.0 |
| 4.0 | 2.0 |
| 8.0 | 1.2 |
6. Parametric Drawing of the Worm
After completing the calculations, the system proceeds to generate the worm shaft drawing. Since worms are typically integral with their shafts, the drawing includes the threaded portion (the worm itself) as well as all shaft segments (bearing journals, keyways, chamfers, undercuts, etc.). I adopted a primitive assembly approach: the worm shaft is decomposed into a set of basic geometric primitives (line segments, arcs, chamfers, and fillets). Each primitive is stored as a parametric subfunction that can be called with appropriate dimensions.
For example, to draw the worm thread profile in longitudinal section, I use the following parametric equations for the involute or Archimedean spiral (depending on worm type). The thread profile is approximated by a series of arcs and lines. The key VBA code snippet (simplified) used to draw the convex profile of an arc-cylindrical worm is:
Dim arc6 As AcadArc
Dim arc7 As AcadArc
r2 = da2 / 2 + ra2 - d2 / 2
y2 = r2 - (de2 / 2 - d2 / 2)
j5 = Sqr(r2^2 - (r2 - (de2 / 2 - d2 / 2))^2)
Set arc6 = ThisDrawing.ModelSpace.AddArc(pto1, r2, pi/2 - Atn(j5 / y2), pi/2 + Atn(j5 / y2))
where da2, ra2, d2, de2 are geometric parameters from the calculation module. The system automatically positions the arcs correctly relative to the centerline.
To accommodate different shaft configurations, I created a library of primitive modules: left shaft segment, right shaft segment, left chamfer, right chamfer, keyway, undercut, thread section, etc. The main drawing function first determines the number of shaft steps and their respective diameters and lengths, then calls the appropriate primitives in sequence. After assembly, full dimensions are added using the AddDimAligned and AddDimRadial methods. The resulting drawing is fully compliant with ISO/ASTM drafting standards.
7. Parametric Drawing of the Worm Gear
The worm gear blank drawing is more complex because it includes the tooth profile. The system supports multiple gear blank configurations based on the gear’s structure: integral, bolted, or welded designs. The user selects the blank type during the initial input, and the system computes the necessary hub diameter, web thickness, and number of ribs (if any). The tooth profile in the transverse plane is generated using a series of points calculated from the geometry of the gear cutting tool. For ordinary cylindrical worm gears, the tooth profile of the worm gear is an involute helicoid, but for simplicity, the drawing shows the axial profile approximated by a circular arc with appropriate modification.
The key step is to draw the tooth space and tooth tip arcs on the end view. The system uses the following formulas to locate the center coordinates of the arc:
$$r_g = \frac{d_a}{2} + h_a$$
$$x_c = 0, \quad y_c = – (r_g – h_f)$$
where \(d_a\) is the addendum circle diameter, \(h_a\) the addendum, and \(h_f\) the dedendum. The arc is drawn using AddArc method with start angle and end angle computed from the tooth thickness angle. Multiple teeth are generated by rotating the base profile about the gear axis using a loop. The resulting gear drawing includes the front view (showing hub, web, and rim) and the detailed view of a single tooth with its dimensions.
| Parameter | Formula | Value (mm) |
|---|---|---|
| Pitch circle diameter \(d_2\) | \(m z_2\) | 240 |
| Addendum circle diameter \(d_{a2}\) | \(d_2 + 2h_a^* m\) | 252 |
| Dedendum circle diameter \(d_{f2}\) | \(d_2 – 2h_f^* m\) | 225 |
| Face width \(b_2\) | \(2m\sqrt{q+1}\) (approx) | 48 |
| Hub diameter | 1.6 \(d_2\) (for solid gear) | 384 |
8. Automation and User Interface
The entire system is driven by a user-friendly dialog interface built with VBA UserForms. The main form collects all input parameters and provides dropdown lists for material and type selection. Once the user clicks “Calculate and Draw”, the system executes the following steps automatically:
- Validate input data (e.g., ensure \(i\) is within recommended range).
- Access the Access database to fetch material properties, coefficients, and tolerance data.
- Perform iterative geometric and strength calculations until convergence.
- Display intermediate results in a preview window, allowing the user to accept or modify.
- Launch AutoCAD and generate the worm and worm gear drawings in separate model space layouts.
- Add dimensions, tolerances, title block, and notes.
- Save the drawings as .dwg files.
The entire process takes less than two minutes, compared to several hours required for manual layout. The system is also designed for extensibility: adding a new worm gear type or a new material requires only updating the database and adding a few calculation subroutines, thanks to the modular approach.
9. Conclusion
In this paper, I have presented a comprehensive worm gear CAD system developed using AutoCAD 2000 VBA and Microsoft Access. The system integrates parameterized design, modular programming, and database technology to automate the tedious process of worm gear design and drafting. By encapsulating the design logic into reusable modules, the system achieves high maintainability and extensibility. The system has been validated with numerous test cases and produces accurate, standardized drawings that require only minor manual adjustments. Designers can now complete the design and drafting of a worm gear pair in a matter of minutes, significantly shortening the product development cycle and improving design quality. Future work will focus on integrating 3D solid modeling and finite element analysis to further enhance the capabilities of the system.
