GithubHelp home page GithubHelp logo

42crmo4 / import-lib-kicad-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from steffen-w/import-lib-kicad-plugin

0.0 0.0 0.0 6.7 MB

Helps to import KiCad component libraries imported from ultralibrarian and snapeda zipfiles.

License: GNU General Public License v3.0

Shell 0.63% Python 99.37%

import-lib-kicad-plugin's Introduction

GitHub Release Downloade Plugin

Import-LIB-KiCad-Plugin icon

Importing downloaded libraries from the platforms Octopart, Samacsys, Ultralibrarian and Snapeda. Imports symbol, footprint, description and if available 3D file. Normally, when you select the imported symbol in KiCad, the appropriate footprint and the 3D file should also be linked. Provided, of course, that the libraries have been included as specified below.

SC2 Video

Warranty

None. Zero. Zilch. Use at your own risk, and please be sure to use git or some other means of backing up/reverting changes caused by this script. This script will modify existing lib, dcm, footprint or 3D model files. It is your responsibility to back them up or have a way to revert changes should you inadvertently mess something up using this tool

Installation

The easiest way to install is to open KiCad -> Plugin And Content Manager. Select icon Import-LIB-KiCad-Plugin in the Plugins tab, press Install and then Apply Pending Changes. The other option is to Downloade Plugin the latest version (GitHub Release) and install it via KiCad -> Plugin And Content Manager -> Install from File... -> select Import-LIB-KiCad-Plugin.zip and import.

Use of the application

Screenshot_GUI

The libraries to import must be located in the folder specified as Folder of the library to import". After pressing Start, the libraries will be imported into the specified folder (Library save location). Provided that the paths have been added correctly in KiCad, the parts can be used immediately in KiCad. If the libraries have not been imported correctly, a warning will indicate this.

Including the imported libraries in KiCad

Preferences -> Configure paths -> Environment Variables -> Add the following entry

Name Path
KICAD_3RD_PARTY YourLibraryFolder/KiCad

Preferences -> Manage Symbol Libraries -> Global Libraries -> Add the following entries (Note: It is best to add the library only after the import has been done with the plugin. Afterwards only the created libraries have to be imported. Lower entries are only for example.)

Active Visible Nickname Library Path Library Format
✔️ ✔️ Samacsys ${KICAD_3RD_PARTY}/Samacsys.lib Legacy
✔️ ✔️ Snapeda ${KICAD_3RD_PARTY}/Snapeda.lib Legacy
✔️ ✔️ UltraLibrarian ${KICAD_3RD_PARTY}/UltraLibrarian.lib Legacy

Preferences -> Manage Footprint Libraries -> Global Libraries -> Add the following entries (Note: It is best to add the library only after the import has been done with the plugin. Afterwards only the created libraries have to be imported. Lower entries are only for example.)

Active Nickname Library Path Library Format
✔️ Samacsys ${KICAD_3RD_PARTY}/Samacsys.pretty KiCad
✔️ Snapeda ${KICAD_3RD_PARTY}/Snapeda.pretty KiCad
✔️ UltraLibrarian ${KICAD_3RD_PARTY}/UltraLibrarian.pretty KiCad

FAQ

Do I have to manually create a library that does not yet exist before using the plugin? No, you do not need to create a file manually. Your only task is to download your desired part from the internet and start the import process with the plugin.

Where can I save the library? It is possible to save the files in any place on your PC where you have read and write permissions. It is also possible to store the files on network drives or cloud storage to share the library with others. In the libraries relative paths are used, the absolute path is not considered.

Can I change the storage location? Yes, this is of course always possible. But you should keep in mind that the existing libraries will not be moved automatically. You would have to do that yourself if necessary.

If I import from one source, do I have to stay with that source, or can I import from all sources? For each source, a separate library is created for KiCad. Maximum actually three (Samacsys, Ultralibrarian and Snapeda), Octopart components as well as from other suppliers can be found in the Snapeda library. So if you import from a new source, a new library can be created. But maximum three.

Why are there two symbol libraries? In the latest version both the old and the "new" (since KiCad 6) symbol library format is imported. It is possible to prevent this by deselecting "import also old format". An automatic conversion from the old to the new format should only be done if you are an experienced KiCad user.

General KiCad question: I have entered a library in the settings in KiCad that does not exist at this time, what happens? You get a message that this library does not exist. Nothing more. As soon as it exists, it can be accessed.

Can I remove a library from the settings? Yes, you can always do that. The libraries are neither deleted nor edited in any way. They are just not included.

Library sources tested

Operating systems

  • Windows
  • Linux
  • Mac

KiCad versions

  • KiCad 6
  • KiCad 7

Please write an issues if an import does not work as requested.

To DO

If you notice an error then please write me an issue. If you want to change the GUI or the functionality, I am also open for ideas.

Create Issue

Done

  • Automatic background import
  • Test on a Mac
  • Testing all library formats
  • Using the new KiCad format

Many thanks to

wexi with impart and topherbuckley for the code on which the GUI is based. I also thank the people who helped me find the errors in the code.

import-lib-kicad-plugin's People

Contributors

steffen-w avatar topherbuckley avatar wexi avatar 42crmo4 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.