I created a python script that creates a parametric keyboard matrix with diodes and switches for EEschema. It works very well. But something really bothers me and I would like your input!
The identifier that is created for each component is based on a timestamp that has very low granularity (seconds). The way I currently handle this: I get the current timestamp and for every component I create I increase this timestamp by one second to prevent duplicate Id’s. So if I create a 10x10 matrix with 100 diodes and 100 switches I need to wait, in theory, 200 seconds before I can create another unique set of timestamps.
I noticed when I copy a component in KiCad it just adds 6 seconds between component timestamps.
This all feels a bit weird and I’m not sure if i’m missing something! I hope simebody in this forum has more experience with parsing EEschema files!
Thanks in advance,