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](https://bit.ly/3fEYwc1)
* This is an example for a KLE keyboard layout: [https://bit.ly/3fGLs65](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](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](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](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](https://bit.ly/2X3Ez8y)
![P/N:CPG151101S11](//image.easyeda.com/pullimage/jDYJvtGWZZdb5YEIZJELxe80w8sCeVmSV5dKjs9y.png)
Firefox
78.0
Windows
10
EasyEDA
6.4.20.6