Electronic – How to add custom 3d packages path to pcbnew

kicad

I'd like pcbnew to find my custom .wrl files for my custom footprints without having the absolute path hardcoded in the .kicad_mod files. I can manipulate the KISYS3DMOD environment variable but then, or course, the standard 3d models are no longer found.

I've also tried to set the path to the model in the .mod file to ${KIPRJMOD}/../packages3d/MyComponent.wrl but that doesn't seem to work. Also putting multiple paths into KISYS3DMOD separated by a colon has no effect (well, the effect is, that neither path works).
I don't want to put my custom packages on every system to /usr/share/kicad/modules/packages3d/, or course.

Any help is greatly appreciated.

Best Answer

You can add your own variable in the Preferences->Configure Paths...
You might need to restart KiCad for the variable to be seen by other KiCad editors.

enter image description here

Then edit your footprint module and in 3D Settings add your custom wrl. Once added the absolute path will be replaced with the above defined path variable.

enter image description here

I'm running KiCad v5.0.0.