the cad software creates the wires himself
Task is to create the .SCH-file by our app, we cannot rule by the CAD-software.
No, each component must be created, creating rectangle (as my simplest abstract solution), pins.represented as a list of points
Each net must be created by creating wires (that must be drawn _somehow_ depending on several rules as i described above). Or by text labels placed at the same coordinates of the pins, as my solution.
KiCAD also requires initially to create the library built-in into the sch file.
No, i'm sure to draw lots of wires in the schematic programmatically = automatically for user - it's impossible if by some "simple" way. It's the same hard routing task like in the PCB tracks routing.