KiCad 5 - 3D file paths


#1

Hello all,

I am having problem with the 3D components not being displayed in the 3D view of the PCB. I have so far traced the problem to the path in the footprint properties being different than the actual path of the 3D files. When i manually add the path, 3D file shows up as in pic. 1st path is added by software whereas the second one was added by me manually.


There is subtle difference in the paths (capacitor and capacitors). Seems like the software installs files in one path but the path it uses it to seek is different. How can i resolve this?
For one component i could change the path manually but for hundreds?

I should mention that i had KiCad 4 installed before i installed 5. I am using Windows 10.

I have tried reinstalling the software multiple times on different drives without solution.


#2

In v5 footprint libs were renamed to be singular (Capacitors -> Capacitor). So it appears you are using footprint lib from v5 but your 3d models are still in v4 path.
Do you still have v4 installed? Check where KISYS3dMOD points to in Preferences->Configure paths in main KiCad window. You probably have to update that to point to v5 install.


#3

Well the path is pointing to the correct directory in preferences. However i just noticed that when I click to add a symbol in eeschema and the software loads the libraries, it does so not from local cache but instead it fetches from github.com/Kicad and not from Github.com/Kicad/kicad-symbols. How do i force it to use the new folders from Github?
1


#4

I was mistaken in previous post, it’s the other way around - you are using v4 libs and v5 3d models.
Same issue with you schematic libs.
Essentially remove all your libs and re-add them from correct paths.


#5

Read this: I had KiCad 4 installed previosly. Now i updated to v5. Now i have some problems with the library setup


#6

Oh yes. That solves it. I just deleted all library paths in cvPCB pointing to Github and added all the local paths.

However i wonder in spite of uninstalling KiCad 4 how these paths remained the same for cvPCB? i had even checked registry and deleted all entries related to KiCad!


#7

The user settings doesn’t get changed during an upgrade. Unfortunately, the complication is because the tables that KiCad uses (all of KiCad) is part of the user settings (to allow for adding user libraries). So when you upgraded to v5, the reorganized v5 libraries came along for the ride. But the library tables still pointed to were it was expected to find the v4 libraries. One of the things that changed with the reorganization was a change in the library names to remove all plurals. Another was to have the standard libraries local, not served by github. (That experiment failed so it was dropped.)

On Windows, the offending file is: %APPDATA%\kicad\fp-lib-table
Wipe out that file and KiCad will copy the standard library version from the install to appdata. But that will wipe out any personal libraries that the user may have in the table, as well as re-enable any standard libraries that the user removed from the table to streamline loading of the libraries.

I’m beginning to think that a python script is needed to intelligently parse the library tables (both the from the install and the user global table), show the user the changes to any libraries in the standard locations to offer the user to update them, but leave the user library entries alone. Do this for both the footprints and the schematics, launchable from both the command line and the action script menu. The difficult part (in my mind) would be how to determine, in an OS agnostic way, where the two sets of tables (what came with the installer and the user settings folder) are…


#8

I did something very much like that… kipi

It doesn’t use the data installed with KiCad, because that is impossible for the script to know unless the user types in the paths to the data. Instead it uses downloadable content packages which have an associated manifest file.

I didn’t write an Actionscript version, a problem with that is it requires a restart of KiCad to reload cached data. It would be really easy to add an API in KiCad to refresh caches I think.


#9

That’s right, and that should have been in 5.0.0.