Index: altium/pcbdoc_bin.c =================================================================== --- altium/pcbdoc_bin.c (revision 35469) +++ altium/pcbdoc_bin.c (revision 35470) @@ -170,6 +170,18 @@ return 0; } +int pcbdoc_bin_parse_nets6(rnd_hidlib_t *hidlib, altium_tree_t *tree, ucdf_file_t *fp, altium_buf_t *tmp) +{ + for(;;) { + long len = read_rec_l4b(fp, tmp); + if (len <= 0) + return len; + if (pcbdoc_bin_parse_ascii(hidlib, tree, "Net", tmp) != 0) + return -1; + } + return 0; +} + int pcbdoc_bin_parse_rules6(rnd_hidlib_t *hidlib, altium_tree_t *tree, ucdf_file_t *fp, altium_buf_t *tmp) { for(;;) { Index: altium/test.c =================================================================== --- altium/test.c (revision 35469) +++ altium/test.c (revision 35470) @@ -3,7 +3,7 @@ #include "pcbdoc_ascii.h" #include "pcbdoc_bin.h" -int pcbdoc_bin_parse_classes6(rnd_hidlib_t *hidlib, altium_tree_t *tree, ucdf_file_t *fp, altium_buf_t *tmp); +int pcbdoc_bin_parse_nets6(rnd_hidlib_t *hidlib, altium_tree_t *tree, ucdf_file_t *fp, altium_buf_t *tmp); int main(int argc, char *argv[]) { @@ -20,7 +20,7 @@ exit(1); } - res = pcbdoc_bin_parse_classes6(&hidlib, &tree, f, &tmp); + res = pcbdoc_bin_parse_nets6(&hidlib, &tree, f, &tmp); printf("res=%d @ %ld\n", res, ftell(f));