Index: src/file.c =================================================================== --- src/file.c (revision 917) +++ src/file.c (revision 918) @@ -451,6 +451,7 @@ AttributePut (PCB, "PCB::grid::unit", Settings.grid_unit->suffix); sort_netlist (); + rats_patch_apply(PCB); set_some_route_style (); @@ -1481,6 +1482,7 @@ else fclose (fp); sort_netlist (); + rats_patch_apply(PCB); return (0); } Index: src/global.h =================================================================== --- src/global.h (revision 917) +++ src/global.h (revision 918) @@ -487,7 +487,7 @@ enum { NETLIST_INPUT = 0, /* index of the original netlist as imported */ - NETLIST_EDITED = 0, /* index of the netlist produced by applying netlist patches on [NETLIST_INPUT] */ + NETLIST_EDITED = 1, /* index of the netlist produced by applying netlist patches on [NETLIST_INPUT] */ NUM_NETLISTS /* so that we know how many netlists we are dealing with */ }; Index: src/rats_patch.h =================================================================== --- src/rats_patch.h (revision 917) +++ src/rats_patch.h (revision 918) @@ -1,3 +1,5 @@ #include "global.h" void rats_patch_append(PCBTypePtr pcb, rats_patch_op_t op, const char *id, const char *a1, const char *a2); +/* Create [NETLIST_EDITED] from [NETLIST_INPUT] applying the patch */ +void rats_patch_apply(PCBTypePtr pcb);