cadsoft eagle 4.5 사용자 설명서

다운로드
페이지 248
5.5 Import and Export of Data
EAGLE provides a number of tools for data exchange.
• Script files for importing
• The export command for exporting
• EAGLE User Language programs for import and export.
The User Language is very flexible, but does call for a suitable program
to be created. You will find further details in the section on The EAGLE
User Language.
Script Files and Data Import
The script command makes a universal tool available to the EAGLE user
for data import.
Since every EAGLE operation can be carried out with the aid of text
commands, you can import all types of data with the aid of a script file.
A script file can in turn call other script files.
Script files can be created with a simple text editor. The prerequisite for
the development of your own script files is that you understand the
EAGLE command language. You will find the precise functioning and
the syntax of the individual commands in the EAGLE help pages.
The file euro.scr in the eagle/scr directory, which draws the outline of a
eurocard with corner limits, provides a simple example.
If a netlist is to be imported into a board design which already contains
the appropriate components, then a script file of the following form is
necessary:
SIGNAL GND IC1 7 IC2 7 J4 22;
SIGNAL VCC IC1 14 IC2 14 J4 1;
Netscript of this sort can easily be created from the schematic diagram
by the EXPORT command.
You will get a further impression of the power of importing, if you out-
put a library with the EXPORT command (Script option). The script
file that is generated provides an instructive example for the syntax of
the script language. It can be examined with any text editor. If SCRIPT
is then used to read this file into an empty library, a new library file will
be created.
Comments can be included following a #-character.
The execution of a script file can be stopped by clicking the Stop icon.
74
EAGLE Manual