I want to experiment with using standard PCB features as tools for light transmission or manipulation. One of the basic things I want to try is to place “very many” drills and/or vias as light pathways.
Is there a way to turn, e.g. all points in an imported DXF or SVG into a bulk collection of drills or vias? I have several possible parametric tools to create the graphic file, but hoping to avoid placing 1000s of vias manually.
This seems fine for uniform holes, and for testing the ideas. But not for parametrically spaced, or otherwise tesselated by some sort of algorithm generated elsewhere.
If I create them someplace else as text, KiCAD will be able to parse and render them as part of the overall layout? That would probably work fine as long as the generated drills/vias could be part of items that were placed conventionally via pcbnew.
Recently I experimented a bit with the “replicate layout” script in Pcbnew. I could run the script directly in Pcbnew, and as many times as needed during modifying the PCB.
The “replicate layout” script is not what you want, but it does show that scripts directly in KiCad work (at least for me, not every KiCad version has scripting enabled) and that the script can interact with the board in a mix and mash relationship as needed.