models in ltspice

Thread Starter

kubeek

Joined Sep 20, 2005
5,794
Say I created a model like this http://www.linear.com/solutions/4678 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?
 

eetech00

Joined Jun 8, 2013
3,859
Say I created a model like this http://www.linear.com/solutions/4678 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?
Yes.

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:

good:
.include myfile.txt

bad:
.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.
 

Thread Starter

kubeek

Joined Sep 20, 2005
5,794
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.
 
Top