cadsoft eagle 4.5 사용자 설명서

다운로드
페이지 248
Entering Coordinates as Text
The program sees every mouse click as a pair of coordinates. If it is de-
sired to enter commands in text form on the command line, then in-
stead of clicking with the mouse it is possible to enter the coordinates
through the keyboard in the following form:
(x y)
where x and y are numbers representing units as selected by the GRID
command. The textual input method is necessary in particular for script
files.
The coordinates of the current cursor position can be fetched with (@).
For example:
WINDOW (@);
Examples of coordinate entry in text form:
You want to enter the outline of a circuit board with precise dimensions.
GRID MM 1;
LAYER DIMENSION;
WIRE 0 (0 0) (160 0) (160 100) (0 100) (0 0);
GRID LAST;
The first step is to switch to a 1 mm grid. The dimension layer is then
activated. The WIRE command then first sets the line width to 0 and
draws a rectangle with the aid of the four given coordinates. The last
command returns the grid to whatever had previously been selected,
since circuit boards are usually designed using inches.
Relative values:
It is possible to use relative coordinate values in the form (R x y) which
refer to a reference point set with the MARK command before. If you
don't set a reference point the absolute origin of the coordinate system
will be taken.
Setting a via relative to the reference point:
GRID MM 0.5;
MARK (20 10);
VIA (R 5 12.5);
MARK;
First the grid is set to Millimeters, then the reference point at the posi-
tion (20 10) is placed. The via is located at a distance of 5 mm in x and
12.5 mm in y direction from the this point. Then the reference point is
removed.
Polar values:
Polar coordinates are given in the form of (P radius angle).
69
Principles for Working with EAGLE