Product Documentation
Cadence SKILL Development Reference
Product Version IC23.1, June 2023

loadContext

loadContext( 
t_contextFileName 
[ g_ignore64bitSubpath ]
) 
=> t / nil / error

Description

Loads a context file into the current session.

This function uses the SKILL path to find t_contextFileName, if you do not supply the full path. Additionally, if the optional argument is specified the function does not add /64bit subpath to the context file path.

Arguments

t_contextFileName

Name of the context file you want to load. It must have been created using saveContext.

g_ignore64bitSubpath

Specifies whether /64bit subpath should be added to the context file path or not. When set to t (64bit only), it does not add /64bit to the context file path and the context is loaded from the current directory.

Value Returned

t

The context was successfully loaded.

nil

Context has already been loaded.

error

Signals an error if:

  • The system failed to open a file
  • Virtual memory is exhausted
  • The version of context is incompatible with current software.
    This condition usually requires you to regenerate the context file

Examples

Loads “64bit/geView.cxt from the SKILL path.

loadContext( "geView.cxt" ) 

Loads “geView.cxt” from the SKILL path.

loadContext( "geView.cxt" t) 

Related Topics

Context Functions

saveContext

setContext


Return to top
 ⠀
X