If you had not asked, I simply would not have answered.
Simply, I do not understand the intent here. This could be language barrier.
This "appears" to an attempt to merge schematic symbols and schematic net names (and wires) while using connectors to represent the pins on a microcontroller; which is an overly complicated mess in my opinion.
The idea of creating a script to generate line wires and net labels automatically from the pin text already in the symbol is a good idea I think!
What am I going to do in CvPCB or PcbNew when J1 and J2 are really just 21 pin U1?