mvnmgrx / kiutils

Simple and SCM-friendly KiCad file parser based on Python dataclasses for KiCad 6.0 and up.
GNU General Public License v3.0
84 stars 27 forks source link

Bug: 3D model with `hide` property won't parse correctly #96

Closed mvnmgrx closed 1 year ago

mvnmgrx commented 1 year ago

3D-models may have a hide token which is currently not parsed. The Model class throws an exception as the S-Expression does not have the correct type.

Some example:

  (footprint "footprints:DP9700" (layer "F.Cu")
    (tstamp 71a3d5a8-0576-436c-9616-dfd44ac398e3)
    (model "${KIPRJMOD}/etherlight-librarys/3dmodels/DP9700.step" hide
      (offset (xyz 6.35 -0.3 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )