MitjaNemec / Kicad_action_plugins

Kicad action plugins
413 stars 62 forks source link

swap_pins does not work when labels are not placed directly on symbol pins #40

Open MitjaNemec opened 5 years ago

MitjaNemec commented 5 years ago

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

MitjaNemec commented 5 years ago

As this might not be an easy to solve, I'll maybe just add a proper handling and error message.

MitjaNemec commented 5 years ago

Correction, the plugin fails when the label name does not match the netname (some other label overrides the net name). This might be trickier.

MitjaNemec commented 5 years ago

But for now the plugin works if the label (hierarchical, local or global) is placed directly on pin.

MitjaNemec commented 5 years ago

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.