1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
|
<html>
<head>
<title>EAGLE Help: Command Syntax</title>
</head>
<body bgcolor=white>
<font face=Helvetica,Arial>
<hr>
<i>EAGLE Help</i>
<h1><center>Command Syntax</center></h1>
<hr>
<b>Command Syntax</b>
<p>
EAGLE commands can be entered in different ways:
<ul>
<li>with the keyboard as text
<li>with the mouse by selecting menu items or clicking on icons
<li>with assigned keys (see <a href=28.htm>ASSIGN</a> command)
<li>with command files (see <a href=85.htm>SCRIPT</a> command)
</ul>
All these methods can be mixed.
<p>
Commands and parameters in <tt>CAPITAL LETTERS</tt> are entered directly (or
selected in the command menu with the mouse). For the input there is
no difference between small and capital letters.
<p>
Parameters in <tt>lowercase letters</tt> are replaced by names, number values or
key words. Example:
<p>
<table>
<tr><td valign=top><font face=Helvetica,Arial>Syntax: </font></td><td valign=top><font face=Helvetica,Arial><tt>GRID grid_size grid_multiple;</tt></font></td></tr>
<tr><td valign=top><font face=Helvetica,Arial>Input: </font></td><td valign=top><font face=Helvetica,Arial><tt>GRID 1 10;</tt></font></td></tr>
</table>
<p>
<b>Shorten key words</b>
<p>
For command names and other key words, only so many characters must be
entered that they clearly differ from other key words.
<p>
<b>Alternative Parameters</b>
<p>
The sign | means that alternative parameters can be indicated. Example:
<p>
<table>
<tr><td valign=top><font face=Helvetica,Arial>Syntax: </font></td><td valign=top><font face=Helvetica,Arial><tt>SET BEEP ON | OFF;</tt></font></td></tr>
<tr><td valign=top><font face=Helvetica,Arial>Input: </font></td><td valign=top><font face=Helvetica,Arial><tt>SET BEEP ON;</tt></font></td></tr>
<tr><td valign=top><font face=Helvetica,Arial> </font></td><td valign=top><font face=Helvetica,Arial>or</font></td></tr>
<tr><td valign=top><font face=Helvetica,Arial> </font></td><td valign=top><font face=Helvetica,Arial><tt>SET BEEP OFF;</tt></font></td></tr>
</table>
<p>
<b>Repetition Points</b>
<p>
The signs .. mean that the function can be executed several times
or that several parameters of the same type are allowed. Example:
<p>
<table>
<tr><td valign=top><font face=Helvetica,Arial>Syntax: </font></td><td valign=top><font face=Helvetica,Arial><tt>DISPLAY option layer_name..</tt></font></td></tr>
<tr><td valign=top><font face=Helvetica,Arial>Input: </font></td><td valign=top><font face=Helvetica,Arial><tt>DISPLAY TOP PINS VIAS</tt></font></td></tr>
</table>
<p>
<b>Coordinates</b>
<p>
The sign * normally means that an object has to be selected with the
left mouse button at this point in the command. Example:
<p>
<table>
<tr><td valign=top><font face=Helvetica,Arial>Syntax: </font></td><td valign=top><font face=Helvetica,Arial><tt>MOVE * *..</tt></font></td></tr>
<tr><td valign=top><font face=Helvetica,Arial>Input: </font></td><td valign=top><font face=Helvetica,Arial><tt>MOVE</tt></font></td></tr>
<tr><td valign=top><font face=Helvetica,Arial> </font></td><td valign=top><font face=Helvetica,Arial><tt>Mouse click on the first element to be moved</tt></font></td></tr>
<tr><td valign=top><font face=Helvetica,Arial> </font></td><td valign=top><font face=Helvetica,Arial><tt>Mouse click on the target position</tt></font></td></tr>
<tr><td valign=top><font face=Helvetica,Arial> </font></td><td valign=top><font face=Helvetica,Arial><tt>Mouse click on the second element to be moved</tt></font></td></tr>
<tr><td valign=top><font face=Helvetica,Arial> </font></td><td valign=top><font face=Helvetica,Arial><tt>etc.</tt></font></td></tr>
</table>
<p>
This example also explains the meaning of the repetition points for
commands with mouse clicks.
<p>
For the program each mouse click is the input of a coordinate. If
coordinates are to be entered as text, the input via the keyboard
must be as follows:
<pre>
(x y)
</pre>
x and y are numbers in the unit which has been selected with the GRID
command. The input as text is mainly required for script files.
<p>
Any combination of the following modifiers may follow the opening brace
in order to simulate a particular key that is held pressed with the
"mouse click" or to change the type of coordinates:
<table>
<tr><td valign=top><font face=Helvetica,Arial><tt>></tt></font></td><td valign=top><font face=Helvetica,Arial>right mouse button click</font></td></tr>
<tr><td valign=top><font face=Helvetica,Arial><tt>A </tt></font></td><td valign=top><font face=Helvetica,Arial>Alt key</font></td></tr>
<tr><td valign=top><font face=Helvetica,Arial><tt>C </tt></font></td><td valign=top><font face=Helvetica,Arial>Ctrl key</font></td></tr>
<tr><td valign=top><font face=Helvetica,Arial><tt>P </tt></font></td><td valign=top><font face=Helvetica,Arial>Polar coordinates (relative to the <a href=57.htm>mark</a>, x = radius, y = angle in degrees, counterclockwise)</font></td></tr>
<tr><td valign=top><font face=Helvetica,Arial><tt>R </tt></font></td><td valign=top><font face=Helvetica,Arial>Relative coordinates (relative to the <a href=57.htm>mark</a>)</font></td></tr>
<tr><td valign=top><font face=Helvetica,Arial><tt>S </tt></font></td><td valign=top><font face=Helvetica,Arial>Shift key</font></td></tr>
</table>
For example, the input
<pre>
(CR> 1 2)
</pre>
would result in a "right button mouse click" at (1 2) relative to the <a href=57.htm>mark</a>,
with the Ctrl key held down (of course what happens with this kind of input
will depend on the actual command). Note that if there is currently no mark
defined, coordinates with <tt>R</tt> or <tt>P</tt> will be relative to the
drawing's origin. Also, the modifier characters are not case sensitive, their
sequence doesn't matter and there doesn't have to be a blank between them and
the first coordinate digit. So the above example could also be written as
<tt>(r>c1 2)</tt>.
Values entered as "polar coordinates" will be stored internally as the corresponding
pair of (x y) coordinates.
<p>
As an example for entering coordinates as text let's assume you wish to enter the exact
dimensions for board outlines:
<pre>
GRID 1 MM;
CHANGE LAYER DIMENSION;
WIRE 0 (0 0) (160 0) (160 100) (0 100) (0 0);
GRID LAST;
</pre>
<b>Decimal numbers</b>
<p>
When entering decimal numbers in the command line of the editor window, you always
have to use the dot as the decimal delimiter (as in <tt>12.34</tt>), even if the
actual system has a different character defined for this (for example the comma).
<p>
<b>Semicolon</b>
<p>
The semicolon (';') terminates commands. A command needs to be terminated
with a semicolon if there fewer than the maximum possible number of options.
For example the command
<pre>
WINDOW;
</pre>
redraws the drawing window, whereas
<pre>
WINDOW FIT
</pre>
scales the drawing to fit entirely into the drawing window. There is no semicolon necessary here because it is already clear that the command is complete.
<hr>
<table width=100% cellspacing=0 border=0><tr><td align=left><font face=Helvetica,Arial>
<a href=index.htm>Index</a>
</font></td><td align=right><font face=Helvetica,Arial size=-1>
<i>Copyright © 2005 CadSoft Computer GmbH</i>
</font></td></tr></table>
<hr>
</font>
</body>
</html>
|