curtacircuitos / pcb-tools

Tools to work with PCB data (Gerber, Excellon, NC files) using Python.
Apache License 2.0
280 stars 136 forks source link

Parsing of incorrect IPC D-356 Nelist #28

Closed phsilva closed 9 years ago

phsilva commented 9 years ago

I was trying to use the IPC reader and by lucky the first file I tested on Eagle apparently is not conformant and cause errors in the current parser.

C  IPC-D-356 generated by EAGLE Version 7.3.0 Copyright (c) 1988-2015 CadSoft
C  Database /Applications/EAGLE-7.3.0/projects/examples/arduino/Arduino_MEGA2560_ref.brd -- Exported at 6/1/15 4:25 PM
C  
P  JOB EAGLE 7.3 NETLIST, DATE: 6/1/15 4:25 PM
P  UNITS CUST 0
P  DIM N
317SCL              COMMUNICATION-1    D  40PA00X  34000Y  20000X 600Y1200R270         
317SDA              COMMUNICATION-2    D  40PA00X  33000Y  20000X 600Y1200R270         
317RXD1             COMMUNICATION-3    D  40PA00X  32000Y  20000X 600Y1200R270         
317TXD1             COMMUNICATION-4    D  40PA00X  31000Y  20000X 600Y1200R270         
317RXD2             COMMUNICATION-5    D  40PA00X  30000Y  20000X 600Y1200R270         
317TXD2             COMMUNICATION-6    D  40PA00X  29000Y  20000X 600Y1200R270         
317RXD3             COMMUNICATION-7    D  40PA00X  28000Y  20000X 600Y1200R270         
317TXD3             COMMUNICATION-8    D  40PA00X  27000Y  20000X 600Y1200R270         
999

The column with the COMMUNICATION mark is way too long and is probably non conformant, but it is what Eagle generates.

phsilva commented 9 years ago

Fixed by #29.