@xavierw
if you like to code a bit, have a look at
this are some script to generate STEP and VRML models starting from a parametric table as in component’s data sheet
If you would like to play with the code, cadquery is a nice framework to let you generate parts with parametric scripts in python
here is a very simple example for a smd chip cap
may be you can have a look and create some script to generate TH resistors, than the other users could have a benefit
…
I found that, after playing a bit with cadquery, for me it is easier to create parts in python than manually 
PS use cadquery-freecad-module 2.0