devbisme / kinparse

A Parser for KiCad EESCHEMA netlists.
MIT License
23 stars 11 forks source link

sheetpath.names is empty #10

Closed ronangaillard closed 5 years ago

ronangaillard commented 5 years ago

When reading a net list sheetpath.name appears to be empty.

for component in nlst.parts:
  print(component.ref + " is in " + component.sheetpath.names)

Does not print the sheet path but does print the component ref

xesscorp commented 5 years ago

Can you provide the netlist you are using? What version of kinparse are you using? What version of pyparsing is installed?

ronangaillard commented 5 years ago

Unfortunately I cannot share the whole Netlist, but here is an extract :

(comp (ref J3)
      (value Conn_02x03_Odd_Even)
      (datasheet ~)
      (fields
        (field (name DkReference) 609-3234-ND))
      (libsource (lib Connector_Generic) (part Conn_02x03_Odd_Even) (description "Generic connector, double row, 02x03, odd/even pin numbering scheme (row 1 odd numbers, row 2 even numbers), script generated (kicad-library-utils/schlib/autogen/connector/)"))
      (sheetpath (names /Logic/) (tstamps /5C4D0F9E/))
      (tstamp 5C4D541F))
    (comp (ref J2)
      (value USB_B_Micro)
      (datasheet ~)
      (fields
        (field (name DkReference) 609-4616-1-ND))
      (libsource (lib Connector) (part USB_B_Micro) (description "USB Micro Type B connector"))
      (sheetpath (names /Logic/) (tstamps /5C4D0F9E/))
      (tstamp 5C4D995E))

I am using latest kinparse (v0.1.0) and pyparsing v2.3.0

ronangaillard commented 5 years ago

Thanks :)