IsModelFile Function

Returns 1 if the specified file contains .MODEL, .SUBCKT or .ALIAS definitions. Otherwise returns 0. The function will unconditionally return 0 if the file has any of the following extensions:

.EXE, .COM, .BAT, .PIF, .CMD, .SCH, .SXSCH, .SXDAT, .SXGPH

This will be overridden if the second argument is set to 'AllExt'.

Arguments

Number Type Compulsory Default Description
1 string Yes Path of file
2 string No Options

Returns

Return type: real