On Sat, Dec 21, 2024 at 10:56 AM, <info@...> wrote:
It is a pain to copy the model to every directory with an .asc in it and add the .lib directive to every simulation. I really want to be able to add the symbol to the schematic and have LTspice find the proper model by itself.
.... Keep that model file in the same directory with your schematic - or move it to one of your User-defined Lib. Search Path
I don't know how you missed it. Put the symbol in a folder in your User-defined Symbol Search Path, and put the model in a folder in your User-defined Library Search Path. Those User-defined Lib. and Sym. Search Paths are in the LTspce Control Panel. Symbols and models that are there in those user-defined locations, can be "seen" by LTspice schematics anywhere on your computer. They are the user's equivalent of LTspice's own libraries.
User-defined Lib. and Sym. Search Paths have been a part of LTspice for many versions and many years. I think they were added in LTspice XVII, which dates them to eight years ago in 2016.
This means that the "Andy" modified model should be able to live in my directory and the symbol should be able to call it, but I am not calling it correctly in the attributes of the symbol.
The model - whether it was "my" model or any other model - is totally, completely, 100% unrelated to where it lives! If Windows finds the file, then LTspice finds the file and it does not care whose file it was. If you make your own model file, great. Go for it. If you leave the model file unmodified from T.I., great. Go for it. No matter whether it is modified or the original unmodified file from T.I., it makes no difference to whether Windows and LTspice can find it. The contents of the file and the location of the file are two completely independent things.
Does renaming the Model Suffix from .lib to .sub matter?
I thought we made this clear already. THE FILENAME DOES NOT MATTER, as long as you refer to it by its actual filename. You can save or rename the model file with the filename FOOBAR.ARRGH if you want to. As long as you call it by its actual filename, LTspice doesn't care whether the name ends in .lib or .sub or .mod or .txt or .doc or .xyzzy or even no extension. All you need to do is make sure that you refer to it by its ACTUAL filename. The filename extension is part of the filename. Don't let Microsoft Windows trick you into thinking that the filename's extension carries some sort of magic. It doesn't.
Andy