@cbernardo, @ChrisGammell, @devbisme, @Joan_Sparky: FreeCAD can be scripted and yes, it is possible to make 3D models scripting FC.
Me and Hyozd have done a FreeCAD repo of 3D models (in FreeCAD, STEP and VRML format) generated by some python script.
You can find those at:
FreeCAD 3D models script generator
there are also some generated models, usable out ‘of the box’ for kicad:
tantalum SMD capacitors
aluminum SMD capacitors
GullWings ICs in general
The models can be generated by the script; if your model is not already generated, you can add parametric data at the correspondent data base (a text file) and create your model.
here there is a starter guide:
FC script 3D model generator starter guide
When you have your VRML models, if you just put your STEP models in the same folder, you can also get all the pcb assemblies through kicad StepUp script.
kicad StepUp starter guide
Kicad StepUp script ECAD to MCAD
With kicad StepUp, it is possible to work in kicad EDA with the same component model data available in the STEP AP214 3D format, and obtain a 3D STEP AP214 model of the pcb board and a complete board assembles with electronic modules, to be used for MCAD interchange. The accurate 3D visualization of components on board assembles in kicad 3dviewer, is maintained in the same accuracy and aspect in STEP AP214 format.
here there is a video tutorial of the script:
kicad StepUp video howto
and here is a picture of how the ECAD and MCAD environments can be matched each other:
I’ve done also the models for OLIMEX MOD-MPU9150 board wich is done with kicad.
at this link the kicad MOD-MPU9150 board with all 3D models (VRML and STEP) and the full assemblies:
MOD-MPU9150 board with all 3D models
here the image screenshot as in FreeCAD:
and the 3D assemblies in STEP
I will be very happy to get some feedback of the 3D models and StepUp script.