#

## promptload

Invoke the load-file widget in the GUI version of magic, prompting for a file to load.

### Shortcuts:

> Menu item File->Load layout implements the command promptload magic.
> Menu item File->Read CIF implements the command promptload cif.
> Menu item File->Read GDS implements the command promptload gds.

### Usage:

> promptload magic|cif|gds

### Summary:

> The promptload command handles input of various file formats for the GUI layout window in the Tcl-based version of magic when invoked with the magic -w option. The handling is more sophisticated than the underlying magic calls. The gds read function will attempt to find the top-level GDS cell and load it into the current window. Likewise, the cif read function will name the top-level cell with the root name of the file being read. The magic load will append the path of the indicated file to the search path, so that if the file makes calls to additional cells in the same directory, they will be found and loaded.

### Implementation Notes:

> promptload is implemented as a Tcl procedure in the "wrapper" script. It calls the tk_getOpenFile widget in Tk.

### See Also:

> promptsave

Return to command index

Last updated: October 8, 2004 at 12:30am