Post Go back to editing

List and Count All Component Instantiation

Thread Summary

The user asked if LTspice can export a list of all hierarchically instantiated components and count primitives across all blocks. The final answer indicates that LTspice does not have this feature, but suggests using the netlist or expanded netlist and parsing it with a script. The user confirmed using a Python script to extract hierarchical counts from the netlist.
AI Generated Content
Category: Software
Software Version: Version (x64): 26.0.1

This question is regarding LTspice itself.

I have a hierarchical LTspice schematic where I can descend to sub-blocks.

With the TOP level schematic opened, is there a way to:

  1. Export a list of all components instantiated hierarchically, down to the primitives?
  2. Count the number of all primitives instantiated across all hierarchies and blocks?
  3. Tabulate the list separating instances of items with the same schematic symbol but with different/ unique models? 

The closest function would be the "Bill of Materials" feature, but I observed that:

  1. It only prints the components instantiated on the current view/block opened
  2. It does not seem to list items with non-standard RefDes such as X*, Xinput[*], etc.

Thank you for any answers.

Edit Notes

Fixed comment regarding BOM list generated
[edited by: AIGen at 1:21 AM (GMT -5) on 22 Jan 2026]