Product Documentation
Virtuoso ADE SKILL Reference
Product Version IC23.1, November 2023

nlPrintHeader

nlPrintHeader( 
o_formatter 
) 
=> t / nil

Description

This method writes the beginning comment, adds .GLOBAL, and prints header comments.

Arguments

o_formatter

The formatter object.

Value Returned

t

The comment is written.

nil

The comment cannot be written due to an error.

Examples

The following example prints the header comments:

defmethod( nlPrintHeader ((formatter nlAnalogFormatter))
let( ((netlister nlGetNetlister(formatter)))
nlPrintString( netlister (nlGetOption netlister 'begComment))
nlPrintString( netlister "\n")
nlPrintString( netlister ".GLOBAL")
foreach( glob
    setof( x (nlGetGlobalNets netlister) (nequal x "gnd!"))
    nlPrintString(netlister " ")
    nlPrintString( netlister (nlMapGlobalNet netlister glob))
)
nlPrintHeaderComments( formatter)
nlPrintString(netlister "\n")
=> t
)
)


Return to top
 ⠀
X