Open MitjaNemec opened 5 years ago
As this might not be an easy to solve, I'll maybe just add a proper handling and error message.
Correction, the plugin fails when the label name does not match the netname (some other label overrides the net name). This might be trickier.
But for now the plugin works if the label (hierarchical, local or global) is placed directly on pin.
OK after some thought, the issue cannot be resolved. So the swap_pins can only work robustly for pins which have labels directly attached to them.
When the pins are attached to label through short wire segment the label has to match the kicad_pcb
which (for complex projects) the designer cannot really guarantee from eeschema. A possible solution would be to check if the label name is the same as the pin name, and then assume connectivity, but I'll have to think about this.
swap_pins does not work when label (net name) is different than pin name and label is not at exact pin location see post in #36