Similar designs are family table business. Copy the M8 bolt file to a more general description. Create family table. Add an instance "M8" that has the M8 parameters, by adding all variables that are specific to the size. Create a new instance as "M12", and change the relevant parameters.