• Maciej Suminski's avatar
    Added NETINFO_MAPPING, to ease saving nets with consecutive net codes (without... · 15b8d3d2
    Maciej Suminski authored
    Added NETINFO_MAPPING, to ease saving nets with consecutive net codes (without modifying the net codes during the run time).
    Now, nets are saved with consecutive net codes (both modern & legacy plugins).
    Zones are saved together with their nets, without depending on the fact if there are any pads with such net. Therefore validation of zone net names was removed (pcbnew/class_board.cpp).
    
    Performed tests:
    - Changed a pad's net name from empty to existent - ok, name was changed.
    - Changed a pad's net name from empty to nonexistent - ok, error message is displayed, net name stays empty.
    - Changed a pad's net name from existent to empty - ok, net name became empty
    - Changed a pad's net name from existent to nonexistent - ok, error message is displayed, net name is not changed.
    
    - Drawn a zone that belongs to a net, then modified schematics so the net does not exist anymore. After reloading the net list, all pads/tracks are updated. Zones still belongs to the net that does not exist in the schematic (but still exists in .kicad_pcb file). After running DRC, the zone becomes not filled.
    - Undo & redo affects assignment of a polygon to a specific net (you may change net of a polygon, refill it and undo/redo the changes).
    
    - KiCad s-expr & legacy, Eagle, P-CAD boards seem to load without any problem (they also contain correct net names assigned to the appropriate pads). All types of board file formats were loaded, then saved in sexpr format and reopened with a KiCad built from the master branch (without my modifications).
    - A few boards were also saved using the legacy format and were opened with the master KiCad without any issues.
    
    - Change a net name for a pad, restore with undo/redo - ok
    - Remove everything, restore with undo - ok
    - Remove everything, reload netlist - ok
    
    Differences observed between files saved by the master branch KiCad and this one:
    - list of nets are not saved in any particular order, so net codes may differ
    - the default net class does not contain the unconnected net
    15b8d3d2
Name
Last commit
Last update
3d-viewer Loading commit data...
CMakeModules Loading commit data...
Documentation Loading commit data...
bitmap2component Loading commit data...
bitmaps_png Loading commit data...
common Loading commit data...
cvpcb Loading commit data...
demos Loading commit data...
eeschema Loading commit data...
gerbview Loading commit data...
helpers/tools_to_build_newstroke-font Loading commit data...
include Loading commit data...
kicad Loading commit data...
lib_dxf Loading commit data...
new Loading commit data...
packaging Loading commit data...
pagelayout_editor Loading commit data...
patches Loading commit data...
pcb_calculator Loading commit data...
pcbnew Loading commit data...
polygon Loading commit data...
potrace Loading commit data...
resources Loading commit data...
scripting Loading commit data...
scripts Loading commit data...
template Loading commit data...
tools Loading commit data...
.bzrignore Loading commit data...
AUTHORS.txt Loading commit data...
CHANGELOG.txt Loading commit data...
CMakeLists.txt Loading commit data...
COPYRIGHT.txt Loading commit data...
CTestConfig.cmake Loading commit data...
Doxyfile Loading commit data...
HOW_TO_CONTRIBUTE.txt Loading commit data...
INSTALL.txt Loading commit data...
README.txt Loading commit data...
TODO.txt Loading commit data...
copyright.h Loading commit data...
license_for_documentation.txt Loading commit data...
notes_about_pcbnew_new_file_format.odt Loading commit data...
rules Loading commit data...
uncrustify.cfg Loading commit data...