6.2. Export, import and modify library components

6.2. Export, import and modify library components

Instead of creating a library component from scratch it is sometimes easier to start from one already made and modify it. In this section we will see how to export a component from the KiCad standard library device to your own library myOwnLib.lib and then modify it.

  1. From KiCad, start Eeschema, click on the Library Editor icon libedit_png, click on the Select working library icon library_png and choose the library device. Click on Load component to edit from the current lib icon import_cmp_from_lib_png and import the RELAY_2RT.
  2. Click on the Export component icon export_png, navigate into the library/ folder and save the new library file with the name myOwnLib.lib.
  3. You can make this component and the whole library myOwnLib.lib available to you by adding it to the library path. From Eeschema, go to PreferencesComponent Libraries and add both library/ in User defined search path and myOwnLib.lib in the Component library files. Close the window.
  4. Click on the Select working library icon library_png. In the Select Library window click on myOwnLib and click OK. Notice how the heading of the window indicates the library currently in use, it should be myOwnLib.
  5. Click on the Load component to edit from the current lib icon import_cmp_from_lib_png and import the RELAY_2RT.
  6. You can now modify the component as you like. Hover over the label RELAY_2RT, press the e key and rename it MY_RELAY_2RT.
  7. Click on Update current component in current library icon save_part_in_mem_png in the top toolbar. Save all changes by clicking on the Save current loaded library on disk icon save_library_png in the top toolbar.