That is it exactly. You had installed 4.x which used the github libraries. On Windows the user settings are placed in the C:\Users\<username>\AppData\Roaming\kicad folder. (You will need to turn on show hidden folders in your windows settings if you haven’t already to be able to see and navigate into the AppData folder.) Since you are brand new to KiCad, I’d suggest just nuking the entire kicad folder in the Roaming folder. That should get you back to factory default settings.
Brilliant! I’m actually understanding at least some about how this all works…appreciate your feedback -
I’ll delete the entire kicad folder in roaming as you have suggested. There is a small test board I am working with so I assume it will forget where the .pro files are for that etc. but I can just navigate and open that project up again and all will be well, yes ? It’s not a complex board - just a few small parts so starting from scratch wouldn’t be the end of the world anyway. I guess some of the parts might be different in the library though…
Just a quick follow up - I deleted the fp-lib-table and sym-lib-table from the home folder, fired up Kicad, got a few messages on “first time…global library …” and it all worked out as expected. Thanks again for the help
Just a small pro tip, you can quickly get into AppData folder without the need to enable hidden folders and lots of mouse clicks: just enter %APPDATA% in windows explorer’s address line and it will take you there. Works with any directory that has it’s own environment variable.
I noticed your question shortly after you post it, and decided to unswer, but I was at PC where I couldn’t check how I am doing it, and yesterday I had absolute 0 time.
When I have read KiCad doccumentation (just before 4.0.7 was relesed) the only PCB design stage I felt I understand nothing about was generating the BOM. Now I know a little. In 4.0.7 BOM generation was only from Sch and I didn’t check yet how it works at PCB.
Step by step:
Haveing one of demo schematics open Tools|Generate Bill… and in opened window I first click Add Plugin button. Then I select directory: C:\Programy\KiCad\bin\scripting\plugins.
By the way - I always install KiCad not as it wonts to be installed (in Program Files) but in created by me folder “Programy” It is because Windows has something against modyfying C:\Program Files\KiCad\share\kicad\template\kicad.pro but nothing against if KiCad is installed not in Program Files. I trhink that when you open new project kicad.pro is copied for you. So after installing my first step is to edit that kicad.pro file. In 4.0.7 list of schematic libraries was in it. In V5 kicad.pro is less important, but I think (not sure as I have not really started to use V5, I am only collecting my footprint library now) that for example if you define your frame for schematic in it then it will be used for your “New” project.
Comeing back - from that directory I select bom_csv_grouped_by_value_with_fp.py. and KiCad fills the Command line as needed.
Now button “Generate” runs this plugin. As a result in project directory you get two files (project_name.xml and project_name (without extension). It is easy to overlook that second one but it is csv promised by plugin.
I don’t know what for is that xml. After adding .csv I can open it with OpenOffice.
I have checked that If you change “%O” to “%O.csv” in Command line in Bill of Material dialog box you will get your csv with right name but I don’t know if it is the right you should do it. May be it should be done by modyfying something in plugin file, but I don’t know python.
People here helped my to change csv I get from this plugin. If you are interested read:
I understand this xml as temporary file generated by plugin. If such file is located in any TMP directory where I am not looking ten I don’t care. But if it is in my working directory then I think who have generated it he should delete it.
Hi Piotr
I just tried your instructions and it worked ! But I get the file name without the .csv as well, so I will change that %O to %O.csv and see if that fixes it. Easy to miss that file in the directory otherwise. I am so new to all this I am just wandering around in the dark a bit but I am making progress and I can say that I like the KiCad system very much. It looks like it will be perfect for my needs once I learn the proper commands and workflow involved.
My current struggle is with the 3d viewer. It seems there are no 3d shapes in the installation of KiCad 5.0.2 - but perhaps you have to download and install them yourself ? I am digging though the manuals for that information now but can’t seem to find it, or where I have to put the files etc…
Thanks very much for your help. I agree, that .xml file is a bit of a nuisance when it “hangs around” in the project directory, but that’s ok. Once I know what it is, I can delete it myself.
(1) To get the footprints to work,
read SembazuruCDE 's reply of Aug 28th to tdarlic here:
and note where he says
“3D library included with KiCad doesn’t actually have a 3D object for every footprint”
There is another library I had to install
(2)To get the 3-D to work,
This is the package I had to install on October 18 to load the 3D libraries.
apt-cache search kicad-packages3d
(Am using 64-bit debian linux–tyou’ll obviously need a different tool to install
the software on 64-bit MS Windows.)
Rene_Poschle explains why here:
Well Russ, that helps a little bit. I’m flailing badly here at the moment. I have found all the 3dshapes - they seem to be in the right directory, but they are not the same as the one from the KiCad github listed in the menu on the KICad home page. They look to be somewhat less. Also, I have made a little board with a few JST connectors and a few resistors - the resistors appear in the pcb 3d view, but not the jst connectors. Sure enough, the JST connectors seem to be in this github listing, but not the local listing.
Sooooo - I fired up this 3d shapes wizard and it tells me that I can’t write into the suggested folder on my PC … which is -
C:\Program Files\KiCad\share\kicad\modules\packages3d
There should be 3D shapes in the Windows installation of KiCad 5.0.2, that is one of the reasons why the install package is over 1GiB. They should be installed here: C:\Program Files\KiCad\share\kicad\modules\packages3d. If you check the KiCad path settings (in the Project Manager, EESchema, PCBNew, Schematic LIbrary Editor, Footprint Library Editor, or Assign Footprints editor see the Preferences/Configure Paths... menu item) check to make sure that KISYS3DMOD points to that path.
Note, not all footprints have an associated 3D object, but all footprints (should) have a pointer to a 3D object filename. The reason for the pointers if the 3D object is so when/if a 3D object for that footprint is created and added to the standard libraries the librarians only need to add the object with the pre-arranged filename. Otherwise they would have to both add the file and change the footprint libraries. These are different git repositories that don’t mutually track each other.
So, are you sure that you don’t have any 3D objects, or were you unlucky to choose footprints that don’t have 3D objects yet.
One more thing - thinking that perhaps this never-used download of version 4 was causing me some issues, I simply deleted the entire kicad directory in the roaming folder on my pc - fired up Kicad, it went through all the usual “first time” things, loaded up the fp-lib-table etc. but the same issue with preventing me from writing to the 3dshapes directory on my pc persists…
That is Windows trying to save you from customizing something that is managed by the system installers. If you make a change and then upgrade the package your changes will either get wiped out or break the installer for the upgrade.
Sem… - I think I make have been unlucky on selecting parts as I do have the 3dshapes directory - I will re-check all the pointers as you mention though. Thanks !
So for me to get the 3dshapes that are on the KIcad github, do I have to put them somewhere else ? or can I somehow force them to go into the folder that Windows is preventing me from? (maybe that’s a bad thing though as you have pointed out…)
I just had another thought - If I remember correctly, I loaded those jst connector parts before I realized that I was working with the autogithub download footprint libraries and therefore a remnant from the version 4 Kicad I installed earlier this year but never got around to learning. Is it possible that that part(s) is now pointing to an invalid or non existent 3dshape in the new 3dshapes that have been installed as a result of the KiCad 5 installation ? Sorry for all this noob foolishess guys - I’m so green I don’t know what I don’t know - haha
Yes, you want to put them somewhere else. Just to be sure, you are referring to the individual library repositories (symbols, footprints, 3d packages, and templates) for 5.0, not the combined repository for 4.0, right?
There are a couple ways to handle this. You can either download the entire repository (as a snapshot) and uncompress the archive where you want and have KISYS3DMOD point to that location. (If you download and/or create your own models either manually from datasheets, or by downloading 3d object files from the manufacturer or vendor, you should put them into your own library folder and create a new path name in the KiCad Configure Paths... menu item. I would suggest using a path substitution name of ALT3DMOD for future compatibility with the StepUp plugin of FreeCAD should you want to tweak downloaded 3d objects (usually positioning and sometimes scaling, sometimes painting colors).)
Or get set up with GitHub and download the repository that way so when there are changes to the repository (usually several updates each week) you can avoid downloading the entire repository. Git will download only the changes for you. This is the solution that I use, but I’m not versed in Git well enough to provide much support. (I got it working, hopefully correctly…)
As far as the location to save the repository, it needs to be in a location that doesn’t need administrator access to save files to. This can be in your Documents, on a 2nd data partition or drive, or in C:\Users\Public\Public Documents. The public documents is a special Windows feature that allows all users of the computer to access the files.
That said, the libraries in the 5.0.2 distribution are only a couple weeks old compared to the github libraries…
(@Rene_Poschl, please confirm that my assumption that a snapshot of the github libraries was taken when the Windows 5.0.2 package was built instead of using the snapshot from when 5.0.0 was released.)
Guys - thanks a million for all your help here - and thanks for your patience ! I am going to have a long read of these links you’ve supplied. It’s noon here in my part of Canada and I just realized it and my wife is waiting at her work for me to pick her up…I am going to get a blast from her when I arrive there late…hahaha. But I will tell her I was late for a good reason - learning to set up KiCad ! I’ll be back later.
Thanks again,
Lewis