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. 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.

Set Default Parameters

The SCRIPT file eagle.scr - if it exists in the project directory or in the script path - is executed each time a new drawing is loaded into an editor window (or when the drawing type is changed in a library).

Execute Script Files in the Library Editor

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


Index Copyright © 2005 CadSoft Computer GmbH