I don't know who wrote the gear macro and I don't know anything about sprocket and gear design.
You could draw a link of chain and then draw a tooth to match it.
Then copy and rotate it to the diameter and number of teeth you want.
You could draw a link of chain and then draw a tooth to match it.
Then copy and rotate it to the diameter and number of teeth you want.