Add support for project local "3D search paths"
This is a feature request for a project-local 3D-lib-table
or something similar.
It's currently possible to make a "portable" KiCad project by including the symbol/footprint libraries within the project as Git submodules and using project local sym-lib-table
and fp-lib-table
files to store the mapping between the schematic/pcb files and the libraries. This allows a user to simply git clone https://the-project-url
and have the libraries "just work" out of the box. However, there is currently no way to make this work for 3D models without storing environment variables or absolute paths in the footprint's 3D model path.
There is currently a "3D search paths" field for defining aliases that can be used in the 3D model path. However, this requires that each user set up the "3D search paths" manually.
This “3D Search Paths” is effectively a global 3D-lib-table
. If we had a project-local 3D-lib-table
file that could live in the project directory and be checked into Git, it would allow having truly portable projects that don’t have absolute paths or environment variables defined in the footprint’s “3D models” table.
Application: Pcbnew
Version: (5.1.5-0-10_14), release build
Libraries:
wxWidgets 3.0.4
libcurl/7.64.1 SecureTransport (LibreSSL/2.8.3) zlib/1.2.11 nghttp2/1.39.2
Platform: Mac OS X (Darwin 19.2.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
wxWidgets: 3.0.4 (wchar_t,STL containers,compatible with 2.8)
Boost: 1.69.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.54.0
Compiler: Clang 9.0.0 with C++ ABI 1002
Build settings:
USE_WX_GRAPHICS_CONTEXT=ON
USE_WX_OVERLAY=ON
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=OFF
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=ON
KICAD_USE_OCC=OFF
KICAD_SPICE=ON