Could not make check_3d_coverage to work
This seems to be outdated. I could not make check_3d_coverage work.
-
-pretty
flag does not exist - Any lib I pass is not found.
It has hardcoded folder names, it could have flags for changing them so we could use in other projects too.
self.library_root = os.path.join(self.root, "kicad-footprints")
self.model_root = os.path.join(self.root, "kicad-packages3D")
def model_dir_path(self, library_name):
return os.path.join(self.model_root, library_name + ".3dshapes")
def footprint_dir_path(self, library_name):
return os.path.join(self.library_root, library_name + ".pretty")
But kicad 7 does not have kicad-footprints
but footprints
. The same for kicad-packages3D
that are just 3dmodels
now.
✦ ➜ ls /usr/share/kicad/
3dmodels demos footprints internat plugins resources schemas scripting symbols template
After editing the folder names it also giving some other issues as showed here:
Library root: ./footprints
Model root: ./3dmodels
Checking Precisio_HW_Library (contains 88 footprints)
[removed good lines]
Traceback (most recent call last):
File "[REMOVED_PATH_TO]/kicad-library-utils/klc-check/]check_3d_coverage.py", line 341, in <module>
checker.check_libraries()
File "[REMOVED_PATH_TO]/kicad-library-utils/klc-check/]check_3d_coverage.py", line 314, in check_libraries
self.check_footprint_library(library)
File "[REMOVED_PATH_TO]/kicad-library-utils/klc-check/]check_3d_coverage.py", line 261, in check_footprint_library
model_ref = self.parse_footprint(
^^^^^^^^^^^^^^^^^^^^^
File "[REMOVED_PATH_TO]/kicad-library-utils/klc-check/]check_3d_coverage.py", line 201, in parse_footprint
footprint = KicadMod(filename)
^^^^^^^^^^^^^^^^^^
File "[REMOVED_PATH_TO]/kicad-library-utils/common/kicad_mod.py", line 132, in __init__
self.arcs = self._getArcs()
^^^^^^^^^^^^^^^
File "[REMOVED_PATH_TO]/kicad-library-utils/common/kicad_mod.py", line 391, in _getArcs
a = self._getArray(arc, "mid")[0]
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range