In the KiCad project, we ship 3D models of electronic components so people can do a rendered or raytraced preview of their PCB before sending it off to manufacture.
Several of the models are rather repetitive, for example the models for pin headers exist in 1x1, 1x2, 1x3, ... 1x30, 2x1, 2x2, 2x3, ..., 2x30, 3x1, 3x2, 3x3, ..., 3x30 variants, and each of these for multiple common configurations of pin pitch and thickness.
These are currently generated with a script, which generates a lot of output, and is difficult to maintain.
Is there a way in Blender to build a parametric model, ideally in a way that remains editable? Typical parameters would be distances, loop counts, texts and colors (e.g. for rings on resistors).
OpenSCAD comes close to what we need, but is difficult to use and doesn't generate material information, which makes the models unusable for rendering.