sprocket

Hi !

I would like to make a inteligent sprocket , What I mean, I change the number of teeths and maybe the Outside diameter,

and finally my sprocket search with some formula her inside diameter and her circonferer.

I have a picture where I are now, but when I change something its all red or yellow so its not good

Do you have a idea? something easy but i can change fast with one or two number

Thankx

SolidworksDrawings And Detailing