Hi all, can anyone give us a hint on how to automatically place components where they should be?
We ask for help about EasyEDA API scripts.
- We want to generate PCBs for keyboards.
- Keyboard Layout Editor (KLE) is a commonly used tool for this, see https://bit.ly/3fEYwc1
- This is an example for a KLE keyboard layout: https://bit.ly/3fGLs65
- We want to automatically place the switches in the correct position according to KLE layouts.
- We started with a program that reads the positions from the KLE JSON: https://bit.ly/37wQEVv
What we have already tried:
- We have read the EasyEDA tutorial.
- We tried to reverse engineer JSON files of a schematic and a PCB with a switch, but "PCB JSON File Source" didn't help: https://bit.ly/3itycUj
- Our search revealed that it is possible to copy a component, place it in a specific location, and then change its suffix: https://bit.ly/3lESSdV
I think we just need a hint what API commands I need and what their syntax is.
BTW: These switches / sockets shall be placed: https://bit.ly/2X3Ez8y