¿ªÔÆÌåÓý

Re: Create symbols.


 

¿ªÔÆÌåÓý

On 25/02/2025 10:29, j.bernabe1 via groups.io wrote:
Good morning, I have a question about symbols.
Could a symbol be automatically generated from a (.lib) or (.sub) file??..
In this case it would be a comparator.
?
If so, how could I generate it?
Yes, symbols can be automatically generated from any text file containing a valid .subckt. It doesn't matter what the name of the file is. It can be a .lib or .sub file, but it doesn't have to be.

The procedure is simple.
  1. Open the file in LTspice. this most easily done by dragging the file from Explorer into LTspice.
  2. Right-click with the mouse on the .subckt line.
  3. From the drop-down menu, choose Create Symbol.
  4. Save.
Whether this is a good idea, or not, is another matter. You will get a rectangular box with the correct pin names, but not necessarily in appropriate places. Nobody will know for sure what kind of component it is. You could delete the box and draw a proper comparator outline, for example, and re-arrange the pin positions. But many people don't bother, and it is often difficult to figure out what a schematic does that uses them.

So, here are some alternatives:
  1. Look for an LTspice standard symbol that is appropriate for the type of component.
  2. If it also has the correct pin configuration, use it with modification.
  3. If it doesn't you can make a copy of the standard symbol, and edit it to have the correct pin configuration.
  4. Draw a new symbol from scratch.
--
Regards,
Tony

Join [email protected] to automatically receive all group messages.