load()

Loads an AEL file and interprets its statements. If you load an AEL file from within another using load() , functions and variables defined in the loaded file cannot be accessed from the other file without a forward declaration preceding the call to load() . Use decl name(); for forward declarations of variables and defun name(); for forward declarations of functions.

AEL is always interpreted in the context of a vocabulary of definitions which are used to resolve identifier references. Whenever a variable or function name is used in the AEL program, the context vocabulary is searched for an existing definition. New variables and function definitions are added to the context vocabulary as well. The optional second argument allows the context to be overridden for this function by providing the name of the desired vocabulary.

In the design environment, two contexts are important: SimCmd and CmdOp. Generally SimCmd is the context for any AEL files loaded during program initialization and when opening a project. The context is CmdOp when interpreting menu commands and in the Command Line dialog box. SimCmd is a superset of CmdOp, so not all definitions in SimCmd are available from the Command Line dialog without specifying the context SimCmd specifically. Returns: none.

Syntax:

load(aelFileName, [context]);

where

aelFileName is the he name of an AEL file (without the extension).

context is the name of the vocabulary context for interpreting the file.

Example:

This example causes "I am a" to be printed.

File a.ael:
defun func_a()
{
     fputs(stderr,"I am a");
}
Loading a.ael:
load("a");
func_a();

Download Example File:

The following link(s) lead to the Agilent EEsof EDA Knowledge center website. You will need to register at this site with a valid support contract to download an example file.

Change Component Scope to GLOBAL
Count nr of Vertices on Selected Polygon
Split SP2 MDIF File

Where Used:

Measurement Expressions (Data Display equations and Schematic MeasEqns), Schematic, Layout, Simulation, GUI

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources