EAGLE Help

SET


Function
Alters system parameters

Syntax
SET
SET options;

Parameters which affect the behavior of the program, the screen display, or the user interface can be specified with the SET command. The precise syntax is described below.

A dialog in which all the parameters can be set appears if the SET command is entered without parameters.

User Interface

Snap function SET SNAP_LENGTH number;
This sets the limiting value for the snap function in the ROUTE command (using the current unit).
Default: 20 mil
If tracks are being laid with the ROUTE command to pads that are not on the grid, the snap function will ensure that a route will be laid to the pad within the snap-length.
SET SNAP_BENDED ON | OFF;
If set on then the bend in the routed track will be on the grid in wire_bends 1 and 3.
SET SELECT_FACTOR value;
This setting controls the distance from the cursor within which nearby objects will be suggested for selection. The value is entered relative to the height (or width, whichever is smaller) of the presently visible part of the diagram.
Default: 0.02 (2%).
Menu contents SET USED_LAYERS name | number;
Specifies the layers which will be shown in the associated EAGLE menus. See the example file mylayers.scr.
The layers Pads, Vias, Unrouted, Dimension, Drills and Holes will in any case remain in the menu, as will the schematic layers. Any used signal layers also remain in the menus. SET Used_Layers All activates all layers.
SET WIDTH_MENU value..;
SET DIAMETER_MENU value..;
SET DRILL_MENU value..;
SET SMD_MENU value..;
SET SIZE_MENU value..;
The content of the associated popup menus can be configured with the above command for the parameters width etc.. A maximum of 16 values is possible for each menu (16 value-pairs in the SMD menu). Without any values (as in SET WIDTH_MENU;) the program default values will be restored.
Example:
Grid Inch;
Set Width_Menu 0.1 0.2 0.3;
Bend angle for wires SET WIRE_BEND bend_nr;
bend_nr can be one of:
0: Starting point - horizontal - vertical - end
1: Starting point - horizontal - 45° - end
2: Starting point - end (straight connection)
3: Starting point - 45° - horizontal - end
4: Starting point - vertical - horizontal - end
5: Starting point - arc - horizontal - end
6: Starting point - horizontal - arc - end
7: "Freehand" (arc that fits to wire at start, straight otherwise)
Note that 0, 1, 3 and 4 may contain additional miter wires (see MITER).
SET WIRE_BEND @ bend_nr ...;
Defines the bend angles that shall be actually used when switching with the right mouse button.
SET WIRE_BEND @;
Switches back to using all bend angles.
Beep on/off SET BEEP ON | OFF;

Screen display

Color for grid linesSET COLOR_GRID color;
Layer color SET COLOR_LAYER layer color;
Fill pattern for layer SET FILL_LAYER layer fill;
Grid parameters SET GRID_REDRAW ON | OFF;
Refresh display or not when grid has been altered.
SET MIN_GRID_SIZE pixels;
The grid is only displayed if the grid size is greater than the set number of pixels.
Min. text size shown SET MIN_TEXT_SIZE size;
Text less than size pixels high is shown as a rectangle on the screen. The setting 0 means that all text will be displayed readably.
Net wire display SET NET_WIRE_WIDTH width;
Pad display SET DISPLAY_MODE REAL | NODRILL;
REAL: Pads are displayed as they will be plotted.
NODRILL: Pads are shown without drill hole.
SET PAD_NAMES ON | OFF;
Pad names are displayed/not displayed.
Bus line display SET BUS_WIRE_WIDTH width;
DRC-Parameter SET DRC_FILL fill_name;
Polygon calculation SET POLYGON_RATSNEST ON | OFF;
See POLYGON command.
Vector font SET VECTOR_FONT ON | OFF;
See TEXT command.

Mode parameters

Package check SET CHECK_CONNECTS ON | OFF;
The ADD command checks whether a pin has been connected to every pad (with CONNECT). This check can be switched off. Nevertheless, no board can be generated from a schematic if a device is found which does not have a package.
REPLACE mode SET REPLACE_SAME NAMES | COORDS;
UNDO buffer on/off SET UNDO_LOG ON | OFF;
Wire optim. on/off SET OPTIMIZING ON | OFF;
If set on, wires which lie in one line after a MOVE, ROUTE or SPLIT are subsumed into a single wire. See also OPTIMIZE.

Colors

There are three palettes for black, white and colored background, respectively. Each palette has 64 color entries, which can be set to any RGB value. The palette entry number 0 is used as the background color (in the "white" palette this entry cannot be modified, since this palette will also be used for printing, where the background is always white).

The color palettes can be modified either through the dialog under "Options/Set.../Colors" or by using the command

SET PALETTE index rgb
where index is a number in the range 0..63 and rgb is a hexadecimal RGB value, like 0xFFFF00 (which would result in a bright yellow). Note that the RGB value must begin with "0x", otherwise it would be taken as a decimal number. You can use
SET PALETTE BLACK|WHITE|COLORED
to switch to the black, white or colored background palette, respectively. Note that there will be no automatic window refresh after this command, so you should do a WINDOW; command after this.

By default only the palette entries 0..15 are used and they contain the colors listed below.

The palette entries are grouped into "normal" and "highlight" colors. There are always 8 "normal" colors, followed by the corresponding 8 "highlight" colors. So colors 0..7 are "normal" colors, 8..15 are their "highlight" values, 16..23 are another 8 "normal" colors with 24..31 being their "highlight" values and so on. The "highlight" colors are used to visualize objects, for instance in the SHOW command.

The background color for layout and schematic can be set to any color. Note, though, that in case the background color is neither pure black nor pure white, the drawing will be displayed layer by layer, which usually makes a window refresh slower than with black or white background.

Color, listed according to color numbers, which can be used instead of the color names. Used to specify colors:

0 Black
1 Blue
2 Green
3 Cyan
4 Red
5 Magenta
6 Brown
7 LGray
8 DGray
9 LBlue
10 LGreen
11 LCyan
12 LRed
13 LMagenta
14 Yellow
15 White

Fill specifies the style with which wires and rectangles in a particular layer are to be filled. This parameter can also be replaced with the number at the beginning of each line:

0 Empty
1 Solid
2 Line
3 LtSlash
4 Slash
5 BkSlash
6 LtBkSlash
7 Hatch
8 XHatch
9 Interleave
10 WideDot
11 CloseDot
12 Stipple1
13 Stipple2
14 Stipple3
15 Stipple4


Index Copyright © 2005 CadSoft Computer GmbH