I wanted to print a specific sprocket. Therfore I found no workbench or macro for FreeCAD, so I modelled one. It is fully parametric and can be easy changed. You only need FreeCAD, my file and the measurements from the Chain.
The 26 tooth sprocket was only added to show a picture :)
There is also a Youtube-How2, how I made it, but only in german language: https://www.youtube.com/watch?v=Ph1PE5d9EG0