开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: .include vs .lib directives


 

开云体育

Try opening a library file in a text editor (but be careful with Notepad - it sometimes plays tricks) and look through it. I think you will see plainly the section markers.

On 2025-02-26 19:22, Carlo wrote:
Hello guys,
I'd like to ask how ngspice, under the hood of Kicad, actually manages library files.?
?
From ngspice manual, there are two ways to include .models or .subckt, namely using .include vs .lib directive.
?
.include <filename> literally includes the content of <filename> where the directive is located (e.g. within a .cir netlist). It works, let's say, just like the #include pre-processing directive in C language.
?
.lib instead actually includes only parts from library referenced in the file where the .lib directive is. The manual says that. lib directive has the following format: .lib <filename> libname. The latter should be the name of a "section" within the <filename> library file.
?
If the above is correct, what are the "markers" of sections within the library files ?
?
Thanks.
?
--
OOO - Own Opinions only If something is true: * as far as we know - it's science *for certain - it's mathematics *unquestionably - it's religion

Virus-free.

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