Another quick way to generate part would be to get MITCALC MS Excel file that is able to calculate & generate the part in Solidworks as well as other design aspect components (gears, belts & chains, springs,bearings, etc). I believe it has a 30 day free trial and is an approved Solidworks partner product.
( -product/mitcalc-solidworks )