Kicad libraries management tool
$ pip3 install west
$ west init -m https://github.com/Cherish-forever/kicad_libraries.git && west update
$ west footprint -o ~/.config/kicad/7.0/fp-lib-table -k True
$ west symbol -o ~/.config/kicad/7.0/sym-lib-table -k True
$ west footprint -o ~/.config/kicad/7.0/fp-lib-table
$ west symbol -o ~/.config/kicad/7.0/sym-lib-table
$ python3 .kicad_libraries/scripts/model3d.py <footprint_path> <3d_model_path> <model extension>
eg:
footprint path is Cylindric3D, 3d model path is Cylindric3D, the 3d model extension is ".wrl"
$ python3 .kicad_libraries/scripts/model3d.py Cylindric3D Cylindric3D ".wrl"
$ ls | xargs -n 1 -I {} python3 .kicad_libraries/scripts/model3d.py {} {} ".wrl"
$ ls -d */ | grep -Ev '^kicad/$' | sed 's#/$##' | xargs -n 1 -I {} python3 .kicad_libraries/scripts/model3d.py {} {} ".wrl"
$ west forall -c "git reset --hard HEAD"
$ cd <path_have_git> && git reset --hard HEAD
You can add yourself repository in west.yml, or create yml file in submanifests.
update all repository
$ west update
update and rebase all repository
$ west update --rebase
only update kicad/symbols
$ west update kicad/symbols
only update kicad/symbols and rebase
$ west update kicad/symbols --rebase
exp:
$ west env -c ~/.config/kicad/7.0/kicad_common.json -e "KICAD7_3DMODULE_DIR:`west topdir`/kicad/packages3D" "KICAD7_FOOTPRINT_DIR:`west topdir`/kicad/footprints" "KICAD7_SYMBOL_DIR:`west topdir`/kicad/symbols" "KICAD_USER_TEMPLATE_DIR:`west topdir`/kicad/templates"
-c:
/path/to/kicad_common.json
-e:
"the enverioment you want set"
defaults:
remote: origin
remotes:
- name: origin
url-base: https://github.com
self:
path: .kicad_libraries
west-commands: scripts/west-commands.yml
import:
- submanifests/kicad-official.yml
defaults:
remote: origin
remotes:
- name: origin
url-base: https://github.com
self:
path: .kicad_libraries
west-commands: scripts/west-commands.yml
import: submanifests