Closed geeeethub closed 7 months ago
Hi @geeeethub, it is a bug if the path is not entered. It should be "${KICAD_3RD_PARTY}/Samacsys.3dshapes/some3dmodel.stp". Which component do you have that did not work?
You can watch the video (https://youtu.be/BYIKjCs1qKQ) and see that the components are correctly linked to the 3D model.
Hi @geeeethub,
The error should be fixed. It would be very nice if you would test the version 2024.04.08 before I distribute it via kicad.
I know the issue is closed, but it might be worth supporting both KICAD8_3RD_PARTY and KICAD_3RD_PARTY variables for better compatibility with all the version, the latest always take precedence or just map the variable(s) using KiCad version (if it is accessible to the plugin) And thanks a lot for the plugin! Any plans to add a search module? (Snapeda official plugin is not compatible with the latest versions of KiCad) I might contribute if it is a direction you are willing to take.
Hi @tenninebt, I used KICAD_3RD_PARTY as a variable for reasons of compatibility. The reason for this is simple. The string KICAD_3RD_PARTY is written directly into the library file so that the linking of the components works without any problems. Alternatively, I would use a “KiCad database libraries” but I don't have the time for that at the moment. But I'd be happy to implement the idea if you elaborate on it. However, I currently see no advantage in using “KICAD8_3RD_PARTY”. What exactly do you mean by a search module? You can currently import Snapeda components with the plugin. Would you like something that allows you to download a component via the plugin? As far as I know, this is not that difficult to implement. Or what exactly do you have in mind?
This seems more of a KiCAD workflow issue than the plugin, but it most likely can be solved by allowing to specify where 3dmodels are stored.
When importing symbols / footprint / 3dmodel, the symbol and footprint go to their intended directories and the libraries and footprints show up as expected, but the 3dmodels are put into directories, such as:
Even though I added these as paths (i.e., KICAD_USER_3DMODEL_DIR = ${KICAD8_3RD_PARTY}/Samacsys.3dshapes/), KiCAD does not search those directories for the 3d models.
If I specifically edit the path of the 3d file to be:
${KICAD8_3RD_PARTY}/Samacsys.3dshapes/some3dmodel.stp
or${KICAD_USER_3DMODEL_DIR}/some3dmodel.stp
It works fine, but it is a pain to go into every footprint to do this when this plugin does so much already. I combed several forums and nothing seems to answer this question / issue directly.