How to create a symbol from a schematic, i.e., instance a schematic?
Are you referring to hierarchy? Are you asking about creating a symbol that contains a hierarchical circuit? I have documented guidelines about hierarchy. You can review Section Part 2A: Hierarchical Block to see if it is helpful.
General Reference Guide by KSKelvin.pdf at main · KSKelvin-Github/Qspice
Thank you for the great answer! I did follow the procedure as you described in your excellent guide. However, I did not know how to save the newly created instance in a local library for future usage. When I copied it to my library, used it in another schematic and the simulation failed due to could not find the associated circuit of that instance.
You have to create it as embedded symbol. The hierarchical netlist will embedded into symbol, such that you just need that symbol (.qsym) to run your simulation. If not, you will need both symbol and hierarchical schematic (.qsym + .qsch).
In that guideline section, the last two page (title in blue) is how to convert hierarchical into embedded netlsit symbol.
In short, if you want your hierarchical design to be a subckt symbol, it must have a process in coverting hierarchical netlist into a .subckt netlist and import this .subckt into a one line .subckt format for symbol (X-device) to be used.
There is important concept that a symbol can call a hierarchy or subckt or device, which depend on symbol type. Convert to subckt symbol help share your model, but in giving up the ease of troubleshooting or modifying thing as hierarchy.
Excellent!! Great thanks!