The diameter of a gear depends on its tooth count and tooth size. If you want a gear with a particular diameter you can get close by seeting the module to d/teeth, but that specifies the pitch circle, ...
Department of Chemical Sciences, Federico II University of Naples, Via Cintia, 80126 Napoli, Italy ...