Adding New Components using Windows
LTspice comes with a selection of components and models, but you may find on occasion there is a need to add new parts and models. You can design your own, but you may find that one has already been created.
The yahoo LTspice user group has a files section where you can download new components. You need to join the group first, then browse to the files section and lib (library) directory, screenshot below.
Download your desired files and save them to your computer. Next you need to place them in the required directories. On windows this location will generally be C:\Program Files\LTC\LTspiceIV\lib\ Open windows explorer and browse to the lib folder (screenshot).
Inside C:\Program Files\LTC\LTspiceIV\lib will be three more folders, cmp, sub and sym. It is a good idea to bookmark this location for future use. Click Favorites and add a suitable name.
To add for example the CMOS4000 library, download the files CD4000.lib and CD4000.zip. The lib folder can be placed anywhere inside lib directory. Many library files are kept in the sym folder but as long as an include statement ( .inc CD4000.lib) is placed on the schematic they will be found as the search is recursive through the directory structure. (Screenshot below.)Now it is also necessary to add the symbols for the CMOS4000 series. The symbols must be placed in the sym folder. The symbols are compressed into a zip file, copy CD4000.zip into the sym folder and extract it, a new sub folder called CD4000 will be created. Inside the CD4000 folder, the symbols of many of the 4000 series IC's have been created. Using the new components is easy, start a new schematic, click parts (or press F2) and you should now see the new CD4000 library (screenshot below):- Selecting the [CD4000] folder should now display many of the CMOS4000 series IC's. Clicking the model should also preview the symbol.
Once created remember to add the include statement.
Important ! If designing circuits for other people then all component libraries, models and any custom symbols need to be included in the same file otherwise they will get a component not found error.The following example circuit is an example using the CMOS 4000 library and LTspice :
Just download the script and execute it with ./transfer.sh