LTspice folder organization that works for you?

General discussion area for tube amps.

Moderators: pompeiisneaks, Colossal

Post Reply
User avatar
Murrayatuptown
Posts: 71
Joined: Thu Jun 13, 2019 11:26 pm
Location: Michigan

LTspice folder organization that works for you?

Post by Murrayatuptown »

I can create a simple schematic and run a simulation in LTspice.

When someone gives me a hand up and shares, or I download a posted .asc file, I struggle to place various added items that are included via .INC statements etc.

Obviously, I either need those components, and/or need to put them in a folder LTspice expects them to be.

For some people this is simple and trouble-free.

I suppose it might be possible to paste the contents of the .lib, etc. files into a .asc file to make it self-standing. (Making the files more complicated & ripe for additional syntax errors).

Or it should be easier to learn a simple set of rules for folder organization that work for other people.

Windows pretty readily adapts to any sloppy download location of borrowed .asc files by file-association...but following the rules for LTspice .INC and other ways of calling libraries, models, sub-circuits, etc seems like a smarter thing to learn.

What do you folks suggest, based on what works for you?

Thanks
Murray
User avatar
Murrayatuptown
Posts: 71
Joined: Thu Jun 13, 2019 11:26 pm
Location: Michigan

Re: LTspice folder organization that works for you?

Post by Murrayatuptown »

I got it figured out. Doesn't sound like much, but it works again!
Murray
tmknight
Posts: 17
Joined: Sat Dec 11, 2021 12:47 pm

Re: LTspice folder organization that works for you?

Post by tmknight »

Though, you said you figured it out, seems you may not understand why?

To be sure, you "can" place all of your .lib/.inc files anywhere you want...as long as that path is referenced in LTS library search path in the control panel. The default path (on Windows) is $env:userprofile\Documents\LTspiceXVII\lib.

You will also need to reference those .lib/.inc file names in your schematic. You can place multiple references in a single directive. As long as the .lib/.inc is in a known library path, LTS will find it.
Post Reply