How to calculate and Draw Gear in Auto cad

How to calculate and Draw Gear in Auto cad