models in ltspice

Discussion in 'General Electronics Chat' started by kubeek, Jun 9, 2016.

  1. kubeek

    Thread Starter AAC Fanatic!

    Sep 20, 2005
    Say I created a model like this edited the schematic symbol a bit and saved it, and now I want to send the schematic to someone else. Is it possible to do this in such way that the recipient just unpacks a zip with a bunch of files and can run the simulation right away? Which files do I have to pack along?
  2. eetech00

    Active Member

    Jun 8, 2013

    But only if you keep all custom files in same folder as the schematic .asc file, and, if you do not use absolute folder paths in model files used in the schematic, or in "include" statements.

    For example, if you use an ".include" statement:

    .include myfile.txt

    .include c:\folder\myfile.txt

    The user should already have any file that is provided with the LTspice distribution.
    So you only need to provide any custom files you create.

    Keep the schematic and all custom files in the same parent folder, then when ready, zip up the parent folder.

    You can test by copying the zip file to a temp location, then unzip the file.
    After the file is unzipped, the parent folder should be re-created containing the files that were zipped up with it.
    Start LTspice and navigate to the unzipped folder containing the schematic .asc file and the custom files. The schematic file should open without any errors.
  3. kubeek

    Thread Starter AAC Fanatic!

    Sep 20, 2005
    Thanks that seems to work, the only issue is when you have non-standard libraries added, then you have to search and add those too.