How do you create a folder to hold your custom components? The tutorials I've come across such as the official getting started guide show the creation of only one custom component. Using this approach you end up with several folders... For example in the image below, I have created two custom libraries, ALU_ROM and CONTROL_UNIT. Each appears in its own folder... However, I want instead to have a folder named COMPUTER, where both components (and more in the future) reside. How can I do this?
To create a new library:
Click on the "Create New Library" button on the top left -
To choose a library for your new symbol:
When you click the "New Symbol" button it prompts you to choose which library you want to add it to. Click on the library you want and press "OK" (or just double click).
Then just save your symbol as you normally would. It'll be added to the library.
To move a symbol to a different library:
It's as simple as Cut & Paste.
To export the symbol you're currently viewing into a different library:
Click the "Export" button...
... and save it to the library you want.
I finagled a solution for KiCad 4. It is nowhere near as elegant as @darius-fieschko's solution above for KiCad 5. You should do yourself a favour and upgrade your version of KiCad. With that said, here's the painful way I got it to work in KiCad 4.
- Create a new component
- Click "Save current component to new library"
- Use the name you want for the library/folder
- Add the component to the search path
- To do this, navigate to Preferences > Component Libraries
- Add the "Component library files" (In this example, my_library_name.lib)
- Add the "User defined search path" (In this example, the folder containing my_library_name.lib)
- Set your library as the current working library
- To do this, click "Select working library" and choose your library
- Now when you open the "Library Browser", you should see your library
- Now when you create a new component, you use the "Update current component in current library" button to add it the working library
- In the example, I created a new component called part_a
- When you open the "Library Browser", you should see the new component inside your library
- I went ahead and added a few more components to the library
- And then deleted the initial "my_library_name" component (which acted only as a placeholder to create the library)
- The library now looks like this:
- And can be saved by clicking "Save current library to disk"