EAGLE Help

SCRIPT


Function
Executes a command file.

Syntax
SCRIPT file_name;

See also SET, MENU, ASSIGN, EXPORT, RUN

The SCRIPT command is used to execute sequences of commands that are stored in a script file. If SCRIPT is typed in at the keyboard "file_name" can contain any extension. If no extension is given the program automatically uses ".SCR".

Examples

SCRIPT NOFILL executes NOFILL.SCR
SCRIPT MYSCR. executes MYSCR (no Suffix)
SCRIPT MYSCR.OLD executes MYSCR.OLD

Please refer to the EXPORT command for different possibilities of script files.

If the SCRIPT command is selected with the mouse, a popup menu will show all of the files which have the extension ".SCR" so that they can be selected and executed.

The SCRIPT command provides the ability to customize the program according to your own wishes. For instance:

Continued Lines

SCRIPT files contain one or more commands in every line according to the syntax rules. Only the MENU command can make it necessary to use more than one line. In this case please note that every opening apostrophe must have a counterpart (closing apostrophe) in the same line. The character "\" at the end of a command line ensures that the first word of the next line is not interpreted as a command. This feature allows you to avoid apostrophes in many cases.

Interrupt Script Files

The execution of a script file can be interrupted with Ctrl-Break.

Set Default Parameters

The SCRIPT file EAGLE.SCR - if it exists in the working directory or in the EAGLE program directory - is executed each time an editor window is opened.

Execute Script Files in the Library Editor

All of the layers are recognized only if the library editor has previously been loaded.


Index Copyright © 1999 CadSoft Computer GmbH