Electronic – Creating a schematic symbol in LTSpice

ltspiceschematicssymbol [~]

I use LTSpice XVII in macOS. I want to create a symbol from a schematic so that I can instantiate that symbol wherever I want. I tried this tutorial but I can't get it working.

Any help?

Thanks in advance!

Best Answer

You have a choice to make:

  1. Create a symbol that can only be used in the same folder as the main schematic. That means a hierarchical design, which means you can link that symbol to a schematic. In this case, when editing the symbol, its attribute Symbol Type must be of the type block, and in any of the Value, Value2, SpiceLine, and SpiceLine2 lines there must be only parameters, if there are any, while the rest of the lines must be empty. This is an example:

sa

The SpiceLine with f={f} is optional, it depends on the current symbol which needs that. If yours also needs some parameters, then feel free to add some, otherwise the lines stay empty.

  1. Create a symbol that can "instantiated wherever you want", including the same folder as the main schematic. This means that the symbol must be for either a subcircuit (.subckt definition), or a model (.model definition). In this case, the Symbol Type in the "Symbol Attribute Editor" must be of type cell.

Everything I said here, and more, is explained both in the manual, and in the link you posted, in detail. All you have to do is make up your mind about what do you want that symbol for (hierarchical design, or else), and read carefully that document.