Parametric turning knob

This parametric knob is drawn in Open SCAD (www.openscad.org). It has a variable for the knob's diameter and a variable for the diameter of a square bore in the knob to fit on a rod of the machine. It can be locked with a bolt and hex nut M4, in order to prevent the knob from falling off.