PCBnew has scripting enabled/built in.. there is even someone on the forums currently that writes tutorials for this and some others that seem actively involved in using it.
Might want to check them out and ask them if scripting can do that and how you should go about it to get it programmed..
See, that I don’t understand at all.
What kind of circuitry are you talking about, how many resistors, ICs, etc are involved in your head when you say this?
I’ve never encountered someone who was developing electronic circuits that would start with the layout, never.